writer.write("with(").write(componentVarName).writeln("){");
    public void initializeJavaScriptComponent(IJavaScriptWriter writer)            throws WriterException {        initializePendingComponents(writer);        String javaScriptClassName = getJavaScriptClassName();        if (javaScriptClassName == null) {            return;        }        writeJsInitComponent(writer);        String componentVarName = writer.getComponentVarName();        writer.write("with(").write(componentVarName).writeln("){");        IHtmlComponentRenderContext componentRenderContext = writer                .getComponentRenderContext();        if (componentRenderContext.hasClientDatas(true)) {            encodeClientData(writer);        }    }