From richfaces-svn-commits at lists.jboss.org Fri May 28 14:22:10 2010
Content-Type: multipart/mixed; boundary="===============3194620747249875095=="
MIME-Version: 1.0
From: richfaces-svn-commits at lists.jboss.org
To: richfaces-svn-commits at lists.jboss.org
Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r17385 - in
root/examples/core-demo/trunk/src/main: webapp and 1 other directory.
Date: Fri, 28 May 2010 14:22:09 -0400
Message-ID: <201005281822.o4SIM9ap001244@svn01.web.mwc.hst.phx2.redhat.com>
--===============3194620747249875095==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Author: amarkhel
Date: 2010-05-28 14:22:09 -0400 (Fri, 28 May 2010)
New Revision: 17385
Added:
root/examples/core-demo/trunk/src/main/webapp/param.xhtml
root/examples/core-demo/trunk/src/main/webapp/poll.xhtml
Modified:
root/examples/core-demo/trunk/src/main/java/org/richfaces/demo/CommandBe=
an.java
root/examples/core-demo/trunk/src/main/webapp/welcome.xhtml
Log:
Sample for poll and param
Modified: root/examples/core-demo/trunk/src/main/java/org/richfaces/demo/Co=
mmandBean.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/examples/core-demo/trunk/src/main/java/org/richfaces/demo/CommandB=
ean.java 2010-05-28 18:13:53 UTC (rev 17384)
+++ root/examples/core-demo/trunk/src/main/java/org/richfaces/demo/CommandB=
ean.java 2010-05-28 18:22:09 UTC (rev 17385)
@@ -5,37 +5,56 @@
=
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
+import javax.faces.event.ActionEvent;
import javax.faces.event.AjaxBehaviorEvent;
=
@ManagedBean(name =3D "commandBean")
@SessionScoped
public class CommandBean implements Serializable {
=
- private static final long serialVersionUID =3D 3485896940723796437L;
- =
- private String name;
+ private static final long serialVersionUID =3D 3485896940723796437L;
=
- public void setName(String name) {
- this.name =3D name;
- }
+ private String name;
=
- public String getName() {
- return name;
- }
+ private boolean pollEnabled;
=
- public void submit() {
- name =3D "Hello " + name;
- }
+ public boolean isPollEnabled() {
+ return pollEnabled;
+ }
=
- public void reset() {
- name =3D "";
- }
+ public void setPollEnabled(boolean pollEnabled) {
+ this.pollEnabled =3D pollEnabled;
+ }
=
- public Date getDate() {
- return new Date();
- }
+ public void setName(String name) {
+ this.name =3D name;
+ }
=
- public void listener(AjaxBehaviorEvent event) {
- System.out.println("CommandBean.listener()");
- }
+ public String getName() {
+ return name;
+ }
+
+ public void submit() {
+ name =3D "Hello " + name;
+ }
+
+ public void reset() {
+ name =3D "";
+ }
+
+ public Date getDate() {
+ return new Date();
+ }
+
+ public void listener(AjaxBehaviorEvent event) {
+ System.out.println("CommandBean.listener()");
+ }
+
+ public void enablePoll(ActionEvent event) {
+ setPollEnabled(true);
+ }
+
+ public void disablePoll(ActionEvent event) {
+ setPollEnabled(false);
+ }
}
Added: root/examples/core-demo/trunk/src/main/webapp/param.xhtml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- root/examples/core-demo/trunk/src/main/webapp/param.xhtml =
(rev 0)
+++ root/examples/core-demo/trunk/src/main/webapp/param.xhtml 2010-05-28 18=
:22:09 UTC (rev 17385)
@@ -0,0 +1,28 @@
+
+
+
+