There are many ways to do that on wicket. E.g. Register a global call
handlers like,
function addBlocking() {
//console.log('addBlocking');
if($('.CD_blocking_layer').legth > 0) {
return;
}
$('<div class="CD_blocking_layer"><div class="blocking"></div><div
class="loadImg"></div></div>').css({
"height" : $(document).height(),
"width" : "100%",
"position" : "absolute",
"left" : "0px",
"top" : "0px"
}).appendTo('body');
}
function removeBlocking() {
//console.log('removeBlocking');
$(function(){$('.CD_blocking_layer').remove();
//console.log('AfterRemoveBlocking');
});
}
Wicket.Event.subscribe('/ajax/call/before', function(jqEvent, attributes,
jqXHR, errorThrown, textStatus) {
addBlocking();
});
Wicket.Event.subscribe('/ajax/call/after', function(jqEvent, attributes,
jqXHR, errorThrown, textStatus) {
setTimeout(function(){removeBlocking()}, 500);
});
The rest is JUST CSS.
On Fri, Feb 27, 2015 at 3:48 PM, dharmendra pandey <
[email protected]> wrote:
> Hi,
>
> I have added the tabs(Current and Archive) and wanted to display the
> Activity Indicator on Center or just beside the tab on click event of any
> of
> the tab.
>
> The Default Indicator the getting display on below the tab, Kindly suggest
> how I can display the activiti indicator in center of page(marked in center
> with blue)
>
>
>
> <
> http://apache-wicket.1842946.n4.nabble.com/file/n4669777/activity_indicator_on_tab_click.jpg
> >
>
>
> Regards
> Dharmendra Pandey
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Activity-Indicator-on-AbstractTab-AjaxTabbedPanel-tp4669777.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Regards - Ernesto Reinaldo Barreiro