From jira-events at lists.jboss.org Thu Mar 29 16:26:49 2012 Content-Type: multipart/mixed; boundary="===============4469682863533210676==" MIME-Version: 1.0 From: Brian Leathem (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-12096) Push: there is delay between repeated subscribtion Date: Thu, 29 Mar 2012 16:26:48 -0400 Message-ID: <940911867.41622.1333052808811.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 298994236.33589.1332842927828.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============4469682863533210676== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-12096?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Brian Leathem updated RF-12096: ------------------------------- Fix Version/s: 4.3-Tracking = > Push: there is delay between repeated subscribtion > -------------------------------------------------- > > Key: RF-12096 > URL: https://issues.jboss.org/browse/RF-12096 > 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 > Fix For: 4.3-Tracking > > > When you have conditionally rendered {{a4j:push}} component and you disab= le it, > then it stops to receive push events. > Once you enable it, there is delay before it will start to receive events= again. > Sample code for reproduction: > {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} > > = >
>
>
>
> > {code} > {code:java} > package demo; > import java.util.Date; > import javax.faces.bean.ManagedBean; > import org.richfaces.application.push.MessageException; > import org.richfaces.application.push.TopicKey; > import org.richfaces.application.push.TopicsContext; > @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"); > } > } > {code} > Steps to reproduce: > 1. open the sample page (the "subscribed" message appears) > 2. click on Push! button (the date is changed) > 3. check the checkbox > 4. click on Push! button (the date is not changed anymore) > 5. uncheck the checkbox (the "subscribed" message appears again) > 6. click on Push! > EXPECTED: the date should be changed > ACTUAL: the date is not changed > If you will wait for some seconds, the Push! button will cause change of = the date, > but in this delay, client can lose data updates (since "subscribed" event= does not show that the client is starting to receive data). -- 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 = --===============4469682863533210676==--