You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/01/31 14:57:55 UTC

DO NOT REPLY [Bug 26565] New: - add a "resetValue" attribute in validator.xml

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=26565>.
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=26565

add a "resetValue" attribute in validator.xml

           Summary: add a "resetValue" attribute in validator.xml
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: hauser@acm.org


when validating a form - if a field input is wrong, typically one would bring
back to the user all the values filled except for the offending one.

How would the struts validator handle this in an efficient way?
My take is that this probably requires an additional attribute
<resetValue name="maxlength" key="your value" resource="false" />

that either takes a string from a message resource or the value entered right there.

Best would probably be if this would be available on a action basis as per Bug
26486.

Also, this should be combined with the possibility to cite the offending value
in the error message as per Bug 26410.

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org