AjaxFormComponentUpdatingBehavior attached to parent

2014-05-05 Thread Edgar Merino
Hello, I currently have a Panel with a DropDownChoice added to it, currently I have a method (MyPanel#addBehavior()) to delegate adding behaviors to the DDD, but I would like to know if it would be possible to attach the behavior to the Panel instead of the DDD. Is such thing possible?

Re: AjaxFormComponentUpdatingBehavior attached to parent

2014-05-05 Thread Sven Meier
No, the AjaxFormComponentUpdatingBehavior has to be added to the formComponent. Your custom Panel can override add(Behavior...) to do the forwarding though. Sven On 05/05/2014 08:19 PM, Edgar Merino wrote: Hello, I currently have a Panel with a DropDownChoice added to it, currently I have a

Re: AjaxFormComponentUpdatingBehavior attached to parent

2014-05-05 Thread Edgar Merino
Ah! Never though of doing that, I just realized that add(Behavior...) method is not final, I don't know where I saw that the signature for this and add(Component...) was final Thanks for the help! On 05/05/14 14:45, Sven Meier wrote: No, the AjaxFormComponentUpdatingBehavior has to be