Hi,
from the JavaDoc:
/**
* Indicates whether or not this AjaxBehavior will produce
<ajax-response>. By default it will
* produce it but some behaviors may need to return their own
response which shouldn't be
* processed by wicket-ajax.js
*/
private boolean wicketAjaxResponse = true;
So with wicketAjaxResponse = false (attrs.wr = false) you can specify
that your code wants to handle the Ajax response instead of Wicket's
default handling (i.e. changing the DOM).
>My goal is to prevent the ajax component replacement in some
circumstances.
>The circumstances could be changed during the delay between request
and response.
I don't see a solution how you could change .wr dynamically, since no
event is published before handling of the Ajax response.
What's your use-case?
Have fun
Sven
On 20.10.20 17:57, Holzmueller wrote:
Hi everyone,
I've a question about the wicket ajax response processing.
What's the meaning behind the attrs.wr JavaScript boolean attribute?
I can change it with JavaScript by the IAjaxCallListener.getBeforeSendHandler()
method.
My goal is to prevent the ajax component replacement in some circumstances.
The IAjaxCallListener.getPrecondition() is to early. The circumstances could be
changed during the delay between request and response.
Thanks for any help.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org