Author: nbelaevski
Date: 2010-11-02 07:17:32 -0400 (Tue, 02 Nov 2010)
New Revision: 19887
Removed:
trunk/examples/core-demo/src/main/java/org/richfaces/demo/PushBean.java
trunk/examples/core-demo/src/main/webapp/push.xhtml
Modified:
trunk/examples/core-demo/src/main/webapp/welcome.xhtml
Log:
Removed push component from core-demo
Deleted: trunk/examples/core-demo/src/main/java/org/richfaces/demo/PushBean.java
===================================================================
--- trunk/examples/core-demo/src/main/java/org/richfaces/demo/PushBean.java 2010-11-02
11:02:21 UTC (rev 19886)
+++ trunk/examples/core-demo/src/main/java/org/richfaces/demo/PushBean.java 2010-11-02
11:17:32 UTC (rev 19887)
@@ -1,64 +0,0 @@
-/**
- * License Agreement.
- *
- * Rich Faces - Natural Ajax for Java Server Faces (JSF)
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-
-
-package org.richfaces.demo;
-
-import java.io.Serializable;
-import java.util.EventListener;
-import java.util.EventObject;
-
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.SessionScoped;
-
-import org.ajax4jsf.event.PushEventListener;
-
-/**
- * @author Nick Belaevski
- *
- */
-@ManagedBean(name = "pushBean")
-@SessionScoped
-public class PushBean implements Serializable {
-
- private static final long serialVersionUID = 4810889475400649809L;
-
- private int counter = 0;
-
- private transient volatile PushEventListener listener;
-
- public void setListener(EventListener listener) {
- this.listener = (PushEventListener) listener;
- }
-
- public void generateEvent() {
- listener.onEvent(new EventObject(this));
- }
-
- public int getCounter() {
- return counter;
- }
-
- public void increaseCounter() {
- counter++;
- }
-}
Deleted: trunk/examples/core-demo/src/main/webapp/push.xhtml
===================================================================
--- trunk/examples/core-demo/src/main/webapp/push.xhtml 2010-11-02 11:02:21 UTC (rev
19886)
+++ trunk/examples/core-demo/src/main/webapp/push.xhtml 2010-11-02 11:17:32 UTC (rev
19887)
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:a4j="http://richfaces.org/a4j">
-<f:view>
- <h:head>
- </h:head>
- <h:body>
- <h:panelGrid columns="2">
- Time: <h:panelGroup id="time">#{timeBean.dateString} -
#{pushBean.counter}</h:panelGroup>
- </h:panelGrid>
-
- <h:form id="form">
- <a4j:push ondataavailable="return confirm('execute action?')"
eventProducer="#{pushBean.setListener}" interval="1000"
action="#{pushBean.increaseCounter}">
- <f:ajax render="#{':time'}" />
- <f:param name="testParam" value="testValue" />
- <f:param name="testParam1" value="testValue1" />
- </a4j:push>
-
- <h:commandLink value="Generate push event"
action="#{pushBean.generateEvent}">
- <f:ajax render="@none" />
- </h:commandLink>
- </h:form>
- </h:body>
-</f:view>
-</html>
\ No newline at end of file
Modified: trunk/examples/core-demo/src/main/webapp/welcome.xhtml
===================================================================
--- trunk/examples/core-demo/src/main/webapp/welcome.xhtml 2010-11-02 11:02:21 UTC (rev
19886)
+++ trunk/examples/core-demo/src/main/webapp/welcome.xhtml 2010-11-02 11:17:32 UTC (rev
19887)
@@ -17,7 +17,6 @@
<li><h:link outcome="log">a4j:log</h:link></li>
<li><h:link
outcome="mediaOutput">a4j:mediaOutput</h:link></li>
<li><h:link
outcome="outputPanel">a4j:outputPanel</h:link></li>
- <li><h:link outcome="push">a4j:push</h:link></li>
<li><h:link
outcome="function">a4j:jsFunction</h:link></li>
<li><h:link
outcome="status">a4j:status</h:link></li>
<li><h:link outcome="dynamicExecute">Server side
execute/render</h:link></li>