6 Replies Latest reply on May 14, 2008 8:22 AM by lmk

    comboBox itemLabels all centered

    lmk

      Helloo,

      something changes on RF 3.2.1.CR4 for comboBox, Labels are centred on a combo box.
      on the richfaces it's works better, Im using tomahawk selectItems component.

      below the affected code:

      <rich:comboBox selectFirstOnUpdate="false"
      defaultLabel="Enter some value" value="#{form.company}">
      <f:selectItem itemLabel="Enter some value" itemValue="all" />
      <t:selectItems value="#{bean.companies}" var="list" itemLabel="#{list.companyName}" itemValue="#{list.companyName}" />
      </rich:comboBox>
      





        • 1. Re: comboBox itemLabels all centered
          ilya_shaikovsky

          Paste please screenshot of the problem.

          B.t.w. Did you tried to check in firebug the CSS applied to items?

          And also did you remember that comboBox only uses values of selectItems? ;) It isn't a select component but an input with client side suggestions.

          • 2. Re: comboBox itemLabels all centered
            lmk

             

            "ilya_shaikovsky" wrote:
            Paste please screenshot of the problem.

            B.t.w. Did you tried to check in firebug the CSS applied to items?



            style applied is
            rich-combobox-item rich-combobox-item-normal


            screenshot is available here http://picbite.com/img/13816qvjjfy.png ..
            hope its clear, I juste hide labels for confidentiality..
            "ilya_shaikovsky" wrote:

            And also did you remember that comboBox only uses values of selectItems? ;) It isn't a select component but an input with client side suggestions.


            yes, but, it's so useful to use directly select component ...






            • 3. Re: comboBox itemLabels all centered
              ilya_shaikovsky

              No, I mean not class names. Seems you've suing some classes in containers or global selectors that affects combo.

              • 4. Re: comboBox itemLabels all centered
                lmk

                 

                "ilya_shaikovsky" wrote:
                No, I mean not class names. Seems you've suing some classes in containers or global selectors that affects combo.


                no special style on container, I used combo box before the 3.2.1.CR4 version , it works fine..

                do you advice to use combobox without the select component ?

                thanks!

                • 5. Re: comboBox itemLabels all centered
                  ilya_shaikovsky

                  No I do not tell you about it. I just want you to remember that value of your select items will be used both as label and value. label attribute has no sence.

                  about CSS. We cant reproduce this. Do you have some align properties applied?

                  • 6. Re: comboBox itemLabels all centered
                    lmk

                     

                    "ilya_shaikovsky" wrote:
                    No I do not tell you about it. I just want you to remember that value of your select items will be used both as label and value. label attribute has no sence.


                    yes I use label as a value!

                    "ilya_shaikovsky" wrote:


                    about CSS. We cant reproduce this. Do you have some align properties applied?


                    I tried to use comboBox on a blank page without any other component, it works as well as the demo one..

                    I'll look what's wrong in my side..

                    thanks!