@ Override public void render ( final WComponent component , final RenderContext context ) { PrintWriter out = ( ( WebXmlRenderContext ) context ) . getWriter ( ) ; // If we are debugging the layout, write markers so that the html // designer can see where templates start and end. boolean debugLayout = ConfigurationProperties . getDeveloperVelocityDebug ( ) ; if ( debugLayout ) { String templateUrl = url ; if ( url == null && component instanceof AbstractWComponent ) { templateUrl = ( ( AbstractWComponent ) component ) . getTemplate ( ) ; } out . println ( "<!-- Start " + templateUrl + " -->" ) ; paintXml ( component , out ) ; out . println ( "<!-- End " + templateUrl + " -->" ) ; } else { paintXml ( component , out ) ; } }
Paints the component in HTML using the Velocity Template .