This content has been marked as final.
Show 3 replies
-
1. Re: Form validation does not dissappear
andygibson.contact.andygibson.net Apr 24, 2008 7:29 PM (in response to trumml)Off the top of my head, try adding 'immediate="true"' to the supports tag.
<a4j:support event="onchange" action="#{mb.updatePerson}" reRender="personForm" ajaxSingle="true" *immediate="true"*/>
This would cause the validation code to be bypassed and no error messages returned.
Cheers,
Andy Gibson
-
2. Re: Form validation does not dissappear
andygibson.contact.andygibson.net Apr 24, 2008 7:34 PM (in response to trumml)D'oh, the "*" around the immediate="true" in the code sample are not needed, I was trying to emphasize the added text.
It should be :
<a4j:support event="onchange" action="#{mb.updatePerson}" reRender="personForm" ajaxSingle="true" immediate="true"/>
Cheers,
Andy
-
3. Re: Form validation does not dissappear
trumml Apr 25, 2008 9:07 AM (in response to trumml)This does not work for me.
<h:selectOneMenu value="mb.person"> <s:selectItem value=#{allPersons} var="person" label="person.name"/> <a4j:support event="onchange" action="#{mb.updatePerson}" reRender="personForm" ajaxSingle="true" immediate=true"/> </h:selectOneMenu>
When I add the immediate attribute the mb.setPerson(person) method is no more called when selecting another person in the drop down.