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

Action Listener can't be invoked from composite component in MyFaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0.CR1
    • Fix Version/s: 4-Future
    • Component/s: component-a4j-core
    • Environment:
    • Steps to Reproduce:
      Hide

      1. open http://localhost:8080/metamer/faces/components/a4jActionListener/all.xhtml
      2. click on "Invoke listener method in composite component" button
      3. ajax request fired but no listener triggered

      Show
      1. open http://localhost:8080/metamer/faces/components/a4jActionListener/all.xhtml 2. click on "Invoke listener method in composite component" button 3. ajax request fired but no listener triggered

      Description

      <demo:actionComposite id="invokeFromCCButton" render="messages" value="Invoke listener method in composite component">
      <a4j:actionListener for="button" listener="#

      {a4jActionListenerBean.handleActionMethodComposite}

      " />
      </demo:actionComposite>

      <composite:implementation>
      <h:commandButton id="button" value="#

      {cc.attrs.value}

      ">
      <composite:insertChildren />

      <a4j:ajax render="#

      {cc.attrs.render}

      " execute="#

      {cc.attrs.execute}

      " />
      </h:commandButton>
      </composite:implementation>

      public void handleActionMethodComposite(ActionEvent event) throws AbortProcessingException

      { addFacesMessage("Method expression listener called from composite component"); }

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  nbelaevski Nick Belaevski
                  Reporter:
                  lfryc Lukáš Fryč
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: