Re: persistance for wizard type forms

2002-01-24 Thread Ted Husted
Christian Bouessay wrote: > What are the good reasons to store page number in a hidden form? > Is it a design issue? The Struts/Commons Validator lets you assign a page number to the various validations, and then performs those which are equal to or less than the page number in the request. This

Re: persistance for wizard type forms

2002-01-24 Thread Christian Bouessay
Ted Husted wrote: > One approach to a wizard is to group the properties into pages, and pass > the page number as a hidden property. The reset and validation methods > can then use the page number to decide which set of properties to > validate. I'm using this approach, but don't store page n

Re: persistance for wizard type forms

2002-01-23 Thread Mark Woon
Ted Husted wrote: > Because when you go from one page to another in a wizard, the properties > from the prior page can be reset. Ah. Whoops. Didn't read the subject line, and didn't get the context. -Mark -- To unsubscribe, e-mail: For additional commands, e-mai

Re: persistance for wizard type forms

2002-01-23 Thread Ted Husted
Because when you go from one page to another in a wizard, the properties from the prior page can be reset. Select boxes and radio buttons would have one value or the other submitted, and so resetting them is usually not important. Checkboxes if not set are not submitted at all. Sometimes when

Re: persistance for wizard type forms

2002-01-23 Thread Mark Woon
Ted Husted wrote: > Be sure your reset() method is not blindly resetting the properties. The > default reset() does nothing, but people often have it reset everything. > The only important thing to reset() is the checkboxes, since the > browsers do not resubmit these if they are unchecked. It's

RE: persistance for wizard type forms

2002-01-23 Thread Peter . Zybrick
] Subject: RE: persistance for wizard type forms i think thats the default behavior for an ActionForm.reset() In your class that extends the ActionForm, add a reset(). You can leave it empty at first, and your ActionForm bean in the session shouldn't get cleared. We use this capability to set in

Re: persistance for wizard type forms

2002-01-23 Thread Ted Husted
Be sure your reset() method is not blindly resetting the properties. The default reset() does nothing, but people often have it reset everything. The only important thing to reset() is the checkboxes, since the browsers do not resubmit these if they are unchecked. -- Ted Husted, Husted dot Com,

RE: persistance for wizard type forms

2002-01-23 Thread Alex Paransky
Make sure to put your form in the "session" scope. -AP_ -Original Message- From: Sriram Nookala [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 1:47 PM To: Struts Users Mailing List Subject: persistance for wizard type forms I'm developing wizard-type for

RE: persistance for wizard type forms

2002-01-23 Thread Peter . Zybrick
ilto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 4:47 PM To: Struts Users Mailing List Subject: persistance for wizard type forms I'm developing wizard-type forms using struts. The data I entered previously doesn't show up when I go back to the previous form even though I

persistance for wizard type forms

2002-01-23 Thread Sriram Nookala
I'm developing wizard-type forms using struts. The data I entered previously doesn't show up when I go back to the previous form even though I use the same 'ActionForm' for all the wizard forms and I set the scope in the action mapping to 'session'. What am I missing ? -- To unsubscribe, e-mail