10 Replies Latest reply on Dec 10, 2007 9:07 AM by Mikael Andersson

    Facelets XHTML refresh problem

    Mikael Andersson Master

      Hi all

      When editing your xhtml pages "live" does your JSF components get updated correctly in the browser?
      Mine doesn't, static text does but components don't get modified untill I restart ther server.

      If I add a new jsf component to the page after it has already been rendered I usually get duplicate id problems... so things are a bit troublesome for me :)

      I know that this question doesn't really belong in this forum but figured that many of you are probably using jboss with richfaces and facelets and might be able to help me.
      (have posted on the facelets users mailing list, but no replies so far :( )

      My setup:
      jboss 4.0.3-SP1
      facelets 1.1.14
      richfaces 3.1.2.GA
      myfaces 1.1.5
      jdk 1.5
      seam 1.2.1.GA

      I have the usual facelets context parameters in my web.xml

       <context-param>
       <param-name>facelets.DEVELOPMENT</param-name>
       <param-value>true</param-value>
       </context-param>
       <context-param>
       <param-name>facelets.REFRESH_PERIOD</param-name>
       <param-value>1</param-value>
       </context-param>
      


      Also tried adding the following meta tags to my pages:
      <meta http-equiv="cache-control" content="no-cache"/>
      <meta http-equiv="pragma" content="no-cache" />
      <meta http-equiv="Expires" content="-1" />
      


      Thanks,
      Mike