Gustavo, Im taking off for home so here is something quick that might help. You can tweak the attribute modifier by overriding the newValue method and prepending your path to whatever is alrady there instead of replacing it completely.
Hope it helps, Igor -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Hexsel Sent: Thursday, June 23, 2005 3:01 PM To: wicket-user Subject: [Wicket-user] Simple link replacement Thanks for the help with the border. I just couldn't find what I did differently from the examples, something was obviously amiss - after a few hours, I just threw it out and started from a straight copy of one of the examples and changed a line or two at a time. Things are going well now, except I couldn't find a way to generate relative URLs yet. I've looked at all packages and tried to use ResourceLink and AutoLinkResolver, but none of those seem to do what I want... How do you replace "absolute" URLs for resources like CSS's and images? My border includes the <head> tag to force everyone to use the standard CSS, however I don't know how to produce <link rel="stylesheet" href="/<myapplication>/<mycsspath>/general.css" type="text/css" /> Using the relative url (just "general.css") tries to fetch the value from the root of the application server, which would prevent me from packaging the app as a .WAR file. Any tips? []s Gus PS.: sorry for posting question after question! I've been trying the javadocs and examples, but some things are not answered there... __________________________________________________________________________ UOL Fone: Fale com o Brasil e o Mundo com até 90% de economia. http://www.uol.com.br/fone ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
BaseTag.java
Description: Binary data