Author: norman.richards(a)jboss.com
Date: 2008-04-09 14:54:32 -0400 (Wed, 09 Apr 2008)
New Revision: 7890
Added:
trunk/examples/contactlist/resources/messages.properties
Removed:
trunk/examples/contactlist/resources/WEB-INF/classes/messages.properties
Modified:
trunk/examples/contactlist/view/editContact.xhtml
Log:
JBSEAM-2844
Deleted: trunk/examples/contactlist/resources/WEB-INF/classes/messages.properties
===================================================================
--- trunk/examples/contactlist/resources/WEB-INF/classes/messages.properties 2008-04-09
17:19:20 UTC (rev 7889)
+++ trunk/examples/contactlist/resources/WEB-INF/classes/messages.properties 2008-04-09
18:54:32 UTC (rev 7890)
@@ -1,4 +0,0 @@
-Contact_created New contact #{contact.firstName} #{contact.lastName} created
-Contact_deleted Contact #{contact.firstName} #{contact.lastName} deleted
-Contact_updated Contact #{contact.firstName} #{contact.lastName} updated
-Comment_created New comment posted
Added: trunk/examples/contactlist/resources/messages.properties
===================================================================
--- trunk/examples/contactlist/resources/messages.properties (rev
0)
+++ trunk/examples/contactlist/resources/messages.properties 2008-04-09 18:54:32 UTC (rev
7890)
@@ -0,0 +1,21 @@
+Contact_created New contact #{contact.firstName} #{contact.lastName} created
+Contact_deleted Contact #{contact.firstName} #{contact.lastName} deleted
+Contact_updated Contact #{contact.firstName} #{contact.lastName} updated
+Comment_created New comment posted
+
+javax.faces.component.UIInput.REQUIRED=value is required
+
+validator.assertFalse=assertion failed
+validator.assertTrue=assertion failed
+validator.future=must be a future date
+validator.length=length must be between {min} and {max}
+validator.max=must be less than or equal to {value}
+validator.min=must be greater than or equal to {value}
+validator.notNull=may not be null
+validator.past=must be a past date
+validator.pattern=must match "{regex}"
+validator.range=must be between {min} and {max}
+validator.size=size must be between {min} and {max}
+validator.email=not a well-formed email address
+
+validator.zip=not a valid zipcode
Modified: trunk/examples/contactlist/view/editContact.xhtml
===================================================================
--- trunk/examples/contactlist/view/editContact.xhtml 2008-04-09 17:19:20 UTC (rev 7889)
+++ trunk/examples/contactlist/view/editContact.xhtml 2008-04-09 18:54:32 UTC (rev 7890)
@@ -44,13 +44,13 @@
<tr class="prop">
<td class="name">First Name:</td>
<td class="value">
- <s:decorate><h:inputText id="firstName"
value="#{contact.firstName}"/></s:decorate>
+ <s:decorate><h:inputText id="firstName"
value="#{contact.firstName}" required="true"/></s:decorate>
</td>
</tr>
<tr class="prop">
<td class="name">Last Name:</td>
<td class="value">
- <s:decorate><h:inputText id="lastName"
value="#{contact.lastName}"/></s:decorate>
+ <s:decorate><h:inputText id="lastName"
value="#{contact.lastName}" required="true"/></s:decorate>
</td>
</tr>
<tr class="prop">
Show replies by date