Just write a custom header contributor that is aware of the theme and references css accordingly.
Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -----Original Message----- From: sahar rostami <[email protected]> Sent: Wednesday, April 07, 2010 11:37 AM To: Wicket User Mailing List <[email protected]> Subject: Implementing theme in wicket Hi all, we have a web application that used for some company and each of them needs own favorite style (colors, fonts,etc.). we found out that a way is setting style to session and then adding "_styleName" at the end of html file names(such as resource bundles). this method is suitable in some use cases but cause code duplications. if i have two styles , i have to have two html files that only differ in some colors or fonts. another way that i am trying to go is using one html file and it uses classes of a style (for example style.css) and in webapp we have one package per theme such as this: webapp/css/*red*/style.css webapp/css/*blue*/style.css now i should tell to wicket in application start up use which of them. thereafter css files will be called from that location. And now my problem is in saying wicket that "Dear wicket! you should load css files from this(/css/red) location"!!!! i don't know how i can change default location of css files for wicket. thanks in advanced for any idea --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
