@Override
    public void renderHead(final Component _component,
                           final IHeaderResponse _response)
    {
        super.renderHead(_component, _response);
        final StringBuilder js = new StringBuilder()
            .append("ready(function() {")
            .append("registry.byId(\"").append(_component.getMarkupId())
            .append("\").set(\"content\", domConstruct.create(\"iframe\", {");

        if (this.frameMarkupId != null) {
            js.append("\"id\": \"").append(this.frameMarkupId).append("\",");
        }

        js.append("\"src\": \"").append(_component.urlForListener(new PageParameters()))
            .append("\",\"style\": \"border: 0; width: 100%; height: 99%\", \"nodeId\": \"jan\"")
            .append("}));")
            .append("});");
        _response.render(JavaScriptHeaderItem.forScript(DojoWrapper.require(js, DojoClasses.ready,
                        DojoClasses.registry, DojoClasses.domConstruct), _component.getMarkupId() + "-Script"));
    }
@Override
    public void renderHead(final Component _component,
                           final IHeaderResponse _response)
    {
        super.renderHead(_component, _response);
        final StringBuilder js = new StringBuilder()
            .append("ready(function() {")
            .append("registry.byId(\"").append(_component.getMarkupId())
            .append("\").set(\"content\", domConstruct.create(\"iframe\", {");

        if (this.frameMarkupId != null) {
            js.append("\"id\": \"").append(this.frameMarkupId).append("\",");
        }

        js.append("\"src\": \"").append(_component.urlForListener(new PageParameters()))
            .append("\",\"style\": \"border: 0; width: 100%; height: 99%\", \"nodeId\": \"jan\"")
            .append("}));")
            .append("});");
        _response.render(JavaScriptHeaderItem.forScript(DojoWrapper.require(js, DojoClasses.ready,
                        DojoClasses.registry, DojoClasses.domConstruct), _component.getMarkupId() + "-Script"));
    }
@ Override public void renderHead ( final Component _component , final IHeaderResponse _response ) { super . renderHead ( _component , _response ) ; final StringBuilder js = new StringBuilder ( ) . append ( "ready(function() {" ) . append ( "registry.byId(\"" ) . append ( _component . getMarkupId ( ) ) . append ( "\").set(\"content\", domConstruct.create(\"iframe\", {" ) ; if ( this . frameMarkupId != null ) { js . append ( "\"id\": \"" ) . append ( this . frameMarkupId ) . append ( "\"," ) ; } js . append ( "\"src\": \"" ) . append ( _component . urlForListener ( new PageParameters ( ) ) ) . append ( "\",\"style\": \"border: 0; width: 100%; height: 99%\", \"nodeId\": \"jan\"" ) . append ( "}));" ) . append ( "});" ) ; _response . render ( JavaScriptHeaderItem . forScript ( DojoWrapper . require ( js , DojoClasses . ready , DojoClasses . registry , DojoClasses . domConstruct ) , _component . getMarkupId ( ) + "-Script" ) ) ; }
Render the links for the head.

@param _component component the header will be rendered for
@param _response resonse to add
Render the links for the head .