Thanks for your help Nico, i'll extend the renderer for my purpose.

For the render-type try the full class name of the renderer you're extending, i.e. org.apache.myfaces.renderkit.html.HtmlRadioRendererBase

On 3/22/06, Krause, Nico <[EMAIL PROTECTED]> wrote:
Hello Emmanuell,
 
I did the following for my problem - so i assume you can do the same.
1. I made a new class (HtmlRadioRendererExtendedBase) from HtmlRadioRendererBase  (see sources attached)
2. copied the sources of most of the methods and did some changes within them.
3. I made a new entry in faces-config.xml but here a small problem resists: I dunno what's the correct rendererType for my SelectOneRadio
When writing in "javax.faces.Menu",  my dropdown field (also in the form) turns into a SelectOneRadio element and works great with switching the status by just clicking the label.
But the meant SelectOneRadio does nothing. (and the Dropdown should stay a Dropdown;)
So does anybody know and please help me, which renderer-type SelectOneRadio is? I seem to be some kind of blind just right now. :-(
<render-kit>
<renderer>
<component-family>javax.faces.SelectOne</component-family >
<renderer-type>????</renderer-type >
<renderer-class>webfleet.regserv.jsfbean.renderer.HtmlRadioRendererExtendedBase</ renderer-class>
</renderer>
 
Nico
 

/render-kit>

Nico Krause| Software Development| TomTom WORK | [EMAIL PROTECTED] | +49 (0)1749891949 mobile | +49(0)34124495-0 office | +49(0)34124495-25 fax | www.tomtomwork.com
 


Von: Emmanuel Jay [mailto: [EMAIL PROTECTED]]
Gesendet: Dienstag, 21. März 2006 14:17
An: MyFaces Discussion
Betreff: Re: SelectItem style

hmmh ok, I guess the way is to create a custom renderer for it then.

For your problem you can use a valueChangeListener for server side or the tomahawk jsValueChangeListener.

Emmanuel

On 3/21/06, Krause, Nico <[EMAIL PROTECTED]> wrote:
have the same problem. I think we have to write our own selectItem which supports it.
i want to use it in a radio button and i have another requirement:
i like to click on the label of a select item so the radio button switches its status.
 
Nico
 
Nico Krause| Software Development| TomTom WORK | [EMAIL PROTECTED] | +49 (0)1749891949 mobile | +49(0)34124495-0 office | +49(0)34124495-25 fax | www.tomtomwork.com
 


Von: Emmanuel Jay [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 21. März 2006 11:25
An: MyFaces Discussion
Betreff: SelectItem style

Hi all,

Isn't there any way to set the style of a selectItem?

Thanks,
Emmanuel



Reply via email to