tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernhard Slominski <bernhard.slomin...@zooplus.com>
Subject AW: JSTL with Simple Tag API
Date Thu, 03 Feb 2005 16:32:53 GMT
Hi Kris,

thanks for your answer, I think that would be a possibility, but I solved it
now by using findAncestorWithClass instead of getParent, so it "skips" the
Classic Tag.

Cheers Bernhard

-----Urspr√ľngliche Nachricht-----
Von: Kris Schneider [mailto:kris@dotech.com]
Gesendet: Donnerstag, 3. Februar 2005 17:23
An: Tag Libraries Users List
Betreff: Re: JSTL with Simple Tag API


Would it be possible for you to use javax.servlet.jsp.tagext.TagAdapter to
expose your SimpleTag as a Tag?

Quoting Bernhard Slominski <bernhard.slominski@zooplus.com>:

> Hi,
> 
> I want to create a set of two taglibs for a Navigation Box with the Simple
> Tag API and for my magivation items I need to know  the parent item.
> The problem is if I have a JSTL tag inbetween my Simple tags then I cannot
> get any more to MY next parent.
> 
> Example: 
> <zplib:navigationBox title="Title">
>         <zplib:navigationItem name="Item1"/>
>         <c:if test="true">
>             <zplib:navigationItem name="Item2"/>
>         </c:if>
>         <zplib:navigationItem name="Item3">
>             <zplib:navigationItem name="Item4"/>
>         </zplib:navigationItem>
> </zplib:navigationBox>
> 
> >From "Item 2" I cannot get to the "navigationBox" Simple Tag, because a
> classic one (JSTL c:if) is inbetween.
> So as soon as you're using JSTL you're lost, and that's really bad, so I
> have to go back to the Classic Tag API, which I don't want to do.
> 
> So my question: Are there plans to implement the JSTL 1.1. with the Simple
> Tag API? Does it already exist?
> 
> Thanks
> 
> Bernhard
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 


-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message