It's the tld that makes the association to HtmlTree (the UIComponent). I had to subclass Treetag to get it to use my subclass of HtmlTree. I had to create a tld and copy the tag for tree2 into it. I also had to add the component/renderer tag to my faces-config.xml. For renderer class I used the myfaces version. Perhaps I could of skipped subclassing TreeTag and just had my tld point to TreeTag? In any case I need the tld to get it to call my subclass of HtmlTree.
-- Rob @objectsource.org ---------- Original Message ----------- From: Sean Schofield <[EMAIL PROTECTED]> To: MyFaces Discussion <[email protected]> Sent: Wed, 30 Mar 2005 17:13:27 -0500 Subject: Re: extending tree2 > I'm not sure that you need to subclass TreeTag. Are you referring to > the getComponentType and getRendererType methods? Those just return > the value of > org.apache.myfaces.HtmlTree2. You should be able to map a different > component/renderer combination through your own faces-config.xml. > > sean > > On Wed, 30 Mar 2005 15:47:54 -0500, Rob Decker <[EMAIL PROTECTED]> wrote: > > I'm trying to extend the HtmlTree class of Tree2. It seems to me that at a > > minimum I > > also have to to extend TreeTag so my subclass is associated with the tag in > > the jsp > > page. Since I'm not changing the tag definition at all, is there a way to > > specify "extends from" in a tld? I notice that myfaces uses shared > > attributes. Is > > there some similar mechanism available for extending tags? > > > > -- > > Rob > > > > @objectsource.org > > > > ------- End of Original Message -------

