3 Replies Latest reply on Jun 3, 2015 2:27 AM by samalaraj72

    Sitemesh not working on Wildfly

    naseer0021

      I am using sitemesh 2.3 in my web app for UI Templating. My web app was working fine on JBoss eap 6.2 and old versions of JBoss AS and web pages were decorated by sitemesh. I have to migrate my application to Wildfly 8.1 final. But jsp pages are not being decorated on Wildfly i.e. no header/footer/menu appears on pages that I have configured in Sitemesh. Although sitemesh is working fine on JSF related pages within same web app.

        • 1. Re: Sitemesh not working on Wildfly
          jaikiran

          You'll have to add more relevant details for us to be able to help you. How are those header/footer/menu generated? What do some of the sample pages look like in terms of code?

          • 2. Re: Re: Sitemesh not working on Wildfly
            naseer0021

            In web.xml, I have mapped Sitemesh filter:

             

            <filter-mapping>

                <filter-name>sitemesh</filter-name>

                <url-pattern>/*</url-pattern>

                <dispatcher>REQUEST</dispatcher>

                <dispatcher>FORWARD</dispatcher>

            </filter-mapping>

             

            For decorating pages, we have to map different URL patterns to the decorator page therefore in decorators.xml file, I have mapped it like following:

             

                 <decorator name="decorator" page="decorator-main.jsp">

                    <pattern>/*.html</pattern>

                 </decorator>

             

            Each url that ends with .html actually maps to .jsp file which is configured in Spring MVC.

            PFA decorator-main.jsp which contains UI Templating logic. In short it uses html table layout to divide the page into four sections i.e. header/menu/footer and contents. Note that <decorator:body/> tag in decorator-main.jsp is simply replaced by actual jsp i.e. the contents portion of the page.

             

            Please let me know if u need to know any other details related to this issue.

            • 3. Re: Sitemesh not working on Wildfly
              samalaraj72

              Hi I too Having Same Issue, can any Give Us the Answer for this Question ?

               

              Here is My Question similar to This Question.

              http://stackoverflow.com/questions/30611997/sitemesh-not-working-after-java-and-jboss-migration

               

              Thanks in Advance.