DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21401>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21401

multipage form valition, problem with page attribute

           Summary: multipage form valition, problem with page attribute
           Product: Struts
           Version: 1.1 RC1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The comparisation of the page attribute of the Validator form and the page 
property in the validation.xml is NOT implemented as defined.
The comparisation is implemented as "LESS THAN", not "LESS THAN OR EQUAL" as 
defined (see below).

Possible work-around, use a lower number in your validation.xml.
ie. 
JSP    <html:hidden property="page" value="1"/>
XML  <field property="aProp" depends="required" page="0">


DOCUMENTATION:
Multi Page Forms 
The field element has an optional page attribute. It can be set to an integer. 
All validation for any field on a page LESS THAN OR EQAUL to the current PAGE 
is performed server side. All validation for any field on a page equal to the 
current page is generated for the client side Javascript. A mutli-part form 
expects the page attribute to be set. 
<html:hidden property="page" value="1"/>

see: http://jakarta.apache.org/struts/userGuide/dev_validator.html

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

Reply via email to