Push: component stops page loading in Opera
-------------------------------------------
Key: RF-4603
URL:
https://jira.jboss.org/jira/browse/RF-4603
Project: RichFaces
Issue Type: Bug
Reporter: Nick Belaevski
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<html><head></head><body>
<h:form id="form">
<h:outputText id="text" value="Hello: #{monitor.text}" />
<a4j:commandButton action="#{monitor.send}" value="SEND" />
<a4j:push interval="1000" reRender="text"
eventProducer="#{monitor.addListener}" />
</h:form>
</body></html>
</ui:composition>
package org.richfaces;
import java.util.EventListener;
import java.util.EventObject;
import java.util.Random;
import org.ajax4jsf.event.PushEventListener;
public class Monitor
{
private PushEventListener listener;
public void addListener(EventListener listener)
{
this.listener = (PushEventListener) listener;
}
public String send()
{
if (listener != null) listener.onEvent(new EventObject(this));
return null;
}
public String getText()
{
return "random#" + new Random().nextInt();
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira