[ 
https://jira.jboss.org/jira/browse/RF-7630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jay Balunas resolved RF-7630.
-----------------------------

    Fix Version/s: 3.3.3.BETA1
                       (was: Future)
       Resolution: Won't Fix


This is a works as designed with poor documentation.  The ajax validator was 
designed to skip all phases of the JSF lifecycle except validation.  This 
includes "render view" which is why "out2" is not updated.  This was done on 
purpose to make the component as fast as possible.

You should be able to get the desired results by using <a4j:support 
bypassUpdates="true" /> together with beanValidator for desired use case.

> ajaxValidator: 'reRender' doesn't work
> --------------------------------------
>
>                 Key: RF-7630
>                 URL: https://jira.jboss.org/jira/browse/RF-7630
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component-misc
>    Affects Versions: 3.3.1
>         Environment: all supported browsers
>            Reporter: Mikhail Vitenkov
>            Assignee: Nick Belaevski
>            Priority: Minor
>             Fix For: 3.3.3.BETA1
>
>
> #1. Use following code:
> <h:form>
>               <h:inputText value="#{validator.text}" id="dateValue">
>                       <rich:ajaxValidator 
> reRender="out2"></rich:ajaxValidator>
>               </h:inputText>
>               <rich:message for="dateValue" showDetail="true" 
> showSummary="true" />
>               <br/>                           
>               <h:outputText value="#{custom.out2}" id="out2"/>
>       </h:form>
> Where validator.text:
> @Email(message="Mail validation failed!")
>       private String text;//u...@exadel.com
> out2 getter: public int getOut2() {
>               return out2++;
>       }
> #2. Navigate to the page, remove '@' sign and click mouse out.
> #3. Verify  validation message appearance.
> #4. Verify 'out2' value update.
> Actual results:
> 'out2' output value is not updated.

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

        
_______________________________________________
richfaces-issues mailing list
richfaces-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to