Author: ilya_shaikovsky
Date: 2010-05-13 10:49:49 -0400 (Thu, 13 May 2010)
New Revision: 17020
Modified:
root/examples/richfaces-demo/trunk/src/main/java/org/richfaces/demo/common/SkinBean.java
root/examples/richfaces-demo/trunk/src/main/webapp/WEB-INF/faces-config.xml
Log:
https://jira.jboss.org/jira/browse/RF-8654
Modified:
root/examples/richfaces-demo/trunk/src/main/java/org/richfaces/demo/common/SkinBean.java
===================================================================
---
root/examples/richfaces-demo/trunk/src/main/java/org/richfaces/demo/common/SkinBean.java 2010-05-13
12:52:12 UTC (rev 17019)
+++
root/examples/richfaces-demo/trunk/src/main/java/org/richfaces/demo/common/SkinBean.java 2010-05-13
14:49:49 UTC (rev 17020)
@@ -5,15 +5,23 @@
import java.io.Serializable;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ManagedProperty;
+import javax.faces.bean.SessionScoped;
+
/**
- * @author sim
+ * @author ishaikovsky
*/
+@ManagedBean(name="skinBean")
+@SessionScoped
public class SkinBean implements Serializable {
/**
*
*/
private static final long serialVersionUID = -2399884208294434812L;
+
+ @ManagedProperty(value="blueSky")
private String skin;
public String getSkin() {
Modified: root/examples/richfaces-demo/trunk/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- root/examples/richfaces-demo/trunk/src/main/webapp/WEB-INF/faces-config.xml 2010-05-13
12:52:12 UTC (rev 17019)
+++ root/examples/richfaces-demo/trunk/src/main/webapp/WEB-INF/faces-config.xml 2010-05-13
14:49:49 UTC (rev 17020)
@@ -19,16 +19,5 @@
<managed-bean-name>opBean2</managed-bean-name>
<managed-bean-class>org.richfaces.demo.outputPanel.OutputPanelBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
- <managed-bean>
- <managed-bean-name>skinBean</managed-bean-name>
-
<managed-bean-class>org.richfaces.demo.common.SkinBean</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- <managed-property>
- <property-name>skin</property-name>
- <property-class>java.lang.String</property-class>
- <value>blueSky</value>
- </managed-property>
- </managed-bean>
-
+ </managed-bean>
</faces-config>
\ No newline at end of file