So, how about something like:
mountByClassName(String underPath, PackageName pkg);
this would be the same as loop through all classes located under the pkg and create a mounted path with the same name as the class.
I know this can be done outside Wicket's core API. Just calling some of the already built-in methods. But it would be nice to have a shortcut.
Regards,
On 5/8/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
you cannot mount onto / because that is reserved for the homepage, so in a way homepage is always mounted on /
if you want to mount something onto /site/index then you need to mount on /index not /
mount("/index", Index.class);
btw, your url mapping should be /site/* not just /site
-IgorOn 5/8/06, Bruno Borges < [EMAIL PROTECTED]> wrote:Why can't I mount my pages so they all can be bookmarkable from "/" ?
Just a note: the WicketServlet is under url-pattern = /site, so my pages would be bookmarkable like "/site/Index".
Regards,
--
Bruno Borges
[EMAIL PROTECTED]
Sun Certified Java Programmer for 1.4
Sun Certified Web Component Developer for 1.4
--
Bruno Borges
[EMAIL PROTECTED]
Sun Certified Java Programmer for 1.4
Sun Certified Web Component Developer for 1.4