2 Replies Latest reply on Jun 2, 2013 11:29 PM by freakyprogrammer

    How Can I automatically republish the xhtml changes without redeploying to server?

    freakyprogrammer

      I am deploying my application which JSF2.1+CDI+Weld+EJB3.1 to Jboss AS 7.1.1 final using maven plug in by specifying maven goal(jboss-as:undeploy clean install jboss-as:deploy) in maven build. My project is a maven multi module project which contains EAR as parent module, jar which contains EJB stuff and WAR which contains all the JSF and views related stuff as child modules. Once I deploy and start the server, If I make any changes to .xhtml files in my WEB project which generates WAR those changes are not reflecting in the browser when I refresh the page. I tried by adding

       

      <context-param>

          <param-name>facelets.REFRESH_PERIOD</param-name>

          <param-value>1</param-value>

        </context-param>

       

      <context-param>

          <param-name>facelets.PROJECT_STAGE</param-name>

          <param-value>Developement</param-value>

        </context-param>

       

      to my Web.xml . But stil no use. It worked for in Tomcat with the same configuration but not in Jboss. Do I need to do any special configuration in Jboss to make this work? Help me.