[richfaces-issues] [JBoss JIRA] (RF-11139) Client-side validation (JSR303) doesn't work without XHR request for validators from javax.validation package

Ján Jamrich (Commented) (JIRA) jira-events at lists.jboss.org
Thu Oct 20 08:41:45 EDT 2011


    [ https://issues.jboss.org/browse/RF-11139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636069#comment-12636069 ] 

Ján Jamrich commented on RF-11139:
----------------------------------

This should be explained a bit since there are 2 slightly different problems:
 1. validation performed on BLUR event after input value changed.
 2. validation on ajax submit (performed by a4j:commandButton)

In first case it is working as expected - validation is done without XHR request.
In second case is XHR request fired always, even the wrong value in input.

So we should open new issue for form behavior on ajax submit while rich:validator involved. Then no request should be fired if there validation n client side didn't pass.
                
> Client-side validation (JSR303) doesn't work without XHR request for validators from javax.validation package
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-11139
>                 URL: https://issues.jboss.org/browse/RF-11139
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: base functionality , component-validators
>    Affects Versions: 4.0.0.Final
>         Environment: RichFaces 4.1.0-SNAPSHOT r.22555
> Metamer 4.1.0-SNAPSHOT r.22555
> Mojarra 2.0.4-b09
> Apache Tomcat 7.0.12
> Java(TM) SE Runtime Environment 1.6.0_19-b04 @ Linux
> Chrome 12.0.718.0 @ Linux i686
> rich:validator
>            Reporter: Ján Jamrich
>            Assignee: Lukáš Fryč
>            Priority: Critical
>             Fix For: 4.1.0.Milestone4
>
>
> Client side validation should be done on client side. Only in case that validation cannot be done on client there should be request to server.
> The problem is that using rich:validator and simple input with binding to backing bean annotated by javax.validation.constraints.Min doesn't validate value without XHR request.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list