You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jason Douglas de Oliveira (JIRA)" <ji...@apache.org> on 2007/11/09 02:40:34 UTC

[jira] Issue Comment Edited: (WW-2307) The value of the parameter is changing when the validation occurs both with annotation and xml

    [ https://issues.apache.org/struts/browse/WW-2307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42609 ] 

jasondouglas77@gmail.com edited comment on WW-2307 at 11/8/07 5:39 PM:
------------------------------------------------------------------------

Or better, lost of information.
http://java.sun.com/docs/books/jls/third_edition/html/conversions.html#25363 \
"Despite the fact that overflow, underflow, or other loss of information may occur..."
But we know what's happening.

The expected behaviour would be.
1 - The field is validate.
2 - If is valid, convert. (if the conversion lost some information, throw anything about it)
3 - If is not valid, return the same value and the message to the page.

Never convert and send to page with error or convert losing precision.

      was (Author: jasondouglas77@gmail.com):
    Or better, lost of information.
http://java.sun.com/docs/books/jls/third_edition/html/conversions.html#25363 \
"Despite the fact that overflow, underflow, or other loss of information may occur..."
But we know what's happening.

The expected behaviour would be.
1 - The field is validate.
2 - If is valid, convert. (if the conversion lost some information, throw anything about it)
3 - If is not valid, return the same value and the message to the page.

Never convert and send to page with error or convert losting precision.
  
> The value of the parameter is changing when the validation occurs both with annotation and xml
> ----------------------------------------------------------------------------------------------
>
>                 Key: WW-2307
>                 URL: https://issues.apache.org/struts/browse/WW-2307
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.0.11
>         Environment: WindowsXP SP2 and jboss 4.2.1
>            Reporter: Jason Douglas de Oliveira
>            Priority: Critical
>
> When I have an action's attribute of Integer type and use the @IntRangeFieldValidator the value is returned truncated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.