Author: ppitonak(a)redhat.com
Date: 2010-12-08 08:48:46 -0500 (Wed, 08 Dec 2010)
New Revision: 20461
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichToolbarBean.java
Log:
* scope of bean changed to view
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichToolbarBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichToolbarBean.java 2010-12-08
13:43:58 UTC (rev 20460)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichToolbarBean.java 2010-12-08
13:48:46 UTC (rev 20461)
@@ -22,12 +22,10 @@
package org.richfaces.tests.metamer.bean;
import java.io.Serializable;
-
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
-import javax.faces.bean.SessionScoped;
+import javax.faces.bean.ViewScoped;
import org.richfaces.component.UIToolbar;
-
import org.richfaces.tests.metamer.Attributes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -39,7 +37,7 @@
* @version $Revision$
*/
@ManagedBean(name = "richToolbarBean")
-@SessionScoped
+@ViewScoped
public class RichToolbarBean implements Serializable {
private static final long serialVersionUID = -1L;
@@ -54,7 +52,7 @@
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
- attributes = Attributes.getUIComponentAttributes(UIToolbar.class, getClass());
+ attributes = Attributes.getUIComponentAttributes(UIToolbar.class, getClass(),
false);
attributes.setAttribute("height", 28);
attributes.setAttribute("rendered", true);
Show replies by date