[jboss-user] [JBoss Seam] - a4j validation tutorial example bug

beligum do-not-reply at jboss.com
Wed May 9 14:53:52 EDT 2007


Hi all,

I have some problems with the a4j validation, suggested in the seam tutorial:


  | <s:decorate id="countryDecoration" template="edit.xhtml">
  |     <ui:define name="label">Country:</ui:define>
  |        <h:inputText value="#{location.country}" required="true">
  |            <a:support event="onblur" reRender="countryDecoration"/>
  |        </h:inputText>
  |     </s:decorate>
  | 

If I use this piece of code in my app, and I use a <h:commandButton ... type="submit"/> to submit the form, when I press enter while in the inputbox, the application crashes. The problem is probably because the form gets submitted (and redirects), while the ajax validation is still in progress.

This is the second time I encounter this kind of behaviour. My initial workaround was to disable ajax validation, but it's really user friendly and I'd like to use it.

Any solutions?

b.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044446#4044446

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044446



More information about the jboss-user mailing list