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

    pageflow, validation and redisplay

    Markus Wolf Newbie


      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"
       <ui:define name="label">#{messages.salutation}:</ui:define>
       <ui:define name="field">
       <h:selectOneMenu id="salutation" value="#{person.salutation}"
       <f:selectItem itemLabel="#{messages.salutationMr}" itemValue="MR" />
       <f:selectItem itemLabel="#{messages.salutationMrs}"
       itemValue="MRS" />
      <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}" />

      What am I doing wrong? Anyone has an idea?