It is not that easy to post: it is based on a two-level template and two custom 
tags in a <ui:repeat>/<c:forEach>...

What are you looking for? I'll post the needed fragment.

This is the base page, however:


  | <?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | <ui:composition xmlns="http://www.w3.org/1999/xhtml";
  |  xmlns:ui="http://java.sun.com/jsf/facelets";
  |  xmlns:c="http://java.sun.com/jstl/core";
  |  xmlns:fmt="http://java.sun.com/jstl/fmt";
  |  xmlns:h="http://java.sun.com/jsf/html";
  |  xmlns:e="http://www.xxx.it/taglib/xxx";
  |  xmlns:f="http://java.sun.com/jsf/core";
  |  xmlns:fn="http://java.sun.com/jsp/jstl/functions";
  |  template="include/default.xhtml"
  | >
  |  <ui:define name="title"><h:outputText 
value="#{e:localize(currentCategory).text}"/></ui:define>
  | 
  |  <ui:define name="subtitle">
  |   <h:outputLink value="index.jsf">Home</h:outputLink>
  |   <c:forEach var="c" items="#{currentCategoryPath}">
  |    <span class="px16"><h:outputText value=">"/></span>
  |    <c:choose>
  |     <c:when test="#{c == currentCategory}">
  |      <h:outputText value="#{e:localize(c).text}" transient="true"/>
  |     </c:when>
  |     <c:otherwise>
  |      <h:outputLink value="catalog.jsf">
  |       <f:param name="c" value="#{c.id}"/>
  |       <h:outputText value="#{e:localize(c).text}" transient="true"/>
  |      </h:outputLink>
  |     </c:otherwise>
  |    </c:choose>
  |   </c:forEach>
  |  </ui:define>
  | 
  |  <ui:define name="body">
  |   <c:if test="#{! empty currentCategory.childrenCats}">
  |    <div style="height: 8px"> </div>
  |    <ui:repeat var="category" 
value="#{e:orderASC(currentCategory.childrenCats)}">
  |     <ui:include src="/WEB-INF/facelets/includes/categoryAbstract.xhtml"/>
  |     <div style="height: 8px"> </div>
  |    </ui:repeat>
  |    <table class="sotto"><tr><td class="spc"></td></tr></table>
  |   </c:if>
  |   <c:if test="#{! empty currentCategoryProducts}">
  |    <div style="height: 8px"> </div>
  |    <c:forEach var="ph" items="#{currentCategoryProducts}">
  |     <ui:include src="/WEB-INF/facelets/includes/productAbstract.xhtml"/>
  |     <div style="height: 8px"> </div>
  |    </c:forEach>
  |    <table class="sotto"><tr><td class="spc"></td></tr></table>
  |   </c:if>
  |  </ui:define>
  | </ui:composition>
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936003#3936003

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936003


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to