0 Replies Latest reply on Feb 21, 2011 4:50 PM by sanjaynkumar

    rich:combobox listClass not working for all attributes

    sanjaynkumar

      How to set listClass for Rich:Combo. I followed instruction as in the URL below but it only accepts bold and italic cannot change font-size and color. Please advice ?

       

       

      http://docs.jboss.org/richfaces/3.3.X/3.3.1.GA/en/devguide/html/rich_comboBox.html

       

       

       

      .myClass { font-size: 60px;

        font-style: italic;

        font-weight: bold;

        color: blue;

      }

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

        <rich:tabPanel width="70%" headerAlignment="right">
        <rich:tab label="Tab1">
         <rich:comboBox id="id1" defaultLabel="All Categories" width="250"
          listClass="myClass">
          <f:selectItem itemValue="suggestion 1" />
          <f:selectItem itemValue="suggestion 2" />
          <f:selectItem itemValue="suggestion 3" />
          <f:selectItem itemValue="suggestion 4" />
          <f:selectItem itemValue="suggestion 5" />
         </rich:comboBox>
        </rich:tab>
      </rich:tabPanel>

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      .myClass { font-size: 60px;
        font-style: italic;
        font-weight: bold;
        color: blue;
      }

      ......

      ....

      <rich:tabPanel width="70%" headerAlignment="right">
        <rich:tab label="Tab1">
         <rich:comboBox id="id1" defaultLabel="All Categories" width="250"
          listClass="myClass">
          <f:selectItem itemValue="suggestion 1" />
          <f:selectItem itemValue="suggestion 2" />
          <f:selectItem itemValue="suggestion 3" />
          <f:selectItem itemValue="suggestion 4" />
          <f:selectItem itemValue="suggestion 5" />
         </rich:comboBox>
        </rich:tab>
      </rich:tabPanel>