Announcement Announcement Module
Collapse
No announcement yet.
Commons validation with wizard form controller Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Commons validation with wizard form controller

    Has anyone implemented commons validation support with a wizard form controller? If I set the page attribute of a field to 0, it correctly validates for page 0, but if I change the page attribute to any other number then no validation occurs for that field, regardless of which page I'm on.

    Here is an example of validation.xml:

    Code:
    <form name="com.brianstclair.AddUserCommand">
       <field property="firstName" depends="required" page="1">
          <arg0 key="field.firstName"/>
       </field>
       <field property="emailAddress" depends="required,email" page="0">
          <arg0 key="field.emailAddress"/>
       </field>
    </form>
    Validation works great for page 0, but no validation errors are thrown for page 1. Any ideas?

    Brian

    </form>
Working...
X