Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF 2.0 <h:outputStylesheet>  RSS feed

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I’m having some woes regarding the <h:outputStylesheet> tag. My website has a bit of a unique setup. It really is four sites in one. The backing bean to each of the four sub-sites home page determines a couple session variables, one of those being the style sheet. Well I am upgrading my project from MyFaces 1.1 to Mojarra 2.0. I was previously using Tomahawk’s <t:stylesheet> tag.

The problem is it takes two clicks to get the style sheet to reload. The scenario being, if I am on sub-site A, and I click my browsers bookmark to take me to sub-site B, the style sheet does not refresh. I have to click the bookmark a second time in order for everything to render correctly. I did not have any issues using the Tomahawk tag, but I would like to phase out as many of my Tomahawk references. From all I can see from the documentation, the “target” attribute has no relevance to the <h:outputStylesheet> tag, nor does changing/including this attribute have any effect. I've also tried placing the tag in the <h:body> and <h:head> tags just to see if I could get any behavior changes. The <link> is always rendered in the head, which it should...

Anyone have any ideas?

Tomcat 6.0.14
JSF Mojarra 2.0

As always thanks in advance for your time!!!

The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
Rocket Oven Kickstarter - from the trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!