You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by rebecca <ri...@gmail.com> on 2011/06/01 07:25:26 UTC

Re: adding style to multiple form fields on validaton

hi there

Has anyone have an idea for me?

Thanks
Rebecca

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/adding-style-to-multiple-form-fields-on-validaton-tp3560363p3564982.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: adding style to multiple form fields on validaton

Posted by Martin Grigorov <mg...@apache.org>.
In Wicket 1.5 you can broadcast an event and notify everyone interested.

e.g. MyValidator#onValidate(Validatable) { if (invalid)
{getComponent().send(new InvalidComponentEvent(getComponent()))} }

then MyPanel#onEvent(Object payload) { if (payload instance of
InvalidComponentEvent) { ... }}

On Wed, Jun 1, 2011 at 8:25 AM, rebecca <ri...@gmail.com> wrote:
> hi there
>
> Has anyone have an idea for me?
>
> Thanks
> Rebecca
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/adding-style-to-multiple-form-fields-on-validaton-tp3560363p3564982.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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