You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by kranga <kr...@k2d2.org> on 2008/05/16 18:00:42 UTC

T5 Form issues

Using IE 7: Form gets submitted even if there are client-side validation 
errors.

Event bubbling side-effect: If you have a page that contains a form and a 
component A, and further if the component itself has a form, then if the 
component's form is submitted and you have a simple onValidateForm() method, 
that gets called for the component's form validation submission as well. 
Thats a not so pleasant side-effect ... on option would be allow a @Bubble 
annotation that should be present for an event handler to handle a bubbled 
event? 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 Form issues

Posted by Howard Lewis Ship <hl...@gmail.com>.
You can use onValidateFormFromXYZ where XYZ is the Form component.

Your onValidateForm() method may return true to cancel bubbling of the
server-side event.

On Fri, May 16, 2008 at 9:00 AM, kranga <kr...@k2d2.org> wrote:
> Using IE 7: Form gets submitted even if there are client-side validation
> errors.
>
> Event bubbling side-effect: If you have a page that contains a form and a
> component A, and further if the component itself has a form, then if the
> component's form is submitted and you have a simple onValidateForm() method,
> that gets called for the component's form validation submission as well.
> Thats a not so pleasant side-effect ... on option would be allow a @Bubble
> annotation that should be present for an event handler to handle a bubbled
> event?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org