-
1. Re: Dynamic selectOneMenu
gavin.king Mar 17, 2006 10:07 AM (in response to ariska)Look at how the dvdstore example handles categories in searchbox.xhtml.
-
2. Re: Dynamic selectOneMenu
ariska Mar 18, 2006 7:34 PM (in response to ariska)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" .
kind regards, -
3. Re: Dynamic selectOneMenu
ariska Mar 18, 2006 7:42 PM (in response to ariska)I can see how the "Any" value is added, but my point here is to get the value initialized from the database value.
-
4. Re: Dynamic selectOneMenu
gavin.king Mar 18, 2006 7:51 PM (in response to ariska)The list of categories *is* retrieved from the db (it is not the Any value i am talking about).
-
5. Re: Dynamic selectOneMenu
ariska Mar 19, 2006 11:44 AM (in response to ariska)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] ).
kind regards,