Hi, On Thu, Feb 14, 2008 at 7:14 AM, Leonardo Uribe <[EMAIL PROTECTED]> wrote: > Hi > > After several hour trying over and over again I can't find a way to add a > component to this renderkit. > All attempts to define this fails (if I try, this definition overrides the > previous and all trinidad components are not rendered). > > Checking trinidad code it use a very strange way to define this (using a > file different of faces-config.xml). > > any suggestions?
when you add a new component, you create metadata for the component (in the "...faces-plugin/components/..." folder). You also create a renderer, incase there is something to render for the component. The renderer itself is handwritten, but you also have to specify metadata for this renderer in "...faces-plugin/renderers/..." folder. For Trinidad's InputText the InputText.xml file looks like: ... <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:mfp="http://myfaces.apache.org/maven-faces-plugin"> <render-kit> <render-kit-id>org.apache.myfaces.trinidadinternal.core</render-kit-id> <renderer> <component-family>org.apache.myfaces.trinidad.Input</component-family> <renderer-type>org.apache.myfaces.trinidad.Text</renderer-type> <renderer-class>org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputTextRenderer</renderer-class> <renderer-extension> <mfp:component-type>org.apache.myfaces.trinidad.CoreInputText</mfp:component-type> </renderer-extension> </renderer> </render-kit> </faces-config> that's where you provide the hook for the RK. HTH, Matthias > > regards > > Leonardo Uribe > -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf mail: matzew-at-apache-dot-org
