3 Replies Latest reply on Jun 6, 2009 8:54 AM by Tim

    getting value from combobox

    Hans Kristanto Newbie

      Hi,

      i'm using RichFaces 3.3.0 and it's difficult to get the value from combobox. I have try using valueChangeListener and a4j:support but it cannot provide the value.. i'm still newbie in RF. would you please help me? it really make me sick for days...

        • 1. Re: getting value from combobox
          Nick Belaevski Master

          Hi,

          <rich:comboBox value="#{...}"> should be enough. Does this work well with a4j:commandLink?

          • 2. Re: getting value from combobox
            Hans Kristanto Newbie

            i haven't try yet with a4j:commandLink but i think it's quite similar with a4j:support, doesn't it? i'm able to fetch all data from database using :

            <rich:comboBox id="combo1">
             <f:selectItems value="#{someClass.list}"/>
            </rich:comboBox>


            But once i select an item, i cannot get what value is the selected item.. any clue? because it's quite different with native HTML combo box...

            • 3. Re: getting value from combobox
              Tim Newbie

               

              "sparklink" wrote:
              i haven't try yet with a4j:commandLink but i think it's quite similar with a4j:support, doesn't it? i'm able to fetch all data from database using :

              <rich:comboBox id="combo1">
               <f:selectItems value="#{someClass.list}"/>
              </rich:comboBox>


              But once i select an item, i cannot get what value is the selected item.. any clue? because it's quite different with native HTML combo box...

              <rich:comboBox id="combo1" value="#{someClass.string}">
               <f:selectItems value="#{someClass.list}"/>
              </rich:comboBox>

              as nbelaevski already said.

              tim