Author: mvitenkov
Date: 2009-04-08 08:44:23 -0400 (Wed, 08 Apr 2009)
New Revision: 13429
Modified:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/calendar/CalendarBean.java
Log:
add bean scope
Modified:
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/calendar/CalendarBean.java
===================================================================
---
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/calendar/CalendarBean.java 2009-04-08
12:40:06 UTC (rev 13428)
+++
trunk/test-applications/seamApp/web/src/main/java/org/richfaces/helloworld/domain/calendar/CalendarBean.java 2009-04-08
12:44:23 UTC (rev 13429)
@@ -30,11 +30,14 @@
import java.util.TimeZone;
import javax.faces.event.ValueChangeEvent;
import org.richfaces.helloworld.domain.util.componentInfo.ComponentInfo;
+import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
import org.richfaces.component.UICalendar;
import org.richfaces.event.CurrentDateChangeEvent;
@Name("calendarBean")
+(a)Scope(ScopeType.SESSION)
public class CalendarBean {
private static final String [] WEEK_DAY_SHORT = new String[] {
"<i>Sun</i>",
@@ -88,6 +91,7 @@
private boolean showWeeksBar;
private String todayControlMode; // scroll, select, hidden;
private UICalendar htmlCalendar = null;
+ private int text1,text2,text3,text4;
public CalendarBean() {
horizontalOffset = "0";
@@ -672,4 +676,28 @@
public void setHtmlCalendar(UICalendar htmlCalendar) {
this.htmlCalendar = htmlCalendar;
}
+ public int getText1() {
+ return ++text1;
+ }
+ public void setText1(int text1) {
+ this.text1 = text1;
+ }
+ public int getText2() {
+ return ++text2;
+ }
+ public void setText2(int text2) {
+ this.text2 = text2;
+ }
+ public int getText3() {
+ return ++text3;
+ }
+ public void setText3(int text3) {
+ this.text3 = text3;
+ }
+ public int getText4() {
+ return ++text4;
+ }
+ public void setText4(int text4) {
+ this.text4 = text4;
+ }
}