I will see if I can get it setup sometime, but getting debugging in an
IDE usually is a waste of time IMO and I don't have the source as
MyFaces doesn't ship it anymore. I was hoping someone has seen this as
well, as I haven't done anything odd at all, just a standard
selectOneMenu with in-line select item tags/components.

-Andrew

On 5/17/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
Set a breakpoint on SelectItem's constructor and see what's happening?

On 5/17/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> No one has any idea on this one?
>
> On 5/14/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
> > Versions:
> > Core: 1.1.4 snapshot
> > Tomahawk: 1.1.2
> > Facelets: 1.0.14
> >
> > XHTML:
> > <t:selectOneMenu
> >         value="#{emailBean.questionType}" required="true"
> >         id="questionType">
> >         <f:selectItem 
itemLabel="#{msg.conference_contactus_subject_question}"
> >                 itemValue="#{msg.conference_contactus_subject_question}" />
> >         <f:selectItem 
itemLabel="#{msg.conference_contactus_subject_website}"
> >                 itemValue="#{msg.conference_contactus_subject_website}" />
> >         <f:selectItem 
itemLabel="#{msg.conference_contactus_subject_payment}"
> >                 itemValue="#{msg.conference_contactus_subject_payment}" />
> >         <f:selectItem itemLabel="#{msg.conference_contactus_subject_otherq}"
> >                 itemValue="OTHER" />
> > </t:selectOneMenu>
> >
> >
> > Error stack:
> > java.lang.NullPointerException: value
> >         at javax.faces.model.SelectItem.<init>(SelectItem.java:71)
> >         at 
javax.faces.component._SelectItemsIterator.hasNext(_SelectItemsIterator.java:72)
> >         at 
javax.faces.component._SelectItemsUtil.matchValue(_SelectItemsUtil.java:46)
> >         at 
javax.faces.component.UISelectOne.validateValue(UISelectOne.java:62)
> >         at javax.faces.component.UIInput.validate(UIInput.java:353)
> >         at javax.faces.component.UIInput.processValidators(UIInput.java:183)
> >         at javax.faces.component.UIForm.processValidators(UIForm.java:70)
> >         at 
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
> >         at 
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146)
> >         at 
org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262)
> >         at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
> >         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
> >
> >
> > I have put a itemLabel and ItemValue on each one, I cannot see how the
> > item value is null in the UISelectOne's select items iterator.
> >
> > Any ideas?
> >
>

Reply via email to