You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Emmanuel Jay <em...@gmail.com> on 2005/07/25 19:18:09 UTC

COMPONENT_TYPE seems to be wrong

Hi,

I have noticed that the COMPONENT_TYPE in all
javax.faces.component.html.*components are of the form
javax.faces.<class_name> rather than javax.faces.component.html.<class_name>

Is that normal?

I would expect them to be of the later form as I want to use them to add a 
(KEY, UI component) mapping to the application. At the momemt I have to 
hardcode the correct class name into my app...

Emmanuel

Re: COMPONENT_TYPE seems to be wrong

Posted by Emmanuel Jay <em...@gmail.com>.
I thought I could use this key to register my component mapping in the app, 
but I can very much do without. I thought that out of consistency it might 
be better to have the key match the class name, but it is not an issue.

thanks,
Emmnuel

On 7/25/05, Sean Schofield <se...@gmail.com> wrote:
> 
> I don't recall that the spec says anything on what the COMPONENT_TYPE
> value should be for the implementation classes.
> 
> Why does it matter to you? This is just a key by which the component
> class and renderer are looked up. It does not have to correspond to
> the actual structure of the java package containing the component.
> 
> sean
> 
> On 7/25/05, Emmanuel Jay <em...@gmail.com> wrote:
> > Hi,
> >
> > I have noticed that the COMPONENT_TYPE in all 
> javax.faces.component.html.*
> > components are of the form javax.faces.<class_name> rather than
> > javax.faces.component.html.<class_name>
> >
> > Is that normal?
> >
> > I would expect them to be of the later form as I want to use them to add 
> a
> > (KEY, UI component) mapping to the application. At the momemt I have to
> > hardcode the correct class name into my app...
> >
> > Emmanuel
> >
>

Re: COMPONENT_TYPE seems to be wrong

Posted by Sean Schofield <se...@gmail.com>.
I don't recall that the spec says anything on what the COMPONENT_TYPE
value should be for the implementation classes.

Why does it matter to you?  This is just a key by which the component
class and renderer are looked up.  It does not have to correspond to
the actual structure of the java package containing the component.

sean

On 7/25/05, Emmanuel Jay <em...@gmail.com> wrote:
> Hi,
>  
>  I have noticed that the COMPONENT_TYPE in all javax.faces.component.html.*
> components are of the form javax.faces.<class_name> rather than
> javax.faces.component.html.<class_name>
>  
>  Is that normal?
>  
>  I would expect them to be of the later form as I want to use them to add a
> (KEY, UI component) mapping to the application. At the momemt I have to
> hardcode the correct class name into my app...
>  
>  Emmanuel
>