To be honest I'm glad you opened up the discussion regarding <h:selectOneMenu
...
I'm trying to do something like this
<h:selectOneMenu id="idCurs" value="#{cursHome.instance.idcurs}">
| <s:selectItems value="#{cursList.resultList}"
label="#{curs.nume}"
| var="curs"
| noSelectionLabel="Alege un curs"
| />
| <s:convertEntity />
| <a:support event="onblur"
reRender="idcursDecoration" bypassUpdates="true"/>
| </h:selectOneMenu>
I have StudentHome the student ( generated with seam generate entities), and I
want it to return the id of a selected item in the option list.
I already did the override on equals and hashCode and read the wiki and other
posts on the matter but I don't fully understand how the hole thing is supposed
to work.
It gets the list from the cursList.resultList. Then when I select an item .. he
does what exactly ? he sets the value of var to whatever I say in the
<h:selectOneMenu ? or where
I would like for it to set the value of the current edited
studentHome.instance.idcurs to the value of idcurs from the selected item in
the list.. something like binding the label value to curs.nume and the value to
curs.idcurs
Any suggestions or other ways of accomplishing this ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123949#4123949
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123949
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user