-
1. Re: Sitemesh not working on Wildfly
jaikiran Jun 5, 2014 1:47 AM (in response to naseer0021)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 Jun 5, 2014 4:12 AM (in response to jaikiran)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.
-
decorator-main.jsp.zip 1.2 KB
-
-
3. Re: Sitemesh not working on Wildfly
samalaraj72 Jun 3, 2015 2:27 AM (in response to naseer0021)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.