[richfaces-svn-commits] JBoss Rich Faces SVN: r13764 - in trunk/examples/photoalbum/web/src/main/webapp/includes: image and 2 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Apr 22 10:32:52 EDT 2009


Author: Alex.Kolonitsky
Date: 2009-04-22 10:32:52 -0400 (Wed, 22 Apr 2009)
New Revision: 13764

Modified:
   trunk/examples/photoalbum/web/src/main/webapp/includes/album/albumEditInfo.xhtml
   trunk/examples/photoalbum/web/src/main/webapp/includes/image/imageEditInfo.xhtml
   trunk/examples/photoalbum/web/src/main/webapp/includes/shelf/shelfEditInfo.xhtml
   trunk/examples/photoalbum/web/src/main/webapp/includes/userPrefs/userPrefsEdit.xhtml
Log:
Date validation

Modified: trunk/examples/photoalbum/web/src/main/webapp/includes/album/albumEditInfo.xhtml
===================================================================
(Binary files differ)

Modified: trunk/examples/photoalbum/web/src/main/webapp/includes/image/imageEditInfo.xhtml
===================================================================
(Binary files differ)

Modified: trunk/examples/photoalbum/web/src/main/webapp/includes/shelf/shelfEditInfo.xhtml
===================================================================
--- trunk/examples/photoalbum/web/src/main/webapp/includes/shelf/shelfEditInfo.xhtml	2009-04-22 14:22:05 UTC (rev 13763)
+++ trunk/examples/photoalbum/web/src/main/webapp/includes/shelf/shelfEditInfo.xhtml	2009-04-22 14:32:52 UTC (rev 13764)
@@ -16,26 +16,28 @@
 						<h:inputText id="shelf_name"
 									 value="#{model.selectedShelf.name}"
 									 styleClass="shelf-edit-input"
-									 required="true"/>
+									 required="true">
+							<rich:ajaxValidator event="onblur"/>
+						</h:inputText>
 					</td>
 				</tr>
 				<tr>
 					<td style="padding:0; margin:0;" />
-					<td style="padding:0; margin:0;" ><rich:message for="shelf_name" /></td>
+					<td style="padding:0; margin:0;" class="errors" ><rich:message for="shelf_name" /></td>
 				</tr>
 				<tr>
 					<td valign="top" nowrap="true"  style="padding-top : 8px">
 						#{messages['creation_date']}
 					</td>
 					<td valign="top">
-						<a4j:outputPanel id="calendar" layout="block">
+						<a4j:outputPanel id="calendar" layout="block" >
 							<rich:calendar id="shelf_date"
 										   styleClass="shelf-edit-calendar"
 										   enableManualInput="true"
 										   value="#{model.selectedShelf.created}"
 										   cellWidth="24px"
-										   cellHeight="22px">
-								<rich:ajaxValidator event="onchange"/>
+										   cellHeight="22px" >
+								<rich:ajaxValidator event="oninputblur" />
 							</rich:calendar>
 						</a4j:outputPanel>
 						<rich:message for="calendar" />
@@ -43,7 +45,7 @@
 				</tr>
 				<tr>
 					<td style="padding:0; margin:0;" />
-					<td style="padding:0; margin:0;" ><rich:message for="shelf_date" /></td>
+					<td style="padding:0; margin:0;" class="errors" ><rich:message for="shelf_date" /></td>
 				</tr>
 				<tr>
 					<td valign="top" nowrap="true"  style="padding-top : 8px">

Modified: trunk/examples/photoalbum/web/src/main/webapp/includes/userPrefs/userPrefsEdit.xhtml
===================================================================
(Binary files differ)




More information about the richfaces-svn-commits mailing list