Thanks Al, I figured it was that easy, I guess sometimes you make something more complicated that it really is.
-Craig Al Maw wrote: > > craigdd wrote: >> I'm looking for the best way to provide CSS branding for a logged in >> Client. >> In other words a css will be added as a header contrib to a page based on >> the Client object found in the session and search for a name like; >> layout_[clientname].css. > > Errr, you just said what to do right there. ;-) > > add(HeaderContributor.forCss( > "css/branding/" + YourSession.get().getClientName() + ".css" > )); > > That's for context-relative stuff (if you're using 1.3.0-SNAPSHOT you'll > need a fairly up-to-date version). > > I.e. put your CSS files in: > src/main/webapp/css/branding/WidgetsIncorporated.css > src/main/webapp/css/branding/SproketsCorp.css > > Or you can use package resources, obviously. > > It's that simple, unless I'm missing your intent. > > Al > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/CSS-Branding-tf3807302.html#a10775881 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
