Wendy Chou wrote:
Hi,

I would like to change how the <t:radio> is rendered. This tomahawk tag is handled by org.apache.myfaces.custom.radio.HtmlRadioTag, however when I looked in that class, the getRendererType() method returns null. How should I overwrite the renderer for this tag?

When the tag class returns null for getRendererType, that just means that the type string is taken from the component class instead.

In class HtmlRadio, you'll see:
  private static final String DEFAULT_RENDERER_TYPE =
    "org.apache.myfaces.Radio";

  public HtmlRadio()
  {
      setRendererType(DEFAULT_RENDERER_TYPE);
  }


So you should use "org.apache.myfaces.Radio" in your faces config file when specifying your own renderer for this component.

regards,

Simon

Reply via email to