myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Pieper <>
Subject RE: [TRINIDAD] Family and component type for SelectRangeChoiceRenderer
Date Thu, 08 Apr 2010 08:09:57 GMT

Hi Keith,

I hope I got your question right. This is the render-kit entry from our


where ExtendedCoreRenderKit extends

Please note that I didn't have to change the faces-config.xml to solve this
The render-kit entry has already been in and no new entries whatsoever had 
to be added. 

Hope this helps, Carsten

Keith Carlton wrote:
> Keith wrote: 
> Carsten,
> I am working on a similar problem, can you please post your xml addition
> to the faces-config.xml
> that get the renderer to see you renderKit?
> Thanks,
> Keith
> Carsten Pieper wrote:
>> If anyone is interested, here's the solution to the problem.
>> I did exactly what Harald advised (writing our own TableRenderer whose
>> inner private class
>> NavBar extends MySelectRangeChoiceRenderer).
>> But as TableRenderer is an abstract class I also had to write our own
>> version of the
>> DesktopTableRenderer which now extends our TableRenderer. In our
>> CoreRenderKit's
>> constructor the only thing I had to add is this
>>     addRenderer("org.apache.myfaces.trinidad.Table",
>>         "org.apache.myfaces.trinidad.Table", new DesktopTableRenderer());
>> Note that there's no need to add a renderer for our
>> SelectRangeChoiceRenderer (i.e. 
>> MySelectRangeChoiceRenderer). The reason for this most probably is, that
>> it's not a 
>> real component but more of a sub-component of the table...
>> Cheers, Carsten

View this message in context:
Sent from the MyFaces - Users mailing list archive at

View raw message