Look at how the dvdstore example handles categories in searchbox.xhtml.
Thanks for your prompt answer.
I managed to implemented as in the dvd example, though I have one concern left.
How can I *initialize* the selectOneMenu component with a value?
Let's say that, in the case of the dvd-store demo, I want the Category to be initialized to "Comedy" .
I can see how the "Any" value is added, but my point here is to get the value initialized from the database value.
The list of categories *is* retrieved from the db (it is not the Any value i am talking about).
Sorry, perhaps I did not make my point clear.
What I want to accomplish is this:
I have a modifyUserForm with the selectOneMenu for the userType [admin,accounting,reporting]. When the form loads the userType selectOneMenu should be initialized and display correct userType value for selected user (for example [accounting] ).