It would really be nice :-) to add object orientation to the tld as the
amount of time spent debugging missing / incorrect tld's is larger than
it should be.  Also, the ability to specify default values would be nice
as well.

My idea would be something like

        <tag>
                <name>tagextendingtag</name>
        
<tagclass>org.apache.struts.taglib.TagExtendingTag</tagclass>
                <bodycontent>JSP</bodycontent>
                <attribute>
                        <name>property</name>
                        <required>false</required>
                        <rtexprvalue>true</rtexprvalue>
                        <default>mydefault</default>
                </attribute>
        
<includeattibutes>[tldfilename]originaltagname</includeattibutes>
        </tag>

Edgar


-----Original Message-----
From: Erik Hatcher [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 15, 2002 7:48 AM
To: Struts Developers List
Subject: Re: LabelTag




Ted Husted wrote:
> Maybe we could use this as the basis for a "how to extend taglibs" bit

> for the user guide.

Yeah, except that my extension of MessageTag is only temporary, unless 
we see a need to support all the other <bean:message> attributes. 
Currently we only are using 'key', and thats the only one I exposed in 
the TLD.

But certainly it could be made to expose all attributes and would use 
them appropriately currently.   What a pain it is to cut-and-paste the 
TLD stuff though (actually thats why I only exposed the 'key' property -

I use XDoclet to build our TLD from @tags).

        Erik



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to