Hi,

sorry, I thought you know that detail:

If a behavior or any of the components in the hierarchy implements IAjaxIndicatorAware, it can specify the id of a markup to be shown during Ajax processing:

https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/IAjaxIndicatorAware.java

This id is stored in the JavaScript attributes as attr.i - if you set it from Java (by implementing the interface) or by setting directly from JavaScript (e.g. in before), Wicket will show the veil and keep it shown when a redirect happens.

Hope this helps
Sven


On 22.01.20 21:25, Entropy wrote:
Sven,

I'm afraid I don't know what you mean.  Our real jQuery expert quit abruptly
and hasn't been replaced yet, so I'm sorry if this is a jQuery thing, but
your last two paragraphs don't make sense to me.  What is attrs.i?  It's not
on the object from what I see in the F12 tools.  There's alot of one and two
letter vars, but not i.  I assume by AJAX_CALL_BEFORE you mean subscribe to
/ajax/call/before, which I can do.  Are you suggesting that I can launch the
veil there?  I am currently launching it in beforeSend.  But how would it
automatically remove it?  Removing it at the right time is of course the
issue.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
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

Reply via email to