• Post Reply Bookmark Topic Watch Topic
  • New Topic

How use Tiles in JSF?  RSS feed

sundar ganapathy
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to put Tiles layout in my existing JSF project.
Steps i followed are listed below:

1. updated web.xml as follows
<!-- Added to inform JSF about TILES configuration -->

2. updated faces-config.xml as follows
<!-- Added for informing JSF about TILES configuration -->

3. tiles-defs.xml as follows

<definition name="layout.tiles" path="/jsp/template/layout.jsp">
<put name="header" value="/jsp/template/header.jsp" />
<put name="topmenu" value="/jsp/template/topmenu.jsp" />
<put name="leftmenu" value="/jsp/template/leftmenu.jsp" />
<put name="content" value="/jsp/template/empty.jsp" />
<put name="messages" value="/jsp/template/messages.jsp" />
<put name="footer" value="/jsp/template/footer.jsp" />
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!