1 Reply Latest reply on Apr 12, 2007 5:48 AM by Amandine H

    problem of value binding

    Amandine H Newbie

      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 ?