That would be great. Could you also please take a look at bug #1255188 which deals with CSS links that cannot be processed by autolink (because they are Wicket components). Related to that issue, is there a reason we don't define urlFor(String) at a level higher than Page? It would sure be useful for CSSLink and other components to be able to invoke this method on normal components instead of having to reimplement the logic themselves.
Thanks, Gili Juergen Donnerstag wrote:
I did some research on the css path problem last night and Gili is right. Though we generate a proper URL, it can not be found by the servlet container because it is not in its context (it is in /WEB-INF/class). Thus the autolink resolver should make use of a StaticResourceReference as mentioned by Johan. Juergen On 8/8/05, Johan Compagner <[EMAIL PROTECTED]> wrote:is this not possible: StaticResourceReference pageResource = new StaticResourceReference(getClass(), "page.css"); pageCSS.add(new AttributeModifier("href", false, new Model(page.urlFor(pageResource.getPath())))); that bind call that you do is not needed. johan ------------------------------------------------------- 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
