src/main/java/org/efaps/ui/wicket/behaviors/dojo/ContentPaneBehavior.java
@Override
    public void onComponentTag(final Component _component,
                               final ComponentTag _tag)
    {
        super.onComponentTag(_component, _tag);
        if (isLayoutContainer()) {
            _tag.put("data-dojo-type", "dijit/layout/LayoutContainer");
        } else {
            _tag.put("data-dojo-type", isJsExecuteable() ? "dojox/layout/ContentPane" : "dijit/layout/ContentPane");

            if (isJsExecuteable()) {
                _tag.put("scriptHasHooks", "true");
            }
        }
        if (this.region != null) {
            _tag.append("data-dojo-props", "region: '" + this.region.getKey() + "'", ",");
        }

        if (this.splitter) {
            _tag.append("data-dojo-props", "splitter: true", ",");
        }
        if (this.splitterState != null) {
            _tag.append("data-dojo-props", "toggleSplitterState: \"" + this.splitterState + "\"", ",");
        }

        if (this.width != null) {
            _tag.append("style", "width: " + this.width, ";");
        }
        if (this.height != null) {
            _tag.append("style", "height: " + this.height, ";");
        }
    }
@Override
    public void onComponentTag(final Component _component,
                               final ComponentTag _tag)
    {
        super.onComponentTag(_component, _tag);
        if (isLayoutContainer()) {
            _tag.put("data-dojo-type", "dijit/layout/LayoutContainer");
        } else {
            _tag.put("data-dojo-type", isJsExecuteable() ? "dojox/layout/ContentPane" : "dijit/layout/ContentPane");

            if (isJsExecuteable()) {
                _tag.put("scriptHasHooks", "true");
            }
        }
        if (this.region != null) {
            _tag.append("data-dojo-props", "region: '" + this.region.getKey() + "'", ",");
        }

        if (this.splitter) {
            _tag.append("data-dojo-props", "splitter: true", ",");
        }
        if (this.splitterState != null) {
            _tag.append("data-dojo-props", "toggleSplitterState: \"" + this.splitterState + "\"", ",");
        }

        if (this.width != null) {
            _tag.append("style", "width: " + this.width, ";");
        }
        if (this.height != null) {
            _tag.append("style", "height: " + this.height, ";");
        }
    }
@ Override public void onComponentTag ( final Component _component , final ComponentTag _tag ) { super . onComponentTag ( _component , _tag ) ; if ( isLayoutContainer ( ) ) { _tag . put ( "data-dojo-type" , "dijit/layout/LayoutContainer" ) ; } else { _tag . put ( "data-dojo-type" , isJsExecuteable ( ) ? "dojox/layout/ContentPane" : "dijit/layout/ContentPane" ) ; if ( isJsExecuteable ( ) ) { _tag . put ( "scriptHasHooks" , "true" ) ; } } if ( this . region != null ) { _tag . append ( "data-dojo-props" , "region: '" + this . region . getKey ( ) + "'" , "," ) ; } if ( this . splitter ) { _tag . append ( "data-dojo-props" , "splitter: true" , "," ) ; } if ( this . splitterState != null ) { _tag . append ( "data-dojo-props" , "toggleSplitterState: \"" + this . splitterState + "\"" , "," ) ; } if ( this . width != null ) { _tag . append ( "style" , "width: " + this . width , ";" ) ; } if ( this . height != null ) { _tag . append ( "style" , "height: " + this . height , ";" ) ; } }
The tag of the related component must be set, so that a dojo
BorderContainer will be rendered.

@param _component component this Behavior belongs to
@param _tag Tag to write to
The tag of the related component must be set so that a dojo BorderContainer will be rendered .