[richfaces-issues] [JBoss JIRA] Updated: (RF-4603) Push: component stops page loading in Opera

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Thu Oct 23 19:56:20 EDT 2008


     [ https://jira.jboss.org/jira/browse/RF-4603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski updated RF-4603:
-------------------------------

    Fix Version/s: Future
         Assignee: Nick Belaevski


> 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
>            Assignee: Nick Belaevski
>             Fix For: Future
>
>
> <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

        



More information about the richfaces-issues mailing list