protected void encodeOptionalAttr ( final WidgetBuilder wb , final String attrName , final String value ) throws IOException { if ( value != null ) { wb . attr ( attrName , value ) ; } }
Encodes an optional attribute to the widget builder specified .