Author: mvitenkov
Date: 2008-12-09 13:12:57 -0500 (Tue, 09 Dec 2008)
New Revision: 11675
Modified:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/Options.java
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/RichBean.java
Log:
Modified:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/Options.java
===================================================================
---
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/Options.java 2008-12-09
18:12:45 UTC (rev 11674)
+++
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/Options.java 2008-12-09
18:12:57 UTC (rev 11675)
@@ -1,9 +1,12 @@
package org.richfaces.helloworld.domain.rich;
+import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
@Name("option")
+(a)Scope(ScopeType.SESSION)
public class Options {
private static String[] CALENDAR_EVENT = { "onbeforedomupdate",
"onchanged", "oncollapse", "oncomplete",
"oncurrentdateselect",
@@ -90,9 +93,18 @@
private boolean reProperty;
private boolean reStraightforward;
private boolean attribute;
+ private boolean log;
+ public boolean isLog() {
+ return log;
+ }
+
+ public void setLog(boolean log) {
+ this.log = log;
+ }
+
public Options() {
-
+ log = false;
reDefault = true;
reComponent = true;
reProperty = true;
Modified:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/RichBean.java
===================================================================
---
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/RichBean.java 2008-12-09
18:12:45 UTC (rev 11674)
+++
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/rich/RichBean.java 2008-12-09
18:12:57 UTC (rev 11675)
@@ -8,10 +8,13 @@
import javax.faces.context.FacesContext;
import javax.faces.model.SelectItem;
+import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
import org.richfaces.VersionBean;
@Name("richBean")
+(a)Scope(ScopeType.SESSION)
public class RichBean {
private static final String EXT = ".xhtml";
private String version = VersionBean.SCM_REVISION;