5 Replies Latest reply on Mar 21, 2011 7:07 AM by javaxchange

    Issue with rich:comboBox

    javaxchange

      Hi,

       

      I am facing some issues when using rich:comboBox

       

      1. When assigning a List<SelectItem> to the suggestion like this,

       

           <rich:comboBox >

              <f:selectItems value="#{myBean.flightList}" />

          </rich:comboBox>

       

           it gives an error saying, " Value of tab <selectItems> attribute is incorrect Exception". I have tried both ways to create the SelectItem object, ie with a single arguement label and two arguements label and value (eg, flightList.add(new SelectItem(label)), flightList.add(new SelectItem(label, value))).

       

      2. When assigned the suggestionValues as the list of Strings (eg, flightNames.add("Air India")), then no value is getting populated in the combobox.

       

      <rich:comboBox suggestionValues="#{myBean.flightNames}" defaultLabel="Select Flight" />


       

      3. Is it possible to assign an image before the label in rich:comboBox as in rich:suggestionBox? please see the below screenshot

       

      suggestionBox.bmp

       

      4. The drop down button icon is not getting displayed in IE8. Instead simply a rectangle box is appearing over there. But in mozilla, it is showing properly.

       

       

      Can any one give solutions to these issues? Any help would be greatly appreciated.

       

      Thanks & Regards,

      Sreejith.PS


        • 1. Issue with rich:comboBox
          javaxchange

          Hi there,

           

          Does anyone can help me on any of the above issues?

           

           

          Thanks,

          Sreejith.PS

          • 2. Issue with rich:comboBox
            ilya_shaikovsky

            1) if custom object used suggestionValues should be used instead of selectItem's and converter for that object should be added.

            2) just should works. need more info.

            3) No it's not possible in 3.3.x. Possible only with suggestionBox.

            4) it looks like you either using older version of RF (use 3.3.3.Final) or the style just get overriden by some application CSS. Check that with firebug.

            • 3. Issue with rich:comboBox
              javaxchange

              Thanks Ilya.

               

              Let me try these.

               

              Rgding 3, Is it possible to achieve the same using suggestionbox. I tried the same but what the issue is whenever some value is there in text box, say "EK", only those values starting with "EK" will be listed when clicking on the button at the rightside where I have written the method to suggest the values for the suggestionbox. But what I want is as in richbombobox, when clicking on the button, it should list all the values in the dropdown. Is it possible to achieve?

               

              Thanks & Regards,

              Sreejith.PS

              • 4. Issue with rich:comboBox
                ilya_shaikovsky

                suggestion method are completelly designed by you. so just change conditions there to return the values not according to strtWith but to any other rule you need.

                • 5. Issue with rich:comboBox
                  javaxchange

                  Thanks Ilya.

                   

                  Let me try.

                   

                   

                  Thanks & Regards,

                  Sreejith.PS