Package at.reppeitsolutions.formbuilder.components

Examples of at.reppeitsolutions.formbuilder.components.FormDataResult


    }

    @Override
    public void encodeBegin(FacesContext ctx,
            UIComponent component) throws IOException {
        FormDataResult formDataResult = (FormDataResult) component;
        String uuid = UUID.randomUUID().toString();
        FormDataResultAttributesContainer container = new FormDataResultAttributesContainer();
        container.setFormDatas(formDataResult.getFormDatas());
        ModelApplicationBean.getInstance().putFormDataResult(uuid, container);
        HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
        formDataResult.getIFrame().setSrc(request.getContextPath() + "/pages/formresult.xhtml?uuid=" + uuid);
    }
View Full Code Here


    }

    @Override
    public void encodeEnd(FacesContext ctx,
            UIComponent component) throws IOException {
        FormDataResult formDataResult = (FormDataResult) component;
        ResponseWriter writer = ctx.getResponseWriter();
        writer.write("<script type=\"text/javascript\">"
                + "$(function(){regIframe('" + formDataResult.getIFrame().getId() + "');});"
                + "</script>");
    }
View Full Code Here

TOP

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

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.