3 Replies Latest reply on Jul 27, 2011 12:30 PM by Nick Belaevski

    RichFaces conflict with Hibernate Open Session in View

    Rand Asin Novice

      I am using Hibernate: Open Session in View design pattern (see http://community.jboss.org/wiki/OpenSessioninView?TSSESSIONjspgeekcom=3c15c1ca21844c0e33f4dbe2659760b9)

       

      I put Hibernate filter before RichFaces filter so Hibernate session is opened before anything else.

       

      I noticed my Hibernate filter ran 17 times per page request.  Examing with the requests with FireBug, I noticed all RichFaces scripts ended in .faces (i.e. menu.js.faces, skinning.js.faces, etc).  Is this normal?  Since my Hibernate filter is mapped to .faces, it will run for every RichFaces script.  Is there a workaround?  Any thoughts would be greatly appreciated.