9 Replies Latest reply on Jan 20, 2011 1:51 PM by Ilya Sorokoumov

    comboBox is not fetching data from my table

    Olalekan Ogunleye Newbie

      Hi all,

       

      I have a rich combobox. like this

       

      <rich:comboBox value="#{user.subscriberName}" defaultLabel="Select Subscriber" style=" width : 129px;">

       

       

                        </rich:comboBox>

       

      which is according to this link http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_comboBox.html.

       

      I want the combobox to fetch the data from my enityTable but the comboBox display nothing. When I tried to use it like this:

       

      <rich:comboBox value="#{subscriber.subscriberName}" defaultLabel="Select Subscriber" style=" width : 129px;">

                             <f:selectItems value="#{subscriber.subscriberName}"/>

       

                        </rich:comboBox>

       

      I get the following error:

       

      Value of tag <selectItems> attribute is incorrect.

       

      Can someone tell me how to do this if I am not doing it correctly?

       

      Thank you