Hi,

i did an attempt to define a WizardActionForm base-class that contains a special 
"automatic" reset-method. The extending Form-class has to deliver a hashmap containing
all reset-values (name=property, value=reset-value). On the form-page a hidden-field
enumerates the properties contained the page. The WizardActionForm.reset() will then
get the reset-values for the properties enumerated in the hidden-field and set the
fields.

The code is not yet really tested and written using Struts 1.0. Let me know if you 
want 
to peek at its source...

hope this helps
Alexander 

-----Original Message-----
From: Stuart Jameson [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 12. April 2002 11:11
To: Struts Users Mailing List
Subject: losing checkbox info between pages


Hi,

I have 1 form split over 2 pages.  Page 1 has a checkboxA page 2 has checkboxB

Unless I put a hidden field A in page 2 and a hidden field B in page 1 the checkboxes 
aren't set correctly (because reset() is called each the page is submitted).  

I assume there is a better way to do this.  Anyone tell me how I should write it so 
that HTML people can just move the checkboxes between pages without having to worry 
about moving a hidden field as well?

Hope someone can enlighten me, 
 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to