3 Replies Latest reply on Jan 28, 2011 1:03 PM by Ilya Sorokoumov

    "UIPickList  is not of type Array or List" ?

    fred poussin Newbie

      Hi everybody

       

      I'm starting in richfaces

      I have try the pickList example recently

      and obtain this error :

       

      "value of UIPickList component is not of type Array or List"

       

      What represent UIPickList

      here's my code

       

       

      <h:panelGrid columns="2" columnClasses="top, top">

                                      <rich:pickList id="pick1" value="#{mListeSite}">

                                          <f:selectItem itemValue="site1" itemLabel="site1" />

                                          <f:selectItem itemValue="site2" itemLabel="site2" />

                                          <f:selectItem itemValue="site3" itemLabel="site3" />   

                                      <f:selectItems value="#{listeValeurs.listeSiteOptions}" />

                                      <a:support event="onlistchanged" reRender="result" /> 

                                      </rich:pickList>

       

                                      <rich:pickList id="pick2"

                                           copyAllControlLabel = "#{publierBean.sauvegardePublier()}"

                                          copyControlLabel="#{publierBean.sauvegardeTousPublier()}"

                                          removeControlLabel="#{publierBean.suppressionPublier()}"

                                           removeAllControlLabel ="#{publierBean.suppressionTousPublier()}"

                                          value="#{mListePublier}">

                                          <f:selectItem itemValue="site1" itemLabel="site1" />

                                          <f:selectItem itemValue="site2" itemLabel="site2" />

                                          <f:selectItem itemValue="site3" itemLabel="site3" />

                                          <f:selectItems value="#{listeValeurs.listePublierOptions}" />

                                      </rich:pickList>

       

                                      <rich:panel id="result" bodyClass="pbody">

                                          <f:facet name="header">

       

                                              <h:outputText value="#{mListePublier.size()} Options Choosen"></h:outputText>

                                          </f:facet>

                                          <rich:dataList id="dataList1" value="#{listeValeurs.listePublierOptions}"

                                          var="pickList" rendered="#{mListePublier.size()>0}">

                                              <h:outputText value="#{pickList}" />

                                          </rich:dataList>

                                      </rich:panel>

                                  </h:panelGrid>

       

       

      thanks