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/12/15 00:50:04 UTC
svn commit: r356943 - /myfaces/examples/trunk/sandbox/inputAjax.jsp
Author: prophecy
Date: Wed Dec 14 15:50:00 2005
New Revision: 356943
URL: http://svn.apache.org/viewcvs?rev=356943&view=rev
Log:
- supports ValueChangeListeners now so you can process events when something changes.
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=356943&r1=356942&r2=356943&view=diff
==============================================================================
--- myfaces/examples/trunk/sandbox/inputAjax.jsp (original)
+++ myfaces/examples/trunk/sandbox/inputAjax.jsp Wed Dec 14 15:50:00 2005
@@ -75,10 +75,13 @@
forceId="true"
showOkButton="true"
showCancelButton="true"
- validator="#{inputAjaxBean.validateText2}"></s:inputTextAjax>
+ validator="#{inputAjaxBean.validateText2}">
+ <f:valueChangeListener type="org.apache.myfaces.custom.inputAjax.SampleValueChangeListener"/>
+ </s:inputTextAjax>
<s:message for="text2" styleClass="error"/>
<f:verbatim>This component demonstrates ajax updating ability, but you must click Ok for it to send.
- Cancel will clear the text and not send an update.</f:verbatim>
+ Cancel will clear the text and not send an update. Will show a validation error if the string is
+ less then 3 characters.</f:verbatim>
</h:panelGrid>
<h:outputText value="Input a Date"/>