Many thanks to the people of the list. I got both problems resolved: - the problem with the border not being added was (as I've found out latter) was my checkAccess() method returning false under certain situations. My fault, yet I still don't get why the page was being generated at all, much less without the border. - the simple link replacement was a REAAALLY easy component to build, based on Igor's basetag. If anyone wants to reuse it, alter, fix it, rename it, add to the distribution, feel free. I'm sure other people will have the same problem I did, coming from other frameworks.
The javadoc needs some formatting... which I'm not sure how-to :) []s Gus ---------- Início da mensagem original ----------- De: [EMAIL PROTECTED] Para: wicket-user@lists.sourceforge.net Cc: Data: Thu, 23 Jun 2005 15:28:32 -0700 Assunto: RE: [Wicket-user] Simple link replacement > 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 > > __________________________________________________________________________ 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=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user