myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (MYFACES-3946) Ajax listener on JsfElement components not invoked
Date Wed, 17 Dec 2014 03:20:14 GMT

     [ https://issues.apache.org/jira/browse/MYFACES-3946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leonardo Uribe resolved MYFACES-3946.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.2.7
         Assignee: Leonardo Uribe

Thanks for the example. I have checked it and the bug is valid. The ajax client behavior is
rendered, but it is not decoded, so the attached listeners are not activated.

> Ajax listener on JsfElement components not invoked
> --------------------------------------------------
>
>                 Key: MYFACES-3946
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3946
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.6
>            Reporter: Felix Rosenheinrich
>            Assignee: Leonardo Uribe
>            Priority: Minor
>             Fix For: 2.2.7
>
>
> Hi,
> I'm trying to add an ajax listener to a h1 tag by using passthrough elements in the following
way:
> {code}
> <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"
/>
> {code}
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message