This content has been marked as final.
Show 2 replies
-
1. Re: How can I
andygibson Dec 14, 2007 10:36 AM (in response to ivan.tufegdzic)http://docs.jboss.com/seam/latest/reference/en/html/events.html#d0e3872
Here's one source of documentation for it.
Simply bind parameters in pages.xml to values in the backing component to get a 2 way passing of values from the form to the backing bean via request parameters.
i.e.<page view-id="mySearch"> <param name="lastName" value="#{myBean.lastName}"> </page>
Now, when you call \mySearch.seam?lastName=smith the value will be put into the backing bean.
On your form, you simply put :<h:inputText value="#{myBean.lastName}"/>
and the parameter will appear in the form based on the parameter.
So the parameter makes the trip from parameter in the request-> Put into the backing bean -> Value on the form bound to the backing bean.
When you run the query, you can just refer to the lastName field in the MyBean class to get the value. -
2. Re: How can I
ivan.tufegdzic Dec 14, 2007 11:09 AM (in response to ivan.tufegdzic)Yes, I understand.
That works.
I have dynamic list as parameters, and I don't have name (it will be unknown).
I wrote a servlet which catch parameters with names and its values.
That is good because in query I may put unknown names and its values.
Is that ok?
Thanks