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

Michael B commented on RF-13595:
--------------------------------

Thanks for verifying the problem, - glad to hear that the test project was 
useful!

And to answer your question: yes, that's exactly what I meant by replacing the 
inputText with the calendar component. I've also tried with some (of the many) 
other events which the calendar component provides, but with no success so far.

Also I would imagine, that the same problem could also occur when using other 
input components with the validator (like rich:select etc.), but I haven't 
confirmed that by changing the test case so far.

So basically having a workaround for the calendar component would by nice on 
the short run, but the general problem would still remain.

BTW: the instanceof-check in the validation-method (Line 25) of your adapted 
test class should probably also be changed to a Date, otherwise the check would 
never work - even if the validation method would actually be invoked at some 
point... - but never mind that detail.


                
> rich:validator doesn't work when loaded via ajax (re-render)
> ------------------------------------------------------------
>
>                 Key: RF-13595
>                 URL: https://issues.jboss.org/browse/RF-13595
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-validators
>    Affects Versions: 4.3.5
>         Environment: RF 4.3.5
> Mojarra 2.1.27
> Java 7 Update 51 x64
> Tomcat 7.0.52
> Firefox 28.0 + Firebug
>            Reporter: Michael B
>            Assignee: Matej Novotny
>         Attachments: validationTest.zip
>
>
> When loading input components with a rich:validator via ajax (re-render), 
> client side validation bridge breaks due to a missing JS function 
> av_xxxxxxxxx.
> As already described in further detail in a comment to this JIRA here:
> https://issues.jboss.org/browse/RF-12031
> I've created a very basic example project to reproduce the problem for a 
> single input field which becomes visible (re-rendered) when you click on an 
> a4j:commandButton.
> Please note that this is a minimum example only. The problem is also 
> reproducable for other input components besides h:inputText - like for 
> example rich:calendar. 
> The workaround described in the referenced JIRA creates other problems in 
> client JS when combined with other components like rich:focus and is also not 
> applicable for other input components besides h:inputText.
> We think the problem is located in the way JS functions are optimized for 
> being re-used as well as in the way they are (not) being added on the client 
> side when a component becomes visible on ajax response re-rendering.
> Please use attached eclipse project to easily reproduce the problem => open 
> Firefox => Firebug console to see the error about the missing JS function 
> av_xxxxxxx ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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