Package org.apache.cocoon.components.flow.javascript.fom

Examples of org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon


                         fom_wk);

    }

    public Request jsGet_request() {
        FOM_Cocoon cocoon = getCocoon();
        return cocoon.getRequest();
    }
View Full Code Here


            handler = new SelectionListFilter(filter, super.contentHandler);
        }
       
        // Restore the JavaScript execution context, if any
        Scriptable oldScope = null;
        FOM_Cocoon cocoon = null;
        if (wk.getContinuation() instanceof Continuation) {
            oldScope = FOM_JavaScriptFlowHelper.getFOM_FlowScope(objectModel);
           
            Continuation k = (Continuation)wk.getContinuation();
            Scriptable kScope = k.getParentScope();
            // Register the current scope for scripts indirectly called from this function
            FOM_JavaScriptFlowHelper.setFOM_FlowScope(objectModel, kScope);
            cocoon = (FOM_Cocoon)kScope.get("cocoon", kScope);
            cocoon.pushCallContext(null, null, this.manager, this.context, getLogger(), wk);
        }

        try {
            if (list instanceof FilterableSelectionList) {
                ((FilterableSelectionList)list).generateSaxFragment(handler, this.locale, filter);
            } else {
                list.generateSaxFragment(handler, this.locale);
            }
        } finally {
            if (oldScope != null) {
                // Restore it
                FOM_JavaScriptFlowHelper.setFOM_FlowScope(objectModel, oldScope);
                cocoon.popCallContext();
            }
        }
       
        super.contentHandler.endPrefixMapping(FormsConstants.INSTANCE_PREFIX);
        super.contentHandler.endDocument();
View Full Code Here

TOP

Related Classes of org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.