Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13595

rich:validator doesn't work when loaded via ajax (re-render)



    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.3.5
    • Fix Version/s: 4.5.3
    • Component/s: component-validators
    • Labels:
    • Environment:

      RF 4.3.5
      Mojarra 2.1.27
      Java 7 Update 51 x64
      Tomcat 7.0.52
      Firefox 28.0 + Firebug


      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:

      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 ...

        Gliffy Diagrams


            Issue Links



                • Assignee:
                  michpetrov Michal Petrov
                  michaelb80 Michael B
                • Votes:
                  0 Vote for this issue
                  5 Start watching this issue


                  • Created: