Package org.apache.cocoon.forms

Examples of org.apache.cocoon.forms.FormManager.createForm()


        Source src = null;
        try {
            formMgr = (FormManager)getComponent(FormManager.ROLE);
            resolver = (SourceResolver)getComponent(SourceResolver.ROLE);
            src = resolver.resolveURI(uri);
            this.form = formMgr.createForm(src);
            this.binding = null;
            // this.validator = null;
            // TODO : do we keep this ?
            // this.formWidget = new Widget(this.form); could not create instance
        } catch (Exception e) {
View Full Code Here


     */
    public FormInstance(Element formDefinition) {
        FormManager formMgr = null;
        try {
            formMgr = (FormManager)getComponent(FormManager.ROLE);
            this.form = formMgr.createForm(formDefinition);
            this.binding = null;
        } catch (Exception e) {
            throw new CascadingRuntimeException("Could not create form instance", e);
        } finally {
            releaseComponent(formMgr);
View Full Code Here

        Document doc = parser.parse(obj.getClass().getResource(resource).toExternalForm());

        // Create the form
        FormManager formManager = (FormManager)manager.lookup(FormManager.ROLE);
        try {
            return formManager.createForm(doc.getDocumentElement());
        } finally {
            manager.release(formManager);
        }
    }
}
View Full Code Here

        Source src = null;
        try {
            formMgr = (FormManager)getComponent(FormManager.ROLE);
            resolver = (SourceResolver)getComponent(SourceResolver.ROLE);
            src = resolver.resolveURI(uri);
            this.form = formMgr.createForm(src);
            this.binding = null;
            // this.validator = null;
            // TODO : do we keep this ?
            // this.formWidget = new Widget(this.form); could not create instance
        } catch (Exception e) {
View Full Code Here

        SourceResolver resolver = null;
        Source src = null;
        try {
            formMgr = (FormManager)getComponent(FormManager.ROLE);
            resolver = (SourceResolver)getComponent(SourceResolver.ROLE);
            this.form = formMgr.createForm(formDefinition);
            this.binding = null;
        } catch (Exception e) {
            throw new CascadingRuntimeException("Could not create form instance", e);
        } finally {
            releaseComponent(formMgr);
View Full Code Here

        Source src = null;
        try {
            formMgr = (FormManager)getComponent(FormManager.ROLE);
            resolver = (SourceResolver)getComponent(SourceResolver.ROLE);
            src = resolver.resolveURI(uri);
            this.form = formMgr.createForm(src);
            this.binding = null;
            // this.validator = null;
            // TODO : do we keep this ?
            // this.formWidget = new Widget(this.form); could not create instance
        } catch (Exception e) {
View Full Code Here

     */
    public FormInstance(Element formDefinition) {
        FormManager formMgr = null;
        try {
            formMgr = (FormManager)getComponent(FormManager.ROLE);
            this.form = formMgr.createForm(formDefinition);
            this.binding = null;
        } catch (Exception e) {
            throw new CascadingRuntimeException("Could not create form instance", e);
        } finally {
            releaseComponent(formMgr);
View Full Code Here

        Document doc = parser.parse(obj.getClass().getResource(resource).toExternalForm());

        // Create the form
        FormManager formManager = (FormManager)manager.lookup(FormManager.ROLE);
        try {
            return formManager.createForm(doc.getDocumentElement());
        } finally {
            manager.release(formManager);
        }
    }
}
View Full Code Here

            formManager = (FormManager) this.serviceManager.lookup(FormManager.ROLE);
            binderManager = (BindingManager) this.serviceManager.lookup(BindingManager.ROLE);
            resolver = (SourceResolver) this.serviceManager.lookup(SourceResolver.ROLE);

            formSource = resolver.resolveURI(formURI);
            this.form = formManager.createForm(formSource);

            bindSource = resolver.resolveURI(bindURI);
            this.binding = binderManager.createBinding(bindSource);

            documentSource = resolver.resolveURI(this.backendURI);
View Full Code Here

        Source src = null;
        try {
            formMgr = (FormManager)getComponent(FormManager.ROLE);
            resolver = (SourceResolver)getComponent(SourceResolver.ROLE);
            src = resolver.resolveURI(uri);
            this.form = formMgr.createForm(src);
            this.binding = null;
            // this.validator = null;
            // TODO : do we keep this ?
            // this.formWidget = new Widget(this.form); could not create instance
        } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.