You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Pedro Santos <pe...@gmail.com> on 2010/11/19 11:41:08 UTC
Re: [jira] Created: (WICKET-3179) Default Component Behaviors
Hi Jean, you can add an IComponentInstantiationListener to do that on your
app.
On Fri, Nov 19, 2010 at 8:27 AM, Jean-Francois Larouche (JIRA) <
jira@apache.org> wrote:
> Default Component Behaviors
> ---------------------------
>
> Key: WICKET-3179
> URL: https://issues.apache.org/jira/browse/WICKET-3179
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.4.13
> Environment: Java 1.6, Windows.
> Reporter: Jean-Francois Larouche
> Priority: Minor
>
>
> Weve got a little problem and i dont know if theres another way to do this.
> Ive searched and found nothing.
>
> We need to add some sort of ErrorBehavior to all of our form components.
> And the code duplication starts to be very ugly.
>
> Would this be possible/make sense:
>
> When the components renders, they call getBehaviors();
>
> getBehaviors() could then not only get the Component one but also call
>
> Application.get().getDefaultComponentBehavior(); and return the merged
> list.
>
> This does not affect anything in current wicket implementation.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
--
Pedro Henrique Oliveira dos Santos