2 Replies Latest reply on Feb 8, 2008 9:57 AM by Martina Crandall

    JSP Tag files

    Martina Crandall Newbie

      Can you use JSP tag files with a facelet? We have some tag files that we were using with our JSP files.

      <%@ tag trimDirectiveWhitespaces="true"%>
      <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
      <%@ attribute name="var" required="true" rtexprvalue="false" %>
      <%@ variable name-from-attribute="var" alias="tableVar" scope="AT_BEGIN" %>
      <%@ attribute name="items" required="true" type="java.util.Collection" %>
      <%@ attribute name="style" %>
      <c:if test="${empty style}">
       <c:set var="style" value="data"/>
      <table class="${style}">
       <c:set var="row" value="0" scope="request"/>
       <c:set var="headings">
       <c:if test="${headingCount > 0}">
       <c:forEach var="tableVar" items="${items}">
       <c:set var="row" value="${row + 1}" scope="request"/>
       <c:if test="${row > 0}">
       <c:set var="style" value="odd"/>
       <c:if test="${row % 2 == 0}">
       <c:set var="style" value="even"/>
       <tr class="${pageScope.style}">