This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JSF 2.0 <h:outputStylesheet>  RSS feed

 
Greenhorn
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?

Configuration:
Tomcat 6.0.14
JSF Mojarra 2.0

As always thanks in advance for your time!!!

-Mick
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!