[richfaces-svn-commits] JBoss Rich Faces SVN: r13754 - in trunk/examples/photoalbum/web/src/main/webapp/includes: userPrefs and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Apr 22 06:33:12 EDT 2009


Author: Alex.Kolonitsky
Date: 2009-04-22 06:33:12 -0400 (Wed, 22 Apr 2009)
New Revision: 13754

Modified:
   trunk/examples/photoalbum/web/src/main/webapp/includes/shelf/shelfEditInfo.xhtml
   trunk/examples/photoalbum/web/src/main/webapp/includes/userPrefs/userPrefsEdit.xhtml
Log:
calendar validation

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 09:05:50 UTC (rev 13753)
+++ trunk/examples/photoalbum/web/src/main/webapp/includes/shelf/shelfEditInfo.xhtml	2009-04-22 10:33:12 UTC (rev 13754)
@@ -6,78 +6,80 @@
 	xmlns:richx="http://richfaces.org/richx"
 	xmlns:rich="http://richfaces.org/rich">
 		<div class="shelf-edit">
-		<table style="border-collapse : collapse;" cellpadding="5" border="0">
-			<tr>
-				<td valign="top" nowrap="true" style="padding-top : 8px">
-					#{messages['shelf_name']}
-				</td>
-				<td valign="top" colspan="2">
-					<h:inputText id="shelf_name"
-								 value="#{model.selectedShelf.name}"
-								 styleClass="shelf-edit-input"
-								 required="true"/>
-				</td>
-			</tr>
-			<tr>
-				<td style="padding:0; margin:0;" />
-				<td style="padding:0; margin:0;" ><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">
-						<rich:calendar id="shelf_date"
-									   styleClass="shelf-edit-calendar"
-									   enableManualInput="true"
-									   value="#{model.selectedShelf.created}"
-									   cellWidth="24px"
-									   cellHeight="22px">
-							<rich:ajaxValidator event="onchange"/>
-						</rich:calendar>
-					</a4j:outputPanel>
-					<rich:message for="calendar" />
-				</td>
-			</tr>
-			<tr>
-				<td style="padding:0; margin:0;" />
-				<td style="padding:0; margin:0;" ><rich:message for="shelf_date" /></td>
-			</tr>
-			<tr>
-				<td valign="top" nowrap="true"  style="padding-top : 8px">
-					#{messages['description']}
-				</td>
-				<td valign="top" colspan="2">
-					<h:inputTextarea id="shelf_description"
-									 value="#{model.selectedShelf.description}"
-									 styleClass="shelf-edit-area" />
-				</td>
-			</tr>
-			<tr>
-				<td style="padding:0; margin:0;" />
-				<td style="padding:0; margin:0;" ><rich:message for="shelf_description" /></td>
-			</tr>
-			<tr>
-				<td valign="top" nowrap="true"  style="padding-top : 8px">
-					<h:outputText value="#{messages['album.shared']}" />
-				</td>
-				<td valign="top">
-					<h:selectBooleanCheckbox styleClass="selectBooleanCheckbox"
-											 id="shared"
-											 value="#{model.selectedShelf.shared}"/>
-					<rich:message for="shared" />
-				</td>
-			</tr>
-			<tr>
-				<td valign="top">
-				</td>
-				<td valign="top" align="right" colspan="2" style="padding : 10px;">
-					<richx:commandButton id="saveButton" style="float: left" value="#{messages['save']}" actionListener="#{shelfManager.editShelf(model.selectedShelf)}" reRender="mainArea" />
-					<richx:commandButton id="cancelButton" value="#{messages['cancel']}"  immediate="true" actionListener="#{controller.cancelEditShelf()}" reRender="mainArea" />
-				</td>
-			</tr>
-		</table>
+		<rich:graphValidator>
+			<table style="border-collapse : collapse;" cellpadding="5" border="0">
+				<tr>
+					<td valign="top" nowrap="true" style="padding-top : 8px">
+						#{messages['shelf_name']}
+					</td>
+					<td valign="top" colspan="2">
+						<h:inputText id="shelf_name"
+									 value="#{model.selectedShelf.name}"
+									 styleClass="shelf-edit-input"
+									 required="true"/>
+					</td>
+				</tr>
+				<tr>
+					<td style="padding:0; margin:0;" />
+					<td style="padding:0; margin:0;" ><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">
+							<rich:calendar id="shelf_date"
+										   styleClass="shelf-edit-calendar"
+										   enableManualInput="true"
+										   value="#{model.selectedShelf.created}"
+										   cellWidth="24px"
+										   cellHeight="22px">
+								<rich:ajaxValidator event="onchange"/>
+							</rich:calendar>
+						</a4j:outputPanel>
+						<rich:message for="calendar" />
+					</td>
+				</tr>
+				<tr>
+					<td style="padding:0; margin:0;" />
+					<td style="padding:0; margin:0;" ><rich:message for="shelf_date" /></td>
+				</tr>
+				<tr>
+					<td valign="top" nowrap="true"  style="padding-top : 8px">
+						#{messages['description']}
+					</td>
+					<td valign="top" colspan="2">
+						<h:inputTextarea id="shelf_description"
+										 value="#{model.selectedShelf.description}"
+										 styleClass="shelf-edit-area" />
+					</td>
+				</tr>
+				<tr>
+					<td style="padding:0; margin:0;" />
+					<td style="padding:0; margin:0;" ><rich:message for="shelf_description" /></td>
+				</tr>
+				<tr>
+					<td valign="top" nowrap="true"  style="padding-top : 8px">
+						<h:outputText value="#{messages['album.shared']}" />
+					</td>
+					<td valign="top">
+						<h:selectBooleanCheckbox styleClass="selectBooleanCheckbox"
+												 id="shared"
+												 value="#{model.selectedShelf.shared}"/>
+						<rich:message for="shared" />
+					</td>
+				</tr>
+				<tr>
+					<td valign="top">
+					</td>
+					<td valign="top" align="right" colspan="2" style="padding : 10px;">
+						<richx:commandButton id="saveButton" style="float: left" value="#{messages['save']}" actionListener="#{shelfManager.editShelf(model.selectedShelf)}" reRender="mainArea" />
+						<richx:commandButton id="cancelButton" value="#{messages['cancel']}"  immediate="true" actionListener="#{controller.cancelEditShelf()}" reRender="mainArea" />
+					</td>
+				</tr>
+			</table>
+		</rich:graphValidator>
 	</div>
 	<ui:include src="/includes/album/albumsList.xhtml">
 		<ui:param name="albums" value="#{model.selectedShelf.albums}" />

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




More information about the richfaces-svn-commits mailing list