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

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


    public void jsFunction_forwardTo(String uri,
                                     Object bizData,
                                     Object continuation)
        throws Exception {
        FOM_Cocoon cocoon = getCocoon();
        FOM_WebContinuation fom_wk =
            (FOM_WebContinuation)unwrap(continuation);
        cocoon.forwardTo(uri,
                         unwrap(bizData),
                         fom_wk);
                        
    }
View Full Code Here


    }

    public static void jsStaticFunction_handleContinuation(String kontId,
                                                           Object cocoon_)
        throws Exception {
        FOM_Cocoon cocoon = (FOM_Cocoon)unwrap(cocoon_);
        cocoon.handleContinuation(kontId, null);
    }
View Full Code Here

                                                              int ttl)
        throws Exception {
        Continuation kont = (Continuation)unwrap(k);
        FOM_WebContinuation fom_wk =
            (FOM_WebContinuation)unwrap(lastContinuation);
        FOM_Cocoon cocoon = getCocoon();
        return cocoon.makeWebContinuation(kont, fom_wk, ttl);
    }
View Full Code Here

        }
        return obj;
    }

    public void jsFunction_removeForm() {
        FOM_Cocoon cocoon = getCocoon();

        Form.remove(cocoon.getObjectModel(), id);
        cocoon.getRequest().removeAttribute(this.id);
    }
View Full Code Here

        Form.remove(cocoon.getObjectModel(), id);
        cocoon.getRequest().removeAttribute(this.id);
    }

    public void jsFunction_saveForm() {
        FOM_Cocoon cocoon = getCocoon();
        form.save(cocoon.getObjectModel(), "request");
    }
View Full Code Here

        FOM_Cocoon cocoon = getCocoon();
        form.save(cocoon.getObjectModel(), "request");
    }

    public void jsFunction_populateForm() {
        FOM_Cocoon cocoon = getCocoon();
        form.populate(cocoon.getObjectModel());
    }
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 = (ThreadScope)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

                                                              int ttl)
        throws Exception {
        Continuation kont = (Continuation)unwrap(k);
        FOM_WebContinuation fom_wk =
            (FOM_WebContinuation)unwrap(lastContinuation);
        FOM_Cocoon cocoon = getCocoon();
        return cocoon.makeWebContinuation(kont, fom_wk, ttl);
    }
View Full Code Here

    public void jsFunction_forwardTo(String uri,
                                     Object bizData,
                                     Object continuation)
        throws Exception {
        FOM_Cocoon cocoon = getCocoon();
        FOM_WebContinuation fom_wk =
            (FOM_WebContinuation)unwrap(continuation);
        cocoon.forwardTo(uri,
                         unwrap(bizData),
                         fom_wk);

    }
View Full Code Here

                         fom_wk);

    }

    public Request jsGet_request() {
        FOM_Cocoon cocoon = getCocoon();
        return cocoon.getRequest();
    }
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.