This content has been marked as final.
Show 3 replies
-
1. Re: a4j:support onSubmit not working
ilya_shaikovsky Sep 6, 2007 9:27 AM (in response to jansch)This all working fine in RF 3.1.0 RC5 except the next bug that will be fixed soon.
http://jira.jboss.com/jira/browse/RF-842 -
2. Re: a4j:support onSubmit not working
ilya_shaikovsky Sep 6, 2007 9:36 AM (in response to jansch)sorry me.. I've made a mistake :)
<h:form id="form"> <h:inputText readonly="false" id="username" size="30" value="#{person.prop1}"> <a4j:support event="onkeyup" reRender="repeater" onsubmit="if (!checkLength()) return false;" oncomplete="alert('1');"/> </h:inputText> </h:form> <script > //<![CDATA[ function checkLength() { var length = document.getElementById("form:username").value.length; return !(length < 3); } //]]> </script>
This is works as you need. -
3. Re: a4j:support onSubmit not working
jansch Sep 7, 2007 7:37 AM (in response to jansch)Ok, thank you, it's working that way!
Strange behavior, but ok.
THX a lot.