On 8/17/06, Michael Heinen <[EMAIL PROTECTED]> wrote:
I got it. I created a custom tag that extends HtmlDataTableTag and just
overwrites getRendererType().

So I did not need a custom component for this.

But it is a little bit annoying to copy the large tag description into my
.tld and to maintain this with every new release.

Facelets :-)    Standard JSP components are not easy to maintain.
That's why facelets was invented -- it trivializes the creation of
components.

In facelets, you'd just do this -- no java code or other configuration
needed (other than maybe registering your renderer in faces-config --
not sure about that part).

   <tag>
       <tag-name>customDataTable</tag-name>
       <component>
           <component-type>org.apache.myfaces.HtmlDataTable</component-type>
           <renderer-type>com.xyz.MyCustomRenderer</renderer-type>
       </component>
   </tag>

Reply via email to