src/aria/widgetLibs/WidgetLib.js
function (widgetName, out, cfg, lineNbr) {
            var classpath = this.widgets[widgetName];
            try {
                if (classpath) {
                    // default object if cfg was null
                    if (!cfg) {
                        cfg = {};
                    }
                    var widgetClass = Aria.getClassRef(classpath);
                    var instance = new widgetClass(cfg, out.tplCtxt, lineNbr);
                    out.registerBehavior(instance);
                    instance.writeMarkupBegin(out);
                    return instance;
                } else {
                    // This should normally never happen, as the error will probably be caught after the call
                    // of getWidgetDependencies by the TplClassGenerator (see the "@" statement in
                    // aria.templates.Statements).
                    throw this.UNKWOWN_WIDGET;
                }
            } catch (error) {
                out.write("#Error in widget:" + widgetName + "#");
                this.$logError(this.ERROR_WIDGET_INIT, [out.tplCtxt.tplClasspath, lineNbr, widgetName,
                        "writeMarkupBegin"], error);
            }
        }
function (widgetName, out, cfg, lineNbr) {
            var classpath = this.widgets[widgetName];
            try {
                if (classpath) {
                    // default object if cfg was null
                    if (!cfg) {
                        cfg = {};
                    }
                    var widgetClass = Aria.getClassRef(classpath);
                    var instance = new widgetClass(cfg, out.tplCtxt, lineNbr);
                    out.registerBehavior(instance);
                    instance.writeMarkupBegin(out);
                    return instance;
                } else {
                    // This should normally never happen, as the error will probably be caught after the call
                    // of getWidgetDependencies by the TplClassGenerator (see the "@" statement in
                    // aria.templates.Statements).
                    throw this.UNKWOWN_WIDGET;
                }
            } catch (error) {
                out.write("#Error in widget:" + widgetName + "#");
                this.$logError(this.ERROR_WIDGET_INIT, [out.tplCtxt.tplClasspath, lineNbr, widgetName,
                        "writeMarkupBegin"], error);
            }
        }
function ( widgetName , out , cfg , lineNbr ) { var classpath = this . widgets [ widgetName ] ; try { if ( classpath ) { // default object if cfg was null if ( ! cfg ) { cfg = { } ; } var widgetClass = Aria . getClassRef ( classpath ) ; var instance = new widgetClass ( cfg , out . tplCtxt , lineNbr ) ; out . registerBehavior ( instance ) ; instance . writeMarkupBegin ( out ) ; return instance ; } else { // This should normally never happen, as the error will probably be caught after the call // of getWidgetDependencies by the TplClassGenerator (see the "@" statement in // aria.templates.Statements). throw this . UNKWOWN_WIDGET ; } } catch ( error ) { out . write ( "#Error in widget:" + widgetName + "#" ) ; this . $logError ( this . ERROR_WIDGET_INIT , [ out . tplCtxt . tplClasspath , lineNbr , widgetName , "writeMarkupBegin" ] , error ) ; } }
Function called by the template engine to process a container widget markup
@param {String} widgetName the name of the widget - e.g. TextField
@param {aria.templates.MarkupWriter} out the output writer
@param {Object} cfg
@param {Number} lineNbr line number of the widget in the template
Function called by the template engine to process a container widget markup