Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3946

Ajax listener on JsfElement components not invoked

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.6
    • 2.2.7
    • None
    • None

    Description

      Hi,

      I'm trying to add an ajax listener to a h1 tag by using passthrough elements in the following way:

      <h1 jsf:id="heading">
          <f:ajax event="click" render="counter" listener="#{helloWorldBacking.headingClicked}"/>
          <h:outputText value="Heading (Click me)" />
      </h1>
      <h:outputText id="counter" value="Heading clicked: #{helloWorldBacking.count} Times" />
      

      The request is processed and the response contains the correct updates but the listener is not invoked.

      I noticed lu4242 commented on MYFACES-3920 that he has a similar behavior with panelGroups because the decode method was not overridden in the renderer. The JsfElementRenderer is also missing the decode method although JsfElement implements ClientBehaviorHolder.

      I created a sample project on GitHub: https://github.com/khujo/myfacesPassthroughAjax

      Best regards

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            khujo Felix Rosenheinrich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: