[richfaces-issues] [JBoss JIRA] Commented: (RF-2960) a4j:push and Facelets - eventProducer method won't get called

Jens Behrens (JIRA) jira-events at lists.jboss.org
Wed Apr 9 05:55:56 EDT 2008


    [ http://jira.jboss.com/jira/browse/RF-2960?page=comments#action_12407670 ] 
            
Jens Behrens commented on RF-2960:
----------------------------------

I tried your changed classes above...
The eventProducer method is getting called, but actually rerendering of specified components is happening always and not only if an event occurs via onEvent method of the listener...
The component has interval 3000, so every  3 seconds the msg component is rerendered instead of checking if there actually is an event in queue.

> a4j:push and Facelets - eventProducer method won't get called
> -------------------------------------------------------------
>
>                 Key: RF-2960
>                 URL: http://jira.jboss.com/jira/browse/RF-2960
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.0
>         Environment: Java 1.6
> JBoss 4.2.2 GA 
> Facelets 1.1.14
>            Reporter: Eugen Galperin
>         Assigned To: Alexander Smirnov
>            Priority: Critical
>             Fix For: 3.2.1, 3.2.0.SR1
>
>
> Push doesn't work anymore. The method to register event listener won't get called. The same code works fine with RichFaces 3.1.4
> index.xhtml
> <h:outputText id="msg" value="Test page. The method addListener won't be called."/>
> <a4j:region>
>     <h:form>
>         <a4j:push reRender="msg" eventProducer="#{messageBean.addListener}" interval="3000"/>
>     </h:form>
> </a4j:region>
> MessageBean:
> public void addListener(EventListener listener) {
>         System.out.println("MessageBean.addListener");
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list