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 2006/01/25 04:37:21 UTC

DO NOT REPLY [Bug 38375] New: - ValidatorForm validate with external key

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=38375

           Summary: ValidatorForm validate with external key
           Product: Struts
           Version: 1.2.8
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Action
        AssignedTo: dev@struts.apache.org
        ReportedBy: paul4christ79@yahoo.com


The validation key of ValidatorForm is stored within the form. This is
ineffective for more complex cases when the action is coded to perform explicit
validation and there's no clean formula to determine the validation key.

For instance, a wizard form may want to send all requests through back.do and
next.do so that users are forced through two actions. This design decision
encapsulates and hides the internal steps that transition the view from step to
step; it's impossible to use the browser's back or forward button to resubmit
the step since only two generic actions are exposed.

Here the validation key of ValidatorForm and ValidatorActionForm are insufficent
because [1] it's not based on the form and [2] the URI is the same. It should be
up to the action, when necessary, to define the validation key.

Placing the logic in getValidationKey() is possible, but may be inappropriate or
impossible for some designs. Only the request and action mapping is exposed
through getValidationKey(), which may not be enough information for some use case.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 38375] - ValidatorForm validate with external key

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=38375





------- Additional Comments From paul4christ79@yahoo.com  2006-01-25 04:37 -------
Created an attachment (id=17499)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17499&action=view)
Add version of validate to accept an external key

Add version of validate to accept an external key.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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