Associating values to selectOneMenu in JSF directly through the URL
Hi everyone,
In my app the users can access their information but in order to do so they have to select two options from two different selectOneMenu and then their information will be rendered.
What i would like to do is that i would like to allow my users to have a direct access to that data without them needing to select the options from the two different selectOneMenu.
This is where i have my question. Is it possible for my to pass the values associated to the user like in the URL and thus associating with the variables from the selectOneMenu so that it will automatically render the information of the user?
Sorry if it's a dumb question but since i am recently new to this JSF technology i was wondering it this was possible and how.
Thanks
[789 byte] By [
thiago83a] at [2007-11-26 14:56:36]

# 2
Ok i understand it's functionality but how can i pass throught the URL those parameters?
Like if i have:
http://localhost:8180/myProject/getInfo.faces
How can i pass those parameters?
If this were php i know i could do:
http://localhost:8180/myProject/getInfo.php?param1=some¶m2=some
But with JSF this is not possible right? So how can i do it?
# 5
The input from the selectOneMenu's are naturally done through POST-back in JSF. To pass the same parameters via GET you would need to figure out the client id's of the selectOneMenu components. This gets complicated, so it would probably be best just to bind the GET parameters to your backing bean and check those parameters upon loading the information if the selectOneMenu value-bound properties are not set (or vice versa).