You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mike Duffy <md...@yahoo.com> on 2005/12/05 10:47:00 UTC
does not reference an Object of type SelectItem
I am trying to create a value binding for a <f:selectItems/> tag. The object reference is
definitely a collection of SelectItem objects (I've even tried it with an array).
However, I am getting an error that tells me the object reference does not contain SelectItem
objects. The error message state, "but of type : Ljavax.faces.model.SelectItem;".
What does the "Ljavax" reference mean?
Very frustrating. Please help.
Mike
javax.servlet.ServletException:
Value binding '#{issueCreate.testItems}'of UISelectItems with component-path
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /view/tracker/issueCreate.jsp]
[Class: javax.faces.component.html.HtmlForm,Id: issueCreateForm][Class:
org.apache.myfaces.custom.div.Div,Id: _id74]
[Class: org.apache.myfaces.custom.div.Div,Id: _id84][Class:
javax.faces.component.html.HtmlSelectOneMenu,Id: test1][Class:
javax.faces.component.UISelectItems,Id: _id85]}
does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : [Ljavax.faces.model.SelectItem;
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
Re: does not reference an Object of type SelectItem
Posted by Craig McClanahan <cr...@apache.org>.
On 12/5/05, Simon Kitching <sk...@obsidium.com> wrote:
>
>
> jsf-api.jar is *not* part of the j2ee.jar (at least not yet).
> Actually, it's unlikely to ever be bundled, as (at least in the myfaces
> libs) there is significant library-specific logic in the "api" classes.
> All the "api" indicates is that the APIs for those classes are tightly
> defined; this is not an "spi" (service provider interface).
FYI, JSF 1.2 will be a required part of the Java EE 5 platform. Compliant
app servers must provide not only the API classes, but also the
corresponding implementation, just as they are required to provide both API
and implementation for other APIs like servlet and JSP.
Regards,
>
> Simon
Craig
Mike Duffy wrote:
> > I thought that might be it and I could not find the jsf-api.jar in any
> class path.
> >
> > Is the jsf-api.jar part of the j2ee.jar?
> >
> > Thx.
> >
> > Mike
> >
> >
> > --- Martin Marinschek <ma...@gmail.com> wrote:
> >
> >> ... and this should be ok. You can return an array of SelectItem
> objects.
> >>
> >> Do you have any class loader issues here?
> >>
> >> Maybe your javax.faces.api classes are loaded from a class loader
> >> which is not accessible from your web-app? Or you have both the
> >> jsf-api.jar and the myfaces-api.jar in your classpath?
> >>
> >> regards,
> >>
> >> Martin
> >>
> >> On 12/5/05, Martin van den Bemt <mv...@ibl-software.nl> wrote:
> >>> Mike Duffy wrote:
> >>>> I am trying to create a value binding for a <f:selectItems/>
> tag. The object reference is
> >>>> definitely a collection of SelectItem objects (I've even tried it
> with an array).
> >>>>
> >>>> However, I am getting an error that tells me the object reference
> does not contain
> >> SelectItem
> >>>> objects. The error message state, "but of type :
> Ljavax.faces.model.SelectItem;".
> >>>>
> >>>> What does the "Ljavax" reference mean?
> >>>>
> >>> [Ljavax.faces.model.SelectItem; means an array of SelectItem objects..
> >>>
>
Re: does not reference an Object of type SelectItem
Posted by Simon Kitching <sk...@obsidium.com>.
Hi Mike,
If you're using JBoss 4.0.3 with tomcat, you'll find the sun
implementation is bundled under:
server/default/deploy/jbossweb-tomcat55.sar
These jars need to be removed if you're using MyFaces.
jsf-api.jar is *not* part of the j2ee.jar (at least not yet).
Actually, it's unlikely to ever be bundled, as (at least in the myfaces
libs) there is significant library-specific logic in the "api" classes.
All the "api" indicates is that the APIs for those classes are tightly
defined; this is not an "spi" (service provider interface).
Regards,
Simon
Mike Duffy wrote:
> I thought that might be it and I could not find the jsf-api.jar in any class path.
>
> Is the jsf-api.jar part of the j2ee.jar?
>
> Thx.
>
> Mike
>
>
> --- Martin Marinschek <ma...@gmail.com> wrote:
>
>> ... and this should be ok. You can return an array of SelectItem objects.
>>
>> Do you have any class loader issues here?
>>
>> Maybe your javax.faces.api classes are loaded from a class loader
>> which is not accessible from your web-app? Or you have both the
>> jsf-api.jar and the myfaces-api.jar in your classpath?
>>
>> regards,
>>
>> Martin
>>
>> On 12/5/05, Martin van den Bemt <mv...@ibl-software.nl> wrote:
>>> Mike Duffy wrote:
>>>> I am trying to create a value binding for a <f:selectItems/> tag. The object reference is
>>>> definitely a collection of SelectItem objects (I've even tried it with an array).
>>>>
>>>> However, I am getting an error that tells me the object reference does not contain
>> SelectItem
>>>> objects. The error message state, "but of type : Ljavax.faces.model.SelectItem;".
>>>>
>>>> What does the "Ljavax" reference mean?
>>>>
>>> [Ljavax.faces.model.SelectItem; means an array of SelectItem objects..
>>>
Re: does not reference an Object of type SelectItem
Posted by Mike Duffy <md...@yahoo.com>.
I thought that might be it and I could not find the jsf-api.jar in any class path.
Is the jsf-api.jar part of the j2ee.jar?
Thx.
Mike
--- Martin Marinschek <ma...@gmail.com> wrote:
> ... and this should be ok. You can return an array of SelectItem objects.
>
> Do you have any class loader issues here?
>
> Maybe your javax.faces.api classes are loaded from a class loader
> which is not accessible from your web-app? Or you have both the
> jsf-api.jar and the myfaces-api.jar in your classpath?
>
> regards,
>
> Martin
>
> On 12/5/05, Martin van den Bemt <mv...@ibl-software.nl> wrote:
> > Mike Duffy wrote:
> > > I am trying to create a value binding for a <f:selectItems/> tag. The object reference is
> > > definitely a collection of SelectItem objects (I've even tried it with an array).
> > >
> > > However, I am getting an error that tells me the object reference does not contain
> SelectItem
> > > objects. The error message state, "but of type : Ljavax.faces.model.SelectItem;".
> > >
> > > What does the "Ljavax" reference mean?
> > >
> >
> > [Ljavax.faces.model.SelectItem; means an array of SelectItem objects..
> >
> >
> > Mvgr,
> > Martin
> >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
Re: does not reference an Object of type SelectItem
Posted by Martin Marinschek <ma...@gmail.com>.
... and this should be ok. You can return an array of SelectItem objects.
Do you have any class loader issues here?
Maybe your javax.faces.api classes are loaded from a class loader
which is not accessible from your web-app? Or you have both the
jsf-api.jar and the myfaces-api.jar in your classpath?
regards,
Martin
On 12/5/05, Martin van den Bemt <mv...@ibl-software.nl> wrote:
> Mike Duffy wrote:
> > I am trying to create a value binding for a <f:selectItems/> tag. The object reference is
> > definitely a collection of SelectItem objects (I've even tried it with an array).
> >
> > However, I am getting an error that tells me the object reference does not contain SelectItem
> > objects. The error message state, "but of type : Ljavax.faces.model.SelectItem;".
> >
> > What does the "Ljavax" reference mean?
> >
>
> [Ljavax.faces.model.SelectItem; means an array of SelectItem objects..
>
>
> Mvgr,
> Martin
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: does not reference an Object of type SelectItem
Posted by Martin van den Bemt <mv...@ibl-software.nl>.
Mike Duffy wrote:
> I am trying to create a value binding for a <f:selectItems/> tag. The object reference is
> definitely a collection of SelectItem objects (I've even tried it with an array).
>
> However, I am getting an error that tells me the object reference does not contain SelectItem
> objects. The error message state, "but of type : Ljavax.faces.model.SelectItem;".
>
> What does the "Ljavax" reference mean?
>
[Ljavax.faces.model.SelectItem; means an array of SelectItem objects..
Mvgr,
Martin