[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - problem of value binding
mousstik
do-not-reply at jboss.com
Thu Apr 12 05:24:38 EDT 2007
Hi,
I don't understand. I have this message :
| Value binding '#{ben.allItems}'of UISelectItems with component-path {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /page.xhtml][Class: javax.faces.component.html.HtmlForm,Id: codeProduitForm][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: ids][Class: javax.faces.component.UISelectItems,Id: _id33]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
here is my page.xhtml
| ...
| <h:selectOneMenu id="selectProduit" value="#{bean.code}" >
| <f:selectItems value="#{bean.allItems}"/>
| </h:selectOneMenu>
| ...
and my bean
| private String code;
| private SelectItem item1 = new SelectItem("code1", "produit1");
| private SelectItem item2 = new SelectItem("code2", "produit2");
| private SelectItem allProduits[] = new SelectItem[]{item1,item2};
| ... getter/setter...
|
Does anyone can help me please ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036644#4036644
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036644
More information about the jboss-user
mailing list