Buggy code:
@ Serialized public class UIFormInputWithActions extends UIFormInputSet { private static final Logger log = LoggerFactory . getLogger ( UIFormInputWithActions . class ) ; Map < String , List < UIFormInputWithActions . ActionData > > actionField = new HashMap < String , List < UIFormInputWithActions . ActionData > > ( ) ; public UIFormInputWithActions ( ) { } public UIFormInputWithActions ( String id ) { } public void setActionField ( String fieldName , List < UIFormInputWithActions . ActionData > actions ) { } public void processRender ( WebuiRequestContext context ) throws Exception { if ( ( getComponentConfig ( ) ) != null ) { super . processRender ( context ) ; return ; } JavascriptManager jsMan = context . getJavascriptManager ( ) ; jsMan . require ( "SHARED//jquery" , "$" ) . require ( "SHARED//bts_tooltip" ) . addScripts ( ( ( "$('." + ( getId ( ) ) ) + "<seq2seq4repair_space>*[rel=\"tooltip\"]\').tooltip();" ) ) ; UIForm uiForm = getAncestorOfType ( UIForm . class ) ; Writer w = context . getWriter ( ) ; w . write ( ( ( ( ( "<div<seq2seq4repair_space>id=\"" + ( getId ( ) ) ) + "\"<seq2seq4repair_space>class=\"UIFormInputSet<seq2seq4repair_space>" ) + ( getId ( ) ) ) + "\">" ) ) ; w . write ( "<div<seq2seq4repair_space>class=\"form-horizontal\">" ) ; ResourceBundle res = context . getApplicationResourceBundle ( ) ; boolean required = false ; for ( UIComponent inputEntry : getChildren ( ) ) { if ( ( ! required ) && ( inputEntry instanceof UIFormInputBase ) ) { required = ( ( UIFormInputBase ) ( inputEntry ) ) . isMandatory ( ) ; } } if ( required ) <START_BUG> w . write ( ( ( "<tr><td<seq2seq4repair_space>colspan=\"2\"<seq2seq4repair_space>class=\"require\">" + ( res . getString ( "legend.required_field" ) ) ) + "<seq2seq4repair_space>(*)<//td><//tr>" ) ) ; <END_BUG> for ( UIComponent inputEntry : getChildren ( ) ) { if ( inputEntry . isRendered ( ) ) { String label ; try { label = uiForm . getLabel ( res , inputEntry . getId ( ) ) ; if ( inputEntry instanceof UIFormInputBase ) { ( ( UIFormInputBase ) ( inputEntry ) ) . setLabel ( label ) ; } } catch ( MissingResourceException ex ) { label = inputEntry . getId ( ) ; UIFormInputWithActions . log . error ( ( ( ( ( "\n<seq2seq4repair_space>" + ( uiForm . getId ( ) ) ) + ".label." ) + ( inputEntry . getId ( ) ) ) + "<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>value" ) ) ; } w . write ( "<div<seq2seq4repair_space>class=\"control-group\">" ) ; w . write ( ( ( "<label<seq2seq4repair_space>class=\"control-label\"<seq2seq4repair_space>for=\"" + ( inputEntry . getId ( ) ) ) + "\">" ) ) ; w . write ( label ) ; w . write ( "<//label>" ) ; w . write ( "<div<seq2seq4repair_space>class=\"controls\">" ) ; renderUIComponent ( inputEntry ) ; List < UIFormInputWithActions . ActionData > actions = actionField . get ( inputEntry . getName ( ) ) ; if ( actions != null ) { for ( UIFormInputWithActions . ActionData action : actions ) { String actionLabel ; try { actionLabel = uiForm . getLabel ( res , ( "action." + ( action . getActionName ( ) ) ) ) ; } catch ( MissingResourceException ex ) { actionLabel = action . getActionName ( ) ; UIFormInputWithActions . log . debug ( ( ( ( ( "Key:<seq2seq4repair_space>'" + ( uiForm . getId ( ) ) ) + ".label.action." ) + ( action . getActionName ( ) ) ) + "'<seq2seq4repair_space>not<seq2seq4repair_space>found" ) ) ; } String actionLink ; if ( ( action . getActionParameter ( ) ) != null ) { actionLink = getParent ( ) . event ( action . getActionListener ( ) , action . getActionParameter ( ) ) ; } else { actionLink = getParent ( ) . event ( action . getActionListener ( ) ) ; } if ( ( action . getActionType ( ) ) == ( UIFormInputWithActions . ActionData . TYPE_ICON ) ) { w . write ( ( ( ( ( ( ( "<a<seq2seq4repair_space>rel=\"tooltip\"<seq2seq4repair_space>class=\"actionIcon\"<seq2seq4repair_space>data-placement=\"bottom\"<seq2seq4repair_space>title=\"" + actionLabel ) + "\"<seq2seq4repair_space>href=\"" ) + actionLink ) + "\"><i<seq2seq4repair_space>class=\"" ) + ( action . getCssIconClass ( ) ) ) + "\"><//i><//a>" ) ) ; if ( action . isShowLabel ) w . write ( actionLabel ) ; } else if ( ( action . getActionType ( ) ) == ( UIFormInputWithActions . ActionData . TYPE_LINK ) ) { w . write ( ( ( ( ( ( ( "<a<seq2seq4repair_space>title=\"" + actionLabel ) + "\"<seq2seq4repair_space>href=\"" ) + actionLink ) + "\">" ) + actionLabel ) + "<//a>" ) ) ; } w . write ( "&nbsp;" ) ; if ( action . isBreakLine ( ) ) w . write ( "<br//>" ) ; } } w . write ( "<//div>" ) ; w . write ( "<//div>" ) ; } } w . write ( "<//div>" ) ; w . write ( "<//div>" ) ; } public static class ActionData implements Serializable { public static final int TYPE_ICON = 0 ; public static final int TYPE_LINK = 1 ; private int actionType = 0 ; private String actionName ; private String actionListener ; private String actionParameter = null ; private String cssIconClass = "AddNewNodeIcon" ; private boolean isShowLabel = false ; private boolean isBreakLine = false ; public void setActionType ( int actionType ) { } public int getActionType ( ) { } public void setActionName ( String actionName ) { } public String getActionName ( ) { } public void setActionListener ( String actionListener ) { } public String getActionListener ( ) { } public void setActionParameter ( String actionParameter ) { } public String getActionParameter ( ) { } public void setCssIconClass ( String cssIconClass ) { } public String getCssIconClass ( ) { } public void setShowLabel ( boolean isShowLabel ) { } public boolean isShowLabel ( ) { } public void setBreakLine ( boolean isBreakLine ) { } public boolean isBreakLine ( ) { } } }

Fix:
w . write ( ( ( "<div<seq2seq4repair_space>class=\"require\">" + ( res . getString ( "legend.required_field" ) ) ) + "<seq2seq4repair_space>(*)<//div>" ) ) ;