Jonik
Jonik

Reputation: 81761

Where to find the Wicket Stuff annotation package?

Where I can find wicketstuff-annotation.jar? It's used to be available at least in a Maven repo at http://wicketstuff.org/maven/repository but that doesn't exist anymore, and the Wicket Stuff homepage is not very helpful either.

Specifically, I need org.wicketstuff.annotation.mount.MountPath because I want readable URLs in my Wicket app and find annotations an elegant way to mount pages. (I wonder why this kind of stuff isn't included in core Wicket distribution...)

(Any place to download the jar from would be fine; I don't use Maven in current project.)

Upvotes: 0

Views: 1717

Answers (4)

Romain Lefebvre
Romain Lefebvre

Reputation: 61

Update from Wicket 1.5: You should use the method mountPage() instead of mountBookmarkablePage() as that method has been removed from Wicket 1.5.

@Override
protected void init() {
    mountPage("/users", UsersPage.class);
}

https://cwiki.apache.org/WICKET/migration-to-wicket-15.html

Upvotes: 2

Martijn Dashorst
Martijn Dashorst

Reputation: 3692

You can just mount your pages anywhere in your application, typically in your Application's init() method, like:

@Override
protected void init() {
    mountBookmarkablePage("/users", UsersPage.class);
}

That said, if you want to use the annotations package, it is available from Maven Central

Upvotes: 3

Tapas Bose
Tapas Bose

Reputation: 29806

This is the URL. You can click on Binary link to download the required jar.

Upvotes: 1

martin-g
martin-g

Reputation: 17513

A community user today contributed an upgrade of the library to Wicket 1.5, so it will be available for next release (1.5-RC6). Until then the users of 1.5 can use it from Github repo.

Upvotes: 0

Related Questions