@ Override public void paint ( final RenderContext renderContext ) { if ( ! DebugUtil . isDebugFeaturesEnabled ( ) || ! ( renderContext instanceof WebXmlRenderContext ) ) { getBackingComponent ( ) . paint ( renderContext ) ; return ; } AjaxOperation operation = AjaxHelper . getCurrentOperation ( ) ; if ( operation == null ) { getBackingComponent ( ) . paint ( renderContext ) ; return ; } getBackingComponent ( ) . paint ( renderContext ) ; XmlStringBuilder xml = ( ( WebXmlRenderContext ) renderContext ) . getWriter ( ) ; xml . appendTag ( "ui:debug" ) ; for ( String targetId : operation . getTargets ( ) ) { ComponentWithContext target = WebUtilities . getComponentById ( targetId , true ) ; if ( target != null ) { writeDebugInfo ( target . getComponent ( ) , xml ) ; } } xml . appendEndTag ( "ui:debug" ) ; }
Override paint to only output the debugging info for the current targets .