• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Tagx file

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Im new to tagx n custom taglibs concepts I'm trying to created custom tagx components for tabbed panel. My tagx code look like below. When i run this code it always gives me last element in the loopprints it and it . How can i get all the 3 elements of tab declared in my jspx for my iteration in layout.tagx. please help.

current output
yellow

expected output
red green yellow

layout.tagx

<c:if test="${empty render or render}">
<c:set var="tabName" scope="request" />
<spring:eval var="colCounter" expression="1" />
<jsp:doBody />

<thead> </c:forTokens> </thead>
<c:forTokens items="${tabName}" delims="," var="tabid"> <c:out value="${tabid}" /> <spring:eval var="colCounter" expression="colCounter + 1" />


</c:if>



tab.tagx
<c:choose>
<c:when test="${empty id}">
<c:set var="tabName" value="${id}" scope="request" /></c:when>
<c:otherwise>
<c:set var="tabName" value="${id},${id}" scope="request" /> </c:otherwise>
</c:choose>

tabs.jspx

<tab:layout id="color">
<tab:tab id="_red" messageCode="red" url="/tagcontrollers?red" />
<tab:tab id="_green" messageCode="green" url="/tagcontrollers?green"/>
<tab:tab id="_yellow" messageCode="yellow" url="/tagcontrollers?green"/>
</tab:layout>
 
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the spring forum as spring tags are in use.
 
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic