This content has been marked as final.
Show 2 replies
-
1. Re: Dynamic Dropdown menu
lvdberg Aug 17, 2009 3:54 PM (in response to palani.palanivelsway.gmail.com)Jack,
A simple example of a selectOneMenu with a list of values. It uses a query for the attributes
and convertEntity to be able to use direct entities in the reply.<h:selectOneMenu value="#{someBean.someAttrribute}"> <s:selectItems value="#{attributesQuery.resultList}" var="t" label="#{t.label}" /> <s:convertEntity /> </h:selectOneMenu>
This examples can be found in the examples of the Seam-distribution, the documantation, Seam-gen makes them for you etc.
-
2. Re: Dynamic Dropdown menu
juergen.hartler Sep 4, 2009 12:10 PM (in response to palani.palanivelsway.gmail.com)Hi!
In order to create the Dropdown menu dynamically you must use a binding. This issue has already been discussed at:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=110983
The solution you will find at the bottom of the page!
Regards,
Juergen