Author: akushunin
Date: 2007-11-22 09:09:02 -0500 (Thu, 22 Nov 2007)
New Revision: 4181
Modified:
trunk/ui/calendar/src/main/config/component/calendar.xml
trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
Additional attributes on calendar
Modified: trunk/ui/calendar/src/main/config/component/calendar.xml
===================================================================
--- trunk/ui/calendar/src/main/config/component/calendar.xml 2007-11-22 13:28:01 UTC (rev
4180)
+++ trunk/ui/calendar/src/main/config/component/calendar.xml 2007-11-22 14:09:02 UTC (rev
4181)
@@ -525,6 +525,15 @@
</description>
<defaultvalue>true</defaultvalue>
</property>
+ <property>
+ <name>showApplyButton</name>
+ <classname>boolean</classname>
+ <description>
+ If false ApplyButton should not be shown
+ </description>
+ <defaultvalue>false</defaultvalue>
+ </property>
+
</component>
&listeners;
</components>
Modified: trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-11-22
13:28:01 UTC (rev 4180)
+++ trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-11-22
14:09:02 UTC (rev 4181)
@@ -195,6 +195,11 @@
public abstract void setShowToday(boolean showToday);
+ public abstract boolean isShowApplyButton();
+
+ public abstract void setShowApplyButton(boolean showApplyButton);
+
+
// TODO onclick add users onclick
// currentDate processing -------------------------------------------------
Modified: trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
--- trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-11-22
13:28:01 UTC (rev 4180)
+++ trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-11-22
14:09:02 UTC (rev 4181)
@@ -153,11 +153,11 @@
showToday:#{component.attributes['showToday']},
showScrollerBar:#{component.attributes['showScrollerBar']},
showWeeksBar:#{component.attributes['showWeeksBar']},
- showWeeksDayBar:#{component.attributes['showWeeksDayBar']}
+ showWeeksDayBar:#{component.attributes['showWeeksDayBar']},
+ showApplyButton:#{component.attributes['showApplyButton']}
-
<f:call name="writeClass"/>
<f:call name="writeDayCellClass"/>
<f:call name="writeDayStyleClass"/>
Show replies by date