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 number in a hidden 
property : decision depends of the action name.

For example, in a form-bean.validate() :

if(mapping.getPath().equals("/form1") )
   return validateForm1(mapping, request);

if(mapping.getPath().equals("/form2") )
   return validateForm2(mapping, request);


What are the good reasons to store page number in a hidden form?
Is it a design issue?


--
C. Bouessay

 



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

Reply via email to