[jboss-user] [JBoss Seam] - Parameters not sent when using s:selectItems
marius.oancea
do-not-reply at jboss.com
Thu Nov 15 11:45:49 EST 2007
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
More information about the jboss-user
mailing list