You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Peter Niederwieser <pn...@gmail.com> on 2010/09/19 19:04:27 UTC

Problem with BeanEditForm validation

When using a BeanEditForm, I don't get validate events for individual
properties (e.g. "onValidateFromUsername"). Only when I add a custom block
for a property with an element and a t:id, I do get the event. Is this a
bug? I'm using Tapestry 5.2.0.

Cheers,
Peter
-- 
View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-with-BeanEditForm-validation-tp2845764p2845764.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Problem with BeanEditForm validation

Posted by Howard Lewis Ship <hl...@gmail.com>.
This is by design.  BeanEditForm is a scaffolding component; although
it is quite configurable and extensible, if you have very involved and
specific client requirements for layout and validation, just use a
normal Form and related components.  You'll find that TextField and
friends still honor @Validate and @Translate annotations, and still
generate reasonable default labels, etc.

On Sun, Sep 19, 2010 at 10:04 AM, Peter Niederwieser <pn...@gmail.com> wrote:
>
> When using a BeanEditForm, I don't get validate events for individual
> properties (e.g. "onValidateFromUsername"). Only when I add a custom block
> for a property with an element and a t:id, I do get the event. Is this a
> bug? I'm using Tapestry 5.2.0.
>
> Cheers,
> Peter
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-with-BeanEditForm-validation-tp2845764p2845764.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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