[jboss-user] [JBoss Seam] - always got data model update error when enum happens in data
ellenzhao
do-not-reply at jboss.com
Wed Nov 22 00:52:20 EST 2006
I am modifying the booking example code and added a enum type Gender to the type User. Since then, registration never succeeded. Always got this message:
"verify": Error during model data update.
The code in the xhtml file:
| <div class="entry">
| <div class="label"><h:outputLabel for="gender">Gender:</h:outputLabel></div>
| <div class="input"><s:decorate>
| <h:selectOneMenu id="gender" value="#{user.gender}"
| required="true">
| <f:selectItem itemLabel="female" itemValue="0" />
| <f:selectItem itemLabel="male" itemValue="1" />
| </h:selectOneMenu>
| <br />
| </s:decorate></div>
| </div>
|
And the enum type happens in the User class, but not any backing beans.
Any solution/enlightenment would be highly appreciated.
Best Regards,
Ellen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987798#3987798
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987798
More information about the jboss-user
mailing list