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

a4j:jsFunction actionListener= method called before a4j:param assignTo setter

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: 4.0.0.Final
    • Fix Version/s: None
    • Component/s: component-a4j-core
    • Labels:
      None
    • Environment:

      Mojarra 2.1.3

      Description

      In the following scenario when the jsTest() function is called then in
      the server log I see the jsTestAction method executing before the
      setJsTestParam method, so the parameter supplied by a4j:param is useless.

      <a4j:jsFunction name="jsTest"
           oncomplete="alert(event.data)"
           actionListener="#{bean.jsTestAction}"
           data="#{bean.jsTestData}">
              <a4j:param name="p1" value="Fred" assignTo="#{bean.jsTestParam}"/>
      </a4j:jsFunction>
      

      The workaround is to use action= rather than actionListener, but this
      is a pretty fundamental issue and ought to be fixed IMHO.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                healeyb Brendan Healey
              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: