Re: Twice Behavior on the same event handler (wicket 1.2.x)

2007-09-06 Thread Alex Objelean
I am curious, what is your use case for chaining behaviors? I think that if you have two things that you want to chain, then chain them in the same handler, or use decorator to add the client-side code. Alex paolo di tommaso wrote: Carlos, Can you provide an example of your custom

Re: Twice Behavior on the same event handler (wicket 1.2.x)

2007-09-06 Thread Scott Swank
Would it make sense to have a behavior that was implemented as a Chain of Responsibility http://en.wikipedia.org/wiki/Chain-of-responsibility_pattern Then it would just be a matter of adding that behavior to your component. On 9/6/07, Alex Objelean [EMAIL PROTECTED] wrote: I am curious, what

Re: Twice Behavior on the same event handler (wicket 1.2.x)

2007-09-06 Thread Carlos Pita
Alex: We implemented a subclass of Form that has some sophisticated validation and customized feedback panels built-in. This form automatically instruments its fields with an ajax validating behavior. But sometimes -not that often- a field needs to ajax-do a bit more than just being validated, so

Re: Twice Behavior on the same event handler (wicket 1.2.x)

2007-09-06 Thread Igor Vaynberg
the problem with this stuff is that there is no single pattern that will work sometimes you want a chain where if a link fails the chain shortcircuits other times you dont want the shortcircuit sometimes you care about the order, other times you do not there are many variations of this and they

Re: Twice Behavior on the same event handler (wicket 1.2.x)

2007-09-06 Thread Eelco Hillenius
On 9/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote: the problem with this stuff is that there is no single pattern that will work sometimes you want a chain where if a link fails the chain shortcircuits other times you dont want the shortcircuit sometimes you care about the order, other times

Re: Twice Behavior on the same event handler (wicket 1.2.x)

2007-09-05 Thread Matej Knopp
I believe it will only fire the last added behavior. -Matej On 9/5/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Dear Community, what happens if two or event behavior are added on the save event handler. I mean something like that Button b = new Button(the-button);l b.add(new