You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Leneveut Michaël (JIRA)" <ji...@apache.org> on 2007/08/09 09:15:19 UTC

[jira] Created: (WW-2093) Server validation not ok for a simple select list

Server validation not ok for a simple select list
-------------------------------------------------

                 Key: WW-2093
                 URL: https://issues.apache.org/struts/browse/WW-2093
             Project: Struts 2
          Issue Type: Bug
          Components: Actions
    Affects Versions: 2.1.0
         Environment: Windows XP, TomCat 5.5, JDK 5
            Reporter: Leneveut Michaël


When validating a form containing a simple select list (<s:select/>) required, the client validation passes, but the server validation failed not seeing the select is well filled in. The strange thing is that it comes back to the JSP with the choosed item selected, so it saved the user's selection, but not validated it.

Have a look at the sample application attached (runs on TomCat 5.5, JDK 5)

This appends in the last version of SVN (06 Aug 07)

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


[jira] Assigned: (WW-2093) Server validation not ok for a simple select list

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes reassigned WW-2093:
--------------------------------

    Assignee:     (was: James Holmes)

> Server validation not ok for a simple select list
> -------------------------------------------------
>
>                 Key: WW-2093
>                 URL: https://issues.apache.org/struts/browse/WW-2093
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>             Fix For: 2.1.3
>
>         Attachments: Test.war
>
>
> When validating a form containing a simple select list (<s:select/>) required, the client validation passes, but the server validation failed not seeing the select is well filled in. The strange thing is that it comes back to the JSP with the choosed item selected, so it saved the user's selection, but not validated it.
> Have a look at the sample application attached (runs on TomCat 5.5, JDK 5)
> This appends in the last version of SVN (06 Aug 07)

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


[jira] Resolved: (WW-2093) Server validation not ok for a simple select list

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown resolved WW-2093.
---------------------------

       Resolution: Not A Problem
    Fix Version/s:     (was: 2.1.3)

I haven confirmed that the error is in the validation configuration, because once you change it to "required", everything works as expected.

> Server validation not ok for a simple select list
> -------------------------------------------------
>
>                 Key: WW-2093
>                 URL: https://issues.apache.org/struts/browse/WW-2093
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>         Attachments: Test.war
>
>
> When validating a form containing a simple select list (<s:select/>) required, the client validation passes, but the server validation failed not seeing the select is well filled in. The strange thing is that it comes back to the JSP with the choosed item selected, so it saved the user's selection, but not validated it.
> Have a look at the sample application attached (runs on TomCat 5.5, JDK 5)
> This appends in the last version of SVN (06 Aug 07)

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


[jira] Updated: (WW-2093) Server validation not ok for a simple select list

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2093:
-----------------------------

    Fix Version/s: 2.1.0
         Assignee: James Holmes

> Server validation not ok for a simple select list
> -------------------------------------------------
>
>                 Key: WW-2093
>                 URL: https://issues.apache.org/struts/browse/WW-2093
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>            Assignee: James Holmes
>             Fix For: 2.1.0
>
>         Attachments: Test.war
>
>
> When validating a form containing a simple select list (<s:select/>) required, the client validation passes, but the server validation failed not seeing the select is well filled in. The strange thing is that it comes back to the JSP with the choosed item selected, so it saved the user's selection, but not validated it.
> Have a look at the sample application attached (runs on TomCat 5.5, JDK 5)
> This appends in the last version of SVN (06 Aug 07)

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


[jira] Commented: (WW-2093) Server validation not ok for a simple select list

Posted by "Leneveut Michaël (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42777 ] 

Leneveut Michaël commented on WW-2093:
--------------------------------------

Nobody ?

This bug is really annoing, and I think all applications are affected.

Thanks to look at it.

> Server validation not ok for a simple select list
> -------------------------------------------------
>
>                 Key: WW-2093
>                 URL: https://issues.apache.org/struts/browse/WW-2093
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>             Fix For: 2.1.3
>
>         Attachments: Test.war
>
>
> When validating a form containing a simple select list (<s:select/>) required, the client validation passes, but the server validation failed not seeing the select is well filled in. The strange thing is that it comes back to the JSP with the choosed item selected, so it saved the user's selection, but not validated it.
> Have a look at the sample application attached (runs on TomCat 5.5, JDK 5)
> This appends in the last version of SVN (06 Aug 07)

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


[jira] Commented: (WW-2093) Server validation not ok for a simple select list

Posted by "Leneveut Michaël (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42486 ] 

Leneveut Michaël commented on WW-2093:
--------------------------------------

Hi,

Did you reproduce the bug ?

This bug is really annoing, as we must add a @SkipValidation on all save methods which has a select list required in his form.

Thanks.

> Server validation not ok for a simple select list
> -------------------------------------------------
>
>                 Key: WW-2093
>                 URL: https://issues.apache.org/struts/browse/WW-2093
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>            Assignee: James Holmes
>             Fix For: 2.1.3
>
>         Attachments: Test.war
>
>
> When validating a form containing a simple select list (<s:select/>) required, the client validation passes, but the server validation failed not seeing the select is well filled in. The strange thing is that it comes back to the JSP with the choosed item selected, so it saved the user's selection, but not validated it.
> Have a look at the sample application attached (runs on TomCat 5.5, JDK 5)
> This appends in the last version of SVN (06 Aug 07)

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


[jira] Updated: (WW-2093) Server validation not ok for a simple select list

Posted by "Leneveut Michaël (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leneveut Michaël updated WW-2093:
---------------------------------

    Attachment: Test.war

> Server validation not ok for a simple select list
> -------------------------------------------------
>
>                 Key: WW-2093
>                 URL: https://issues.apache.org/struts/browse/WW-2093
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Actions
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>         Attachments: Test.war
>
>
> When validating a form containing a simple select list (<s:select/>) required, the client validation passes, but the server validation failed not seeing the select is well filled in. The strange thing is that it comes back to the JSP with the choosed item selected, so it saved the user's selection, but not validated it.
> Have a look at the sample application attached (runs on TomCat 5.5, JDK 5)
> This appends in the last version of SVN (06 Aug 07)

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


[jira] Commented: (WW-2093) Server validation not ok for a simple select list

Posted by "Kedar Choudhary (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43338#action_43338 ] 

Kedar Choudhary commented on WW-2093:
-------------------------------------

In the sample application, the field myId is of type Integer, but validator used is "requiredstring".
I guess that's bound to throw validation error.
Use type="required".


> Server validation not ok for a simple select list
> -------------------------------------------------
>
>                 Key: WW-2093
>                 URL: https://issues.apache.org/struts/browse/WW-2093
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.0
>         Environment: Windows XP, TomCat 5.5, JDK 5
>            Reporter: Leneveut Michaël
>             Fix For: 2.1.3
>
>         Attachments: Test.war
>
>
> When validating a form containing a simple select list (<s:select/>) required, the client validation passes, but the server validation failed not seeing the select is well filled in. The strange thing is that it comes back to the JSP with the choosed item selected, so it saved the user's selection, but not validated it.
> Have a look at the sample application attached (runs on TomCat 5.5, JDK 5)
> This appends in the last version of SVN (06 Aug 07)

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