Author: vbaranov
Date: 2008-03-06 05:46:53 -0500 (Thu, 06 Mar 2008)
New Revision: 6586
Added:
trunk/samples/simpleTogglePanel-sample/src/main/java/org/richfaces/SimpleBean.java
trunk/samples/simpleTogglePanel-sample/src/main/webapp/pages/pageRF_2195.jsp
Modified:
trunk/samples/simpleTogglePanel-sample/src/main/webapp/WEB-INF/faces-config.xml
Log:
Update test sample for
http://jira.jboss.com/jira/browse/RF-2195 issue
Added: trunk/samples/simpleTogglePanel-sample/src/main/java/org/richfaces/SimpleBean.java
===================================================================
--- trunk/samples/simpleTogglePanel-sample/src/main/java/org/richfaces/SimpleBean.java
(rev 0)
+++
trunk/samples/simpleTogglePanel-sample/src/main/java/org/richfaces/SimpleBean.java 2008-03-06
10:46:53 UTC (rev 6586)
@@ -0,0 +1,49 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * 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;
+
+/**
+ * Test bean for "\pages\pageRF_2195.jsp" for
+ * {@link
http://jira.jboss.com/jira/browse/RF-2195} issue
+ *
+ * @author Vladislav Baranov
+ */
+public class SimpleBean {
+
+ Integer property = 1;
+
+ public Integer getProperty() {
+ return property;
+ }
+
+ public void setProperty(Integer property) {
+ this.property = property;
+ }
+
+ public String changeLabel() {
+ System.out.println("ActionEvent fired");
+ property++;
+ System.out.println("Value of property on server : " + property);
+
+ return "success";
+ }
+}
Property changes on:
trunk/samples/simpleTogglePanel-sample/src/main/java/org/richfaces/SimpleBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/samples/simpleTogglePanel-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
trunk/samples/simpleTogglePanel-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-03-06
10:46:09 UTC (rev 6585)
+++
trunk/samples/simpleTogglePanel-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-03-06
10:46:53 UTC (rev 6586)
@@ -12,5 +12,18 @@
<managed-bean-class>org.richfaces.SkinBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>simpleBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.SimpleBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <navigation-rule>
+ <from-view-id>/pages/pageRF_2195.jsf</from-view-id>
+ <navigation-case>
+ <from-outcome>success</from-outcome>
+ <to-view-id>/pages/pageRF_2195.jsf</to-view-id>
+ </navigation-case>
+ </navigation-rule>
</faces-config>
Added: trunk/samples/simpleTogglePanel-sample/src/main/webapp/pages/pageRF_2195.jsp
===================================================================
--- trunk/samples/simpleTogglePanel-sample/src/main/webapp/pages/pageRF_2195.jsp
(rev 0)
+++
trunk/samples/simpleTogglePanel-sample/src/main/webapp/pages/pageRF_2195.jsp 2008-03-06
10:46:53 UTC (rev 6586)
@@ -0,0 +1,20 @@
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/simpleTogglePanel"
prefix="stp" %>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j" %>
+<html>
+<head>
+ <title>RF-2195</title>
+</head>
+
+<body>
+ <f:view>
+ <h:form id="SimpleToglePanel_form">
+ <stp:simpleTogglePanel label="STP" switchType="ajax"
reRender="out" action="#{simpleBean.changeLabel}">
+ <h:outputText value="content"/>
+ </stp:simpleTogglePanel>
+ <h:outputText value="#{simpleBean.property}" id="out"/>
+ </h:form>
+ </f:view>
+</body>
+</html>
\ No newline at end of file
Property changes on:
trunk/samples/simpleTogglePanel-sample/src/main/webapp/pages/pageRF_2195.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native