11 Replies Latest reply on May 9, 2011 6:41 AM by mada_harikrishna

    h:inputText +styleClass not working

    mada_harikrishna

      Hi,

       

      I have a code like this

       

      <h:inputText value="AMXL" styleClass="form_input_sml" />

       

      .form_select {

          border: 1px solid #c9c5ba;

          background-color: #FFFFFF;

          margin: 0px;

          height: 20px;

          width: 155px;

          font-size: 11px;

          color: #333333;

      }

       

      The above style is not getting applied.

       

      When I write only <h:inputText value="AMXL" /> without styleclass and give this

       

      input[type="text"] {

       

      border: 1px solid #c9c5ba;

          background-color: #FFFFFF;

          margin: 0px;

          height: 20px;

          width: 155px;

          font-size: 11px;

          color: #333333;

      }

       

      in css file, the style is getting applied. I have some

       

      Can any one please suggest why the styleclass is not working h:inputText?

       

      Thanks in advance.

       

      Regards,

      Hari.