Differences between revisions 2 and 3
Revision 2 as of 2005-03-22 05:48:35
Size: 1546
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 3 as of 2009-09-20 23:11:38
Size: 1546
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

For the prepopulate should the scope be set to session instead of request. Request would mean that the form bean setup in the Edit action would be replaced with a new instance ?

{{{ <form-beans>

  • ..

    <-- Registration form bean --> <form-bean name="registrationForm"

  • ..
  • </form-beans>

  • ..

    <action-mappings>

    • ..

      <-- Edit user registration --> <action path="/editRegistration"

      • scope="request"
      • validate="false"/>

    • ..

      <-- Save user registration --> <action path="/saveRegistration"

      • input="registration"

        scope="request"/>

    • ..

    </action-mappings> }}}

Just an FYI, the documentation for 'validwhen' shows the <var-value> tag as ending with </test>

<field

  • property="pregnancyTest" depends="validwhen">

  • <arg0 key="medicalStatusForm.pregnancyTest.label"/> <var>

    • <var-name>test</var-name> <var-value>((((sex == 'm') OR (sex == 'M')) AND (*this* == null)) OR (*this* != null))</test>

    </var>

</field>

StrutsDocNewbie (last edited 2009-09-20 23:11:38 by localhost)