Bugs item #1517019, was opened at 2006-07-04 15:41 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1517019&group_id=119783
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Open Resolution: None Priority: 5 Submitted By: Charlie Dobbie (cfmdobbie) Assigned to: Nobody/Anonymous (nobody) Summary: AutoLinkResolver does not support the default package Initial Comment: Hi, The AutoLinkResolver, if it does not detect a / at the start of an href, will assume the link is relative and will prepend the current page's package name and a single dot. However, if the current page is in the default package, the package name is empty, so a single dot is prepended - thus: <wicket:link><a href="MyPage.html">My Page</a></wicket:link> Resolves as: .MyPage Results in the following warning: [WARN] AutoLinkResolver - Did not find corresponding java class: .MyPage And the link fails to work. In Wicket 1.2 the error is at AutoLinkResolver.java:442: className = Packages.extractPackageName(page.getClass()) + "." + infoPath; The workaround is not to use the default package, of course! Charlie Dobbie. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1517019&group_id=119783 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop