2 Replies Latest reply on Jun 22, 2007 7:30 AM by knisterpeter

    pageflow, validation and redisplay

    knisterpeter

      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?