问题
I'll make this short:
Is there a way / library in Wicket to show an activity indicator? You know, the spinning thing that moves while the user is waiting for something, or is it just a javascript thing?
Thanks for your help.
回答1:
If this is an ajax operation then you can look at the implementations of IAjaxIndicatorAware
. These implementations will show a 'spinner' while the operation is processing.
e.g. IndicatingAjaxButton
and IndicatingAjaxLink
You could also look at AjaxIndicatorAppender
and alter it your own needs for non ajax things ?
回答2:
Check here to generate your own 'activity indicator'.
Simply show it when busy & hide it afterwards.
回答3:
I think this will help
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=87917
The Javascript and Css must be add in the renderHEad-Method
来源:https://stackoverflow.com/questions/5582084/is-there-an-activity-indicator-in-wicket