Capital Style Letters in a Field

Capital Style Letters in a Field



We can use below code if there is any requirement like we need to display all letters in capital style in a Text Field.


public void processRequest(OAPageContext pageContext, OAWebBean webBean)
  {
    super.processRequest(pageContext, webBean);
    CSSStyle css =new  CSSStyle();  
                 css.setProperty("text-transform","uppercase");  
                 OAMessageTextInputBean mtib=(OAMessageTextInputBean)webBean.findChildRecursive("Test");  
                 if(mtib!=null) {  
                 mtib.setInlineStyle(css);   
                 }
  }

Post a Comment

0 Comments