• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Multibox issue with DynaValidatorForm

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a JSP application which displays a set of multi boxes. Iam using struts DynaValidatorForm . If a value is checked and the form is submitted the multibox values are submitted correctly and the page refreshes and displays the checked multibox. But if a previously checked multibox is unchecked and saved, the value is not submitted to the form, the page refreshes and shows the checked box again.
Is there a way to override the reset method while using dynaValidatorForm??

Struts config entries
<form-property name="values" type="java.lang.String[]"/>

Jsp entries
<c:forEach var="dataValues" items="${dataValues}">
<html-el:multiboxproperty="values"value="${dataValues.id}"/>
<c ut value="${cardtype.id}" /></forEach>


please help..!!!

thanks
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're using one of the later versions of Struts, you can accomplish this simply by adding reset="true" to your form-property tag. Example:
<form-property name="values" type="java.lang.String[]" reset="true" />
reply
    Bookmark Topic Watch Topic
  • New Topic