[jboss-user] [JBoss Seam] - pageflow, validation and redisplay

KnisterPeter do-not-reply at jboss.com
Thu Jun 21 14:43:52 EDT 2007


Hi,

I have a pageflow + validation problem.
1. When I submit my partial data and validation fails the data inserted by the user is not redisplayed. This is very annoying.
2. I have h:selectOneMenu wich is backed by a java enum field with two options. The validation of this field is always failing.

Here is my page code and my pageflow-definition:
<s:decorate id="salutationDecorate"
  | 	template="#{themeSelector.resourcePrefix}/fieldDecorate.xhtml">
  | 	<ui:define name="label">#{messages.salutation}:</ui:define>
  | 	<ui:define name="field">
  | 		<h:selectOneMenu id="salutation" value="#{person.salutation}"
  | 			required="true">
  | 			<f:selectItem itemLabel="#{messages.salutationMr}" itemValue="MR" />
  | 			<f:selectItem itemLabel="#{messages.salutationMrs}"
  | 				itemValue="MRS" />
  | 		</h:selectOneMenu>
  | 	</ui:define>
  | </s:decorate>
  | ...
  | <div class="buttonBar"><h:commandButton action="next"
  | 	value="#{messages.btnRegister}" /></div>
  | 
...
  | <start-page name="register" view-id="/public/register.xhtml">
  | 	<redirect />
  | 	<transition name="next" to="personRegistered">
  | 		<action expression="#{register.register}" />
  | 	</transition>
  | </start-page>
  | ...
  | 

What am I doing wrong? Anyone has an idea?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056628#4056628

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056628



More information about the jboss-user mailing list