• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Tagx file

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

expected output
red green yellow


<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:when test="${empty id}">
<c:set var="tabName" value="${id}" scope="request" /></c:when>
<c:set var="tabName" value="${id},${id}" scope="request" /> </c:otherwise>


<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"/>
Posts: 67750
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.
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic