• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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: 67695
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic