9 Replies Latest reply on Jan 19, 2012 6:32 PM by marciowerner

    rich:select styling

    cassie

      I apologize if this is a really newbie question but I can't seem to find the solution.

       

      I'm using Richfaces 4.

       

      I'd like the adjust the width of a specific rich:select component. How do I apply a style class to it specifically? I know for other components I can use styleClass but it doesn't seem to be available for rich:select.

       

      Any suggestions/solutions?

       

      Thanks!

        • 1. Re: rich:select styling
          zeppelinux

          +1

           

          can't find the 'label' attribute as well...

           

          are 'styleClass' and  'label' replaced by something else or just not implemented yet?

          • 2. Re: rich:select styling
            ryneezy

            I'm not using RichFaces 4 and I couldn't find the rich:select taglib documentation, but are their attributes similar to the inputClass or inputStyle for rich:comboBox?

            • 3. Re: rich:select styling
              zeppelinux

              no (at least in M4 distro), there is no such attributes and nothing similar...

              • 4. Re: rich:select styling
                nbelaevski

                Hi,

                 

                There is 'defaultLabel' attribute. What's the problem with 'styleClass' - missing in taglib or not working at all?

                • 5. Re: rich:select styling
                  cassie

                  Hello,

                   

                  For styleClass - it's not in the taglib and when I try it anyway, it doesn't work.

                  • 6. Re: rich:select styling
                    zeppelinux

                    Hi Nick,

                     

                    I'm trying to specify label for error message (not the string used by default for null input) and it is not there, the same for rich:calendar - i'm getting message like this: "custInfoForm:j_idt24:birthDate: '2005/12sgf/01' could not be understood as a date. Example: 2011/1/05" and want to get rid of "custInfoForm:j_idt24:birthDate".

                     

                    I checked out the sources of M5 and there is no styleClass for rich:select also.

                     

                    Not sure, may be it's way too early to report, but the bean validation didn't worked for me as well using M5.

                    • 7. Re: rich:select styling
                      monana

                      Hi,

                       

                      I am also facing the same issue.

                      Want to reduce the width of rich:select, but no attribute for this is available.

                      Any suggestions ?

                      • 8. Re: rich:select styling
                        buzzybuzz

                        Is there still no way to style rich:select width? There is a way to control the list and items but no to control the component width itself.

                        • 9. Re: rich:select styling
                          marciowerner

                          Try overriding the style class "input.rf-sel-inp". Like this:

                           

                          <style type="text/css">        

                                input.rf-sel-inp {

                                     width: 70px;

                                }

                          </style>