2 Replies Latest reply on Nov 9, 2010 9:10 AM by Geraint Ascanis

    Static Resource Locations in RF 3.x

    Geraint Ascanis Newbie



      the last days I did some researching but didn't succeed in findeing a way to let RF deliver static resources - to say the least. That's why I ask my question here and hope you RF-gurus can help me out


      We have a project running

      • JBOSS EAP 5.1
      • JDK 1.6
      • jsf 1.2_13
      • richfaces 3.3.1.GA
      • seam 2.2.1.CR1
      • JBOSS portletbridge 2.0.0.FINAL


      and utilizing the GateIn SimplePortal (2.1.1). We deploy two conatiner EARs, one with SimplePortal components and one called "webapps" conatining some portlets AND a RF plug'n'skin skin. Everything works fine and looks good, thanks for that.

      But every resource (stylesheet, image, script) is requested via a faces request to the server using the whole portletbridge chain and the quetion is:


      is there any way to have the resource pathes, where appropriate, pointing to a static location by some web.xml magic or something?


      We already use the org.richfaces.LoadStyleStrategy=NONE and org.richfaces.LoadScriptStrategy=NONE setting in web.xml but these settings don't affect the resources of the plug'n'skin nor the images used in the skins css (see https://jira.jboss.org/browse/PBR-215). And even if it will do, how do we get some static CSS files out of the plug'n'skin maven module?


      I know, theres org.richfaces.staticResourceLocation and org.richfaces.cdk::maven-resources-plugin in RF4, but we can't switch before it's FINAL. Is there something for RF3.x that obtains the same result?


      Thanks a lot in advance