This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF 2.0 <h:outputStylesheet> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF 2.0 <h:outputStylesheet>" Watch "JSF 2.0 <h:outputStylesheet>" New topic
Author

JSF 2.0 <h:outputStylesheet>

M Hunter
Greenhorn

Joined: Nov 24, 2010
Posts: 6
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?

Configuration:
Tomcat 6.0.14
JSF Mojarra 2.0

As always thanks in advance for your time!!!

-Mick
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JSF 2.0 <h:outputStylesheet>
 
Similar Threads
html page inside <f:view>
Clemen
tomahawk not working with SUN JSF RI
Ajax and the message tag
h:outputStylesheet link ordering