Author: jjamrich
Date: 2011-08-01 12:29:35 -0400 (Mon, 01 Aug 2011)
New Revision: 22576
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichEditorBean.java
Log:
Make RichEditorBean view scoped and cache attributes
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichEditorBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichEditorBean.java 2011-08-01
15:03:20 UTC (rev 22575)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichEditorBean.java 2011-08-01
16:29:35 UTC (rev 22576)
@@ -25,6 +25,7 @@
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ViewScoped;
import org.richfaces.component.UIEditor;
import org.richfaces.tests.metamer.Attributes;
@@ -38,16 +39,19 @@
* @version $Revision$
*/
@ManagedBean(name = "richEditorBean")
+@ViewScoped
public class RichEditorBean implements Serializable {
public static final Logger LOG = LoggerFactory.getLogger(RichEditorBean.class);
/** Genrated serial UID */
private static final long serialVersionUID = -6029256813894981250L;
- private Attributes attributes =
Attributes.getComponentAttributesFromFacesConfig(UIEditor.class, getClass());
+ private Attributes attributes;
@PostConstruct
public void init(){
+ attributes = Attributes.getComponentAttributesFromFacesConfig(UIEditor.class,
getClass());
+
attributes.setAttribute("rendered", Boolean.TRUE);
attributes.remove("converter");
Show replies by date