2 Replies Latest reply on Nov 25, 2009 12:54 PM by sv kap

    h:inputText styleClass not working

    sv kap Newbie

      Hi again.

      I am trying to set styleClass to inputText but it is not working. Here is my code:

      css:

      .inpTxtArea {
       border: 1px solid #d9d9d9;
       padding: 1px;
       margin: 3px 0;
       background: white;
      }
      


      
      <h:inputText id="TxtName" size="30" maxlength="30"
       value="#{registrationBean.name}" required="true" style="border: 1px solid #d9d9d9; padding: 1px; margin: 3px 0; background: white;">
      </h:inputText>
      
      <h:inputText id="TxtEmail" size="30" maxlength="30"
       value="#{registrationBean.EMail}" required="true" styleClass="inpTxtArea">
      </h:inputText>
      
      



      As you can see by the screenshot when I use style="..." it is working, but when I try with styleClass it is not.

      [img]
      http://i50.tinypic.com/28miq9.jpg
      [/img]