Examples of UIGenerator


Examples of org.chiba.adapter.ui.UIGenerator

                if (webAdapter == null) {
                    throw new ServletException(Config.getInstance().getErrorMessage("session-invalid"));
                }
                response.setContentType(HTML_CONTENT_TYPE);

                UIGenerator uiGenerator = (UIGenerator) xFormsSession.getProperty(XFormsSession.UIGENERATOR);
                uiGenerator.setInput(webAdapter.getXForms());
                uiGenerator.setOutput(response.getOutputStream());
                uiGenerator.generate();

                response.getOutputStream().close();
            }
        } catch (Exception e) {
            shutdown(webAdapter, session, e, response, request, key);
View Full Code Here

Examples of org.chiba.adapter.ui.UIGenerator

            if (exitEvent != null) {
                handleExit(exitEvent, xFormsSession, session,  request, response);
            } else {
                //todo: review: the following may be substituted with the ViewServlet
                response.setContentType(HTML_CONTENT_TYPE);
                UIGenerator uiGenerator = createUIGenerator(request, xFormsSession, actionURL, xslFile == null ? xsltDefault : xslFile, javascriptPresent);
                uiGenerator.setInput(adapter.getXForms());
                uiGenerator.setOutput(response.getOutputStream());
                uiGenerator.generate();

                //store WebAdapter in XFormsSession
                xFormsSession.setAdapter(adapter);
                //store UIGenerator in XFormsSession as property
                xFormsSession.setProperty(XFormsSession.UIGENERATOR, uiGenerator);
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.