From jira-events at lists.jboss.org Tue Mar 27 06:10:47 2012 Content-Type: multipart/mixed; boundary="===============5199492308895613961==" MIME-Version: 1.0 From: =?utf-8?q?Luk=C3=A1=C5=A1_Fry=C4=8D_=28JIRA=29_=3Cjira-events_at_lists=2E?= =?utf-8?q?jboss=2Eorg=3E?= To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-12095) Incorrect behavior of two pushes on the page Date: Tue, 27 Mar 2012 06:10:47 -0400 Message-ID: <715274205.33591.1332843047742.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 2084709749.33571.1332842568105.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============5199492308895613961== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-12095?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12679555#com= ment-12679555 ] = Luk=C3=A1=C5=A1 Fry=C4=8D commented on RF-12095: --------------------------------- There is delay in between repeated subscription after disabling and enablin= g push: RF-12096 = > Incorrect behavior of two pushes on the page > -------------------------------------------- > > Key: RF-12095 > URL: https://issues.jboss.org/browse/RF-12095 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-push/poll > Affects Versions: 4.2.0.Final > Reporter: Luk=C3=A1=C5=A1 Fry=C4=8D > > When you have 2 pushes on the page and one is conditionally rendered, rer= endering it causes unsubscribing of second push: > {code:xml} > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > xmlns:f=3D"http://java.sun.com/jsf/core" xmlns:a4j=3D"http://richface= s.org/a4j"> > > > > > >



> > > = > = > > > > = > = > = > > > > > > > = >
> = > > #{richBean.date} > > = >
> = > > > = > >
> = > > #{richBean.date} > >
>
>
> > {code} > {code:java} > @ManagedBean > public class RichBean { > public Date getDate() { > return new Date(); > } > public void push() throws MessageException { > TopicKey topicKey =3D new TopicKey("sampleAddress"); > TopicsContext topicsContext =3D TopicsContext.lookup(); > topicsContext.publish(topicKey, new Date().toString()); > System.out.println("push event"); > } > = > public void push2() throws MessageException { > TopicKey topicKey =3D new TopicKey("sampleAddress2"); > TopicsContext topicsContext =3D TopicsContext.lookup(); > topicsContext.publish(topicKey, new Date().toString()); > System.out.println("push event 2"); > } > } > {code} > Steps to reproduce: > 1. open the page > 2. you can see "subscribed" and "subscribed2" alert messages > 3. both, Push! and Push 2! buttons reloads respective dates > 4. click on checkbox and on the right of Push! button > EXPECTED: only Push! should stop to work > ACTUAL: both Push! and Push 2! stops to work -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira = --===============5199492308895613961==--