AnsweredAssumed Answered

Error in CustomWizard example.

Question asked by libman on Oct 24, 2008
Latest reply on Oct 27, 2008 by libman
Hi,

I built the codes succesfully and joined it in the .war file. I also updated the web-client-config-wizards.xml, changing the
managed-bean="CreateContentWizard"
to
managed-bean="CustomCreateContentWizard"
. When I go to the third (new page), I get the following error:
javax.faces.FacesException: Value binding '#{WizardManager.bean.aspects}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/wizard/container.jsp][Class: javax.faces.component.html.HtmlForm,Id: wizard][Class: javax.faces.component.UINamingContainer,Id: wizard-body][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: _id20][Class: javax.faces.component.UISelectItems,Id: _id21]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
caused by:
org.apache.jasper.JasperException: Value binding '#{WizardManager.bean.aspects}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/wizard/container.jsp][Class: javax.faces.component.html.HtmlForm,Id: wizard][Class: javax.faces.component.UINamingContainer,Id: wizard-body][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: _id20][Class: javax.faces.component.UISelectItems,Id: _id21]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
caused by:
org.apache.jasper.JasperException: Value binding '#{WizardManager.bean.aspects}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/wizard/container.jsp][Class: javax.faces.component.html.HtmlForm,Id: wizard][Class: javax.faces.component.UINamingContainer,Id: wizard-body][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: _id20][Class: javax.faces.component.UISelectItems,Id: _id21]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
caused by:
java.lang.IllegalArgumentException: Value binding '#{WizardManager.bean.aspects}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/wizard/container.jsp][Class: javax.faces.component.html.HtmlForm,Id: wizard][Class: javax.faces.component.UINamingContainer,Id: wizard-body][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: _id20][Class: javax.faces.component.UISelectItems,Id: _id21]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
The example has a getAspects() function. In System Information/Http Application State, I see the custom-wizard.jar. The .jsp file is also added correctly.

What is the cause??

Thanks

Outcomes