protected void generateErrorAndRequiredClass ( UIInput input , ResponseWriter rw , String clientId , String additionalClass1 , String additionalClass2 , String additionalClass3 ) throws IOException { String styleClass = getErrorAndRequiredClass ( input , clientId ) ; if ( null != additionalClass1 ) { additionalClass1 = additionalClass1 . trim ( ) ; if ( additionalClass1 . trim ( ) . length ( ) > 0 ) { styleClass += " " + additionalClass1 ; } } if ( null != additionalClass2 ) { additionalClass2 = additionalClass2 . trim ( ) ; if ( additionalClass2 . trim ( ) . length ( ) > 0 ) { styleClass += " " + additionalClass2 ; } } if ( null != additionalClass3 ) { additionalClass3 = additionalClass3 . trim ( ) ; if ( additionalClass3 . trim ( ) . length ( ) > 0 ) { styleClass += " " + additionalClass3 ; } } rw . writeAttribute ( "class" , styleClass , "class" ) ; }
Renders the CSS pseudo classes for required fields and for the error levels .