You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ca...@apache.org on 2007/03/14 10:48:46 UTC

svn commit: r518085 - /myfaces/current12/test-webapp/src/main/webapp/labelTest.jsp

Author: cagatay
Date: Wed Mar 14 02:48:46 2007
New Revision: 518085

URL: http://svn.apache.org/viewvc?view=rev&rev=518085
Log:
Add example for the new requiredMessage attribute

Modified:
    myfaces/current12/test-webapp/src/main/webapp/labelTest.jsp

Modified: myfaces/current12/test-webapp/src/main/webapp/labelTest.jsp
URL: http://svn.apache.org/viewvc/myfaces/current12/test-webapp/src/main/webapp/labelTest.jsp?view=diff&rev=518085&r1=518084&r2=518085
==============================================================================
--- myfaces/current12/test-webapp/src/main/webapp/labelTest.jsp (original)
+++ myfaces/current12/test-webapp/src/main/webapp/labelTest.jsp Wed Mar 14 02:48:46 2007
@@ -10,7 +10,8 @@
 	<h:form id="labelTestForm">
 		<h:messages />
 		<br>
-		<h:inputText id="txt_text" value="#{labelTest.text}" label="Text" required="true"></h:inputText>
+		<h:outputText value="Text" />
+		<h:inputText id="txt_text" value="#{labelTest.text}" label="Text" required="true" requiredMessage="Text cannot be empty"></h:inputText>
 		<h:message for="txt_text"></h:message>
 		<br>
 		<h:commandButton value="Test" />