Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-11180

<a4j:jsFunction> in <ui:fragment> does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • EAP_EWP 5.2.0
    • RichFaces
    • None
    • Hide
      Reproducer
      sample.zip
       ├── src
       │   └── test
       │       ├── TestAction.java
       │       └── TestDto.java
       └── view
           └── test.xhtml
      

      Reproduce step (Using seam booking example).

      1. Create EAP 5.2 server
      2. Modify the jboss.home in <jboss-eap-5.2>/seam/build.properties
      3. Unzip the sample.zip under the <jboss-eap-5.2>/seam/examples/booking
      4. Execute "ant deploy" command.
      5. Run the EAP 5.2 default server.
      6. Move to "http://localhost:8080/seam-booking/test.seam" on your browser.
        • If you push the Set flag to 1 button, you can see the Action 1 and Action 2 buttons.
        • Action 1 button is using <a4j:jsFunction> in <c:if> — It works fine. You can see "Do it!" output on EAP log.
        • Action 2 button is using <a4j:jsFunction> in <ui:fragment> – It does not work.
      Show
      Reproducer sample.zip ├── src │ └── test │ ├── TestAction.java │ └── TestDto.java └── view └── test.xhtml Reproduce step (Using seam booking example). Create EAP 5.2 server Modify the jboss.home in <jboss-eap-5.2>/seam/build.properties Unzip the sample.zip under the <jboss-eap-5.2>/seam/examples/booking Execute "ant deploy" command. Run the EAP 5.2 default server. Move to "http://localhost:8080/seam-booking/test.seam" on your browser. If you push the Set flag to 1 button, you can see the Action 1 and Action 2 buttons. Action 1 button is using <a4j:jsFunction> in <c:if> — It works fine. You can see "Do it!" output on EAP log. Action 2 button is using <a4j:jsFunction> in <ui:fragment> – It does not work.
    • NEW

    Description

      <a4j:jsFunction> does not work when there is it in <ui:fragment>.

      ex) test.xhtml
      -- snip --
        <a4j:outputPanel id="tablePL2">
          <ui:fragment rendered="#{TestDto.selectedFlg eq '1'}">
            ui:fragment &amp; a4j:jsFunction 
            <input type="button" value="Action 2" onclick="ac2()" />
            <a4j:jsFunction id="fnc2" name="ac2" reRender="tablePL1,tablePL2,flagmentView" action="#{TestAction.method}" />
          </ui:fragment>
        </a4j:outputPanel>
      --- snip ---
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-enagai Eiichi Nagai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: