protected void renderStringValue ( final UIComponent component , final ResponseWriter writer , final String attributeName ) throws IOException { if ( component . getAttributes ( ) . get ( attributeName ) != null && StringUtils . isNotEmpty ( component . getAttributes ( ) . get ( attributeName ) . toString ( ) ) && shouldRenderAttribute ( component . getAttributes ( ) . get ( attributeName ) ) ) { writer . writeAttribute ( attributeName , component . getAttributes ( ) . get ( attributeName ) . toString ( ) . trim ( ) , attributeName ) ; } }
Render string value if attribute is not empty .