It's not a secret anymore!
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

JavaRanch » Java Forums » Java » JSF
Bookmark "JSF 2.0 <h:outputStylesheet>" Watch "JSF 2.0 <h:outputStylesheet>" New topic

JSF 2.0 <h:outputStylesheet>

M Hunter

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?

Tomcat 6.0.14
JSF Mojarra 2.0

As always thanks in advance for your time!!!

Have you checked out Aspose?
subject: JSF 2.0 <h:outputStylesheet>
It's not a secret anymore!