0 Replies Latest reply on Mar 8, 2012 7:47 AM by sparrowhawk

    Order of Ricfaces Resource dependencies on Postback

    sparrowhawk

      I'm experiencing an issue with the order that Richfaces resource dependencies are included in the <head /> of the output HTML pages. I'm including some standard js dependencies used by my application:

       



      <h:outputScript library="js" name="json2.js" target="head" />


      <h:outputScript library="js" name="jquery.tools.min.js" target="head" />


      <h:outputScript library="js" name="jquery.hoverIntent.min.js" target="head" />

       

      On a normal page load my resource dependencies render before Richfaces resources which works perfectly in the context of my app. The problem is that on postback the order is inverted and the Richfaces resources appear first. This causes errors as I'm suppressing jquery from Richfaces and my version doesn't get included until after. I can work around this by suppressing all the Richfaces resources by name/library and including them manually but I'd like to understand why it's occuring and see if there is a more elegant solution.

       

      Thanks very much!