it's true that I can skip the return false part and this will continue
automatically only that the actual function waits for some input and has a
callback method when this input is received. So actually continuing the
wicket actions is done upon activation of that callback and not when
call_functio
let's say this behavior is adding this to the onclik just before the wicket
ajax
onclick="call_function();return false;original_wicket_stuff_for_ajax()"
Now on oncomponenttag I can read the "original_wicket_stuff_for_ajax()"
I will modifiy call_function() to get the "original_wicket_stuff_fo
I agree with you, the best solution for an attachable behavior is
composition. I just don't see it resolve that especial complexity: "I want
this function call to resume the wicket action".
For example: the oncomponenttag is called on the page rendering, idependent
of the user interactions with the
Wel...this is the solution I wanted to avoid since this behavior can be
attached to buttons, links, ajax links...don't want to create onr for each.
I can use the tag from the oncomponenttag and find out where it is supposed
to go originallythis seems to be the option that will work
On Thu, Se
"value that is placed in the onClick event (which has the action for the
link or button that has the behavior placed on)"
You has an parameter determining the action to be take, why don't you use
polimorfism?
"My behavior just adds a function call before any other action and I want
this function c
The behvavior is not AbstractDefaultAjaxBehavior just one extending
AbstractBehavior.
Can I get it somehow from the onComponentTag of the behavior? I actually
need the value that is placed in the onClick event (which has the action for
the link or button that has the behavior placed on)
My behavi
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 wrote:
> Hi,
>
> We have been implementing the getAjaxCallD
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 differ