You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by pr...@apache.org on 2005/11/18 23:39:58 UTC
svn commit: r345589 - /myfaces/examples/trunk/sandbox/inputAjax.jsp
Author: prophecy
Date: Fri Nov 18 14:39:42 2005
New Revision: 345589
URL: http://svn.apache.org/viewcvs?rev=345589&view=rev
Log:
- Made t:message elements work with Ajax errors
- fixed UIComponent.findComponent to actually work.
Modified:
myfaces/examples/trunk/sandbox/inputAjax.jsp
Modified: myfaces/examples/trunk/sandbox/inputAjax.jsp
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/sandbox/inputAjax.jsp?rev=345589&r1=345588&r2=345589&view=diff
==============================================================================
--- myfaces/examples/trunk/sandbox/inputAjax.jsp (original)
+++ myfaces/examples/trunk/sandbox/inputAjax.jsp Fri Nov 18 14:39:42 2005
@@ -44,6 +44,10 @@
.bold {
font-weight: bold;
}
+ .error {
+ font-weight:bold;
+ color:red;
+ }
</style>
<h1>Ajax Form Components</h1>
@@ -81,6 +85,7 @@
forceId="true">
<s:convertDateTime pattern="yyyy-MM-dd"/>
</s:inputTextAjax>
+ <t:message for="date1" styleClass="error"/>
<f:verbatim>This component demonstrates error handling capabilities, enter an invalid string to see the
error returned from the server through ajax.</f:verbatim>
</h:panelGrid>