I thought urlFor() would do the job too, but instead of returning an URL relative to the current Page, it returns an URL relative to the application. I assume this isn't a bug (otherwise other stuff would be broken) but it sure is confusing to me. I'd expect Page.urlFor(String path) to return a path relative to the current page.
Gili Juergen Donnerstag wrote:
the reason why autolinks by design ignores all tags with wicket:id is because we assume the user wants to handle this tag himself. And I think this assumption is true. Think about all the different kind of Links. So, exposing the functionality which handles href attrbutes IMO is the better way to go. Having said that, doesn't urlFor(String) in combination with a AttributModifier do the job? Juergen On 8/8/05, Gili <[EMAIL PROTECTED]> wrote:Hi, Autolink will not (by design) process any tags with <wicket:id>. The problem is that when I'm trying to set CSS into a Page I have to manually rewrite the href attribute so it is relative to the page. If you take a look at the autolink implementation you can see this isn't a trivial process. It certainly isn't as simple as invoking urlFor(oldHref)... Would it be possible to modify autolinking so it processes tags with <wicket:id> as well? Or is there a way to expose the autolink functionality in the form of a method I could invoke -- similar to urlFor() -- which will fix the resource paths? Thanks, Gili -- http://www.desktopbeautifier.com/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
-- http://www.desktopbeautifier.com/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
