[richfaces-svn-commits] JBoss Rich Faces SVN: r4644 - in branches/3.1.x/samples/richfaces-demo/src/main: webapp/richfaces/calendar and 1 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Dec 10 06:05:30 EST 2007


Author: ilya_shaikovsky
Date: 2007-12-10 06:05:30 -0500 (Mon, 10 Dec 2007)
New Revision: 4644

Modified:
   branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/calendar/CalendarBean.java
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/calSample.xhtml
   branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/usage.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-1561
Calendar Time fields addition.

Modified: branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/calendar/CalendarBean.java
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/calendar/CalendarBean.java	2007-12-09 22:52:58 UTC (rev 4643)
+++ branches/3.1.x/samples/richfaces-demo/src/main/java/org/richfaces/demo/calendar/CalendarBean.java	2007-12-10 11:05:30 UTC (rev 4644)
@@ -43,7 +43,7 @@
 
 		locale = Locale.US;
 		popup = true;
-		pattern = "MMM d, yyyy";
+		pattern = "MMM d, yyyy, HH:mm";
 	}
 		
 	public void selectLocale(ValueChangeEvent event) {

Modified: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/calSample.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/calSample.xhtml	2007-12-09 22:52:58 UTC (rev 4643)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/examples/calSample.xhtml	2007-12-10 11:05:30 UTC (rev 4644)
@@ -40,12 +40,12 @@
 				<h:outputText value="Select Date Pattern:"/>
 				<h:selectOneMenu value="#{calendarBean.pattern}">
 					<a4j:support event="onchange" reRender="calendar"/>
-					<f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy"/>
-					<f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy"/>
+					<f:selectItem itemLabel="d/M/yy HH:mm" itemValue="d/M/yy HH:mm"/>
+					<f:selectItem itemLabel="dd/M/yy hh:mm a" itemValue="dd/M/yy hh:mm a"/>
 					<f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y"/>
 					<f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy"/>												
 				</h:selectOneMenu>
-				
+				 
 			</h:panelGrid>	
 	
 		</h:panelGrid>

Modified: branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/usage.xhtml
===================================================================
--- branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/usage.xhtml	2007-12-09 22:52:58 UTC (rev 4643)
+++ branches/3.1.x/samples/richfaces-demo/src/main/webapp/richfaces/calendar/usage.xhtml	2007-12-10 11:05:30 UTC (rev 4644)
@@ -8,8 +8,8 @@
 	<ui:composition template="/templates/component-sample.xhtml">
 		<ui:define name="sample">
 			
-			<p>
-				rich:calendar allows to select the date using monthly calendar elements on pages.
+			<p><b>
+				rich:calendar</b> allows to select the date using monthly calendar elements on pages.
 				It is possible to use the component in a popup and inline code. At a popup mode Calendar 
 				is initially rendered as input for date and button on the right side to call a popup. 
 				In case of an inline mode, the monthly calendar is located on a page initially.
@@ -23,6 +23,15 @@
 				</ui:include>
 													
 			</div>
+			<p>
+				Calendar component allows to work with <b>time</b> also. You should just define
+				time in pattern ( for example "<i>d/M/yy HH:mm</i>" as it defined in this sample
+				by default)   
+			</p>
+			<p>
+				After you choose some date - you'll be able to manage time for this date. Spinner will be called
+				after click on the time fields to edit them.
+			</p>
 			<p>
 			<b>locale</b> attribute is defined as a Locale. The default value is set to the Locale of the current page.
 			The name of the month and week days names depend of the Locale. 




More information about the richfaces-svn-commits mailing list