[ http://issues.apache.org/struts/browse/SHALE-85?page=all ]

Craig McClanahan moved STR-2461 to SHALE-85:
--------------------------------------------

      Project: Shale  (was: Struts Action 1)
          Key: SHALE-85  (was: STR-2461)
    Component:     (was: Shale)
      Version:     (was: Nightly Build)
    Assign To:     (was: Struts Developer Mailing List)

> [Shale] Problems with CommonsValidator on the server side.
> ----------------------------------------------------------
>
>          Key: SHALE-85
>          URL: http://issues.apache.org/struts/browse/SHALE-85
>      Project: Shale
>         Type: Bug

>  Environment: Operating System: other
> Platform: Other
>     Reporter: Manfred Klug
>  Attachments: Patch.diff, patch.diff, patch.diff
>
> At the moment I see two problematic areas.
> - The 'required' validation doesn't work on the server.
> - All validations which need a String as value may translate the converted
>   value back to a String. This has the following disadvantages:
>   -- Validation depends on the toString method and not on the user input.
>   -- It's impossible to control a sloppy converter. (Enter an invalid value in
>      a field with a 'numberConverter', and you know what I mean).
> In addition, I think the displayed value in the error message should be the
> submitted and not the converted value.
> A possible solution could look as follows:
> - If the 'required' validation is configured for server side validation, an
>   exception with a helpful error message is thrown.
> - Instead of converting the value back to a String, use directly the submitted
>   value.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to