Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How would I include reset() for DynaValidatorForm

 
john mattucci
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the Struts docs it states "In order to correctly recognize unchecked checkboxes, the ActionForm bean associated with this form must include a statement setting the corresponding boolean property to false in the reset() method." How would I go about doing this if Im using org.apache.struts.validator.DynaValidatorForm? Thank you for your time.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should work just to set an initial value like this:

<form-property name="myCheckbox" type="java.lang.Boolean" initial="false">
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic