The following code works perfectly:
<h:selectOneMenu id="committee"
value="#{mrpList.criteria.committee}" >
<f:selectItem itemLabel="TEST1" itemValue="1" />
<f:selectItem itemLabel="TEST2" itemValue="2" />
</h:selectOneMenu>
committee is an "int" and is set correctly when the form is submited.
If I user the following code:
<h:selectOneMenu id="committee"
value="#{mrpList.criteria.committee}" >
<s:selectItems value="#{committeeList.resultList}"
var="committee"
label="#{committee.title}" />
<s:convertEntity />
</h:selectOneMenu>
"0" is submitted all the time.
Please note that resultlist retrieve from DB the right entiries.
Any clue?
Thanx
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105119#4105119
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105119
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user