My understanding is that component-family is just a generic
classification of the component.

For example, h:message, h:messages, t:message, and t:messages would
all be of the same family.   I'm not sure what it's used for, but you
should be able to use whatever's already defined for h:messages.

However, each component has a unique component-type value.

On 11/11/05, Warren Bell <[EMAIL PROTECTED]> wrote:
> I also see COMPONENT_TYPE = "org.apache.myfaces.HtmlMessages"; in the
> HtmlMessages class. component-type and component-family are they different?
>
> > I have a new renderer class I extended from
> > org.apache.myfaces.renderkit.html.HtmlMessagesRendererBase named
> > com.speedy.renderers.HtmlTextMessagesRenderer . I want the component
> > org.apache.myfaces.component.html.ext.HtmlMessages to use it. The source
> > code for HtmlMessages has the static variable:
> >
> > DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Messages";
> >
> > I am assuming this is the default renderer that the component
> > uses and would
> > be the renderer-type in my configuration and the renderer class
> > would be my
> > extended class. I don't know what the component family is though. Is the
> > component family a super class of the HtmlMessages component or something
> > entirely different?
> >
> > <render-kit>
> >   <render-kit-id>some-id</render-kit-id>
> >   <renderer>
> >     <component-family>?????????</component-family>
> >     <renderer-type>org.apache.myfaces.Messages</renderer-type>
> >
> > <renderer-class>com.speedy.renderers.HtmlTextMessagesRenderer</renderer-
> > class>
> >   </renderer>
> > </render-kit>
> >
> > The components hierarchy of HtmlMessages is:
> >
> > ...
> > javax.faces.component.UIComponent
> >   javax.faces.component.UIComponentBase
> >     javax.faces.component.UIMessages
> >       javax.faces.component.html.HtmlMessages
> >         org.apache.myfaces.component.html.ext.HtmlMessages
> >
> > Thanks,
> >
> > Warren Bell
> >
> > __________ NOD32 1.1283 (20051110) Information __________
> >
> > This message was checked by NOD32 antivirus system.
> > http://www.eset.com
> >
> >
>
>

Reply via email to