To one of the decorations script must to be appended the script responsible to call the behavior. You can get it invoking the AbstractDefaultAjaxBehavior.getCallbackScript() protected method.
On Thu, Sep 3, 2009 at 7:59 AM, Arie Fishler <[email protected]> wrote: > Hi, > > We have been implementing the getAjaxCallDecorator for links that > extends AjaxLink > in order to manipulate the way the wicket-ajax is called on these links. > > I have a need to do something similar with a behavior and not sure how to > implement. > > I have a behavior that is applied (added) to different links. This behavior > needs to manipulate and control when the actual wicket-ajax call is > executed > for the link it is on. > > It is like the behavior needs an access to the function call that activates > the ajax on the link. Is there a way for a behavior to get it? > > Cheers, > Arie >
