Package at.reppeitsolutions.formbuilder.components

Examples of at.reppeitsolutions.formbuilder.components.FormBuilder


    }

    @Override
    public void encodeBegin(FacesContext ctx,
            UIComponent component) throws IOException {
        FormBuilder formBuilder = (FormBuilder) component;
        String uuid = UUID.randomUUID().toString();
        FormBuilderAttributesContainer container = new FormBuilderAttributesContainer();
        container.setForm(formBuilder.getForm());
        container.setWorkflowStates(formBuilder.getWorkflowStates());
        container.setConstraintClients(formBuilder.getConstraintClients());
        container.setMetaDataObject(formBuilder.getMetaDataObject());
        container.setMetaDataDescriptions(formBuilder.getMetaDataDescriptions());
        container.setMetaDataFetcher(formBuilder.getMetaDataFetcher());
        ModelApplicationBean.getInstance().putForm(uuid, container);
        HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
        formBuilder.getIFrame().setSrc(request.getContextPath() + "/pages/formbuilder.xhtml?uuid=" + uuid);

        formBuilder.getCallbackButton().setActionExpression(formBuilder.getActionExpression());
    }
View Full Code Here


    }

    @Override
    public void encodeEnd(FacesContext ctx,
            UIComponent component) throws IOException {
        FormBuilder formBuilder = (FormBuilder) component;
        ResponseWriter writer = ctx.getResponseWriter();
        writer.write("<script type=\"text/javascript\">"
                + "function buffer() {"
                + "document.getElementById(\"" + FormBuilderInternalRenderer.getHtmlForm(component).getId() + Constants.sep + formBuilder.getCallbackButton().getId() + "\").click();"
                + "}"
                + "$(function(){regIframe('" + formBuilder.getIFrame().getId() + "');});"
                + "</script>");
    }
View Full Code Here

TOP

Related Classes of at.reppeitsolutions.formbuilder.components.FormBuilder

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.