Custom renderer for radio buttons?

I want to change how radio buttons are rendered (so they aren't all rendered alone in their own table). What would be the best way to do this?

One way would be to create a custom component, tag handler, and renderer (and register them all in faces-config.xml).

But what about using the existing JSF components and just writing my own renderer. Could that work? Would just need to write a renderer and configure faces-config.xml to use the appropriate component-family (for the existing JSF radio button component) and renderer-type (for the existing component tag class for the radio button)?like this:

<render-kit>

<renderer>

<component-family>javax.faces.SelectOne</component-family>

<renderer-type>javax.faces.Radio</renderer-type>

<renderer-class>my.custom.renderer</renderer-class>

</renderer>

</render-kit>

Could this work?

Thanks.

[971 byte] By [just_wa] at [2007-10-2 7:40:44]
# 1
> Could this work?Yes. Why do you doubt it?
yuki.yoshidaa at 2007-7-16 21:24:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...