Easyfying mounts in 1.5

2010-11-27 Thread Major Péter
Hi, is there some specific reason, why WebApplication#mount is deprecated in 1.5? It could be a really good shortcut: mount(new MyMapper(, A.class); rather then: getRootRequestMapperAsCompound().add(new MyMapper(, A.class)); also PackageMapper looks really weird: mount(new MountMapper(/error,

Re: Easyfying mounts in 1.5

2010-11-27 Thread Martin Grigorov
Hi, Currently we have : WebApplication.mountPage(path, pageClass) which is a shortcut for WebApplication.getRootRequestMapperAsCompound().add(new MountedMapper(path, pageClass)); and org.apache.wicket.protocol.http.WebApplication.mountSharedResource(String, ResourceReference) which is:

Re: Easyfying mounts in 1.5

2010-11-27 Thread Jeremy Thomerson
How is your last suggestion different from mount page you mention first ? Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Nov 27, 2010 12:17 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Currently we

Re: Easyfying mounts in 1.5

2010-11-27 Thread Martin Grigorov
BookmarkableMapper produces something like: /wicket/bookmarkable/com.example.MyPage There is a mistake in the line below, it should be WebApplication#mountBookmarkable(pageClass) which will call getRootRequestMapperAsCompound().add(new BookmarkableMapper(pageClass)); i.e. without the path