问题
Where can I find a spinner component for Wicket?, including Maven repo and a source code example?
回答1:
wicketstuff-minis has an implementation of a spinner. There is also a wicketstuff-minis-examples project
The maven repos are:
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>minis</artifactId>
<version>1.4.17.2</version>
</dependency>
and
<dependency>
<groupId>org.wicketstuff-examples</groupId>
<artifactId>minis</artifactId>
<version>1.4.17.2</version>
</dependency>
回答2:
Let your component implement IAjaxIndicatorAware
and provide it with the markup ID for your spinner, or use IndicatingAjaxLink
, IndicatingAjaxFallbackLink
and IndicatingAjaxButton
.
来源:https://stackoverflow.com/questions/6273860/spinner-component-in-wicket