@ Override protected void afterPaint ( final RenderContext renderContext ) { super . afterPaint ( renderContext ) ; if ( this . isPressed ( ) && renderContext instanceof WebXmlRenderContext ) { PrintWriter writer = ( ( WebXmlRenderContext ) renderContext ) . getWriter ( ) ; StringBuffer temp = dumpAll ( ) ; writer . println ( "<br/><br/>" ) ; writer . println ( temp ) ; } }
Override afterPaint to paint the profile information if the button has been pressed .