Examples of PortletEnvironment


Examples of de.danet.an.util.jsf.PortletEnvironment

                    } else {
                        processFilter = new AndOperation(processFilter, fc);
                    }
                }
                FacesContext fc = FacesContext.getCurrentInstance();
                PortletEnvironment portletEnv = (PortletEnvironment)
                    fc.getApplication().getVariableResolver().resolveVariable
                    (fc, "processPortletEnv");
                Integer chunk = (Integer)
                    portletEnv.getPreferencesAsIntegers().get("displayedRows");
                processesAsModel = new PaginatedDataModel
                    (pd.processes(processFilter, sortCriterion),
                     chunk.intValue());
            } catch (RemoteException e) {
                JSFUtil.addMessage(FacesMessage.SEVERITY_ERROR, L10N_MSGS,
View Full Code Here

Examples of de.danet.an.util.jsf.PortletEnvironment

        this.value = value;
    }

    private Calendar getCalendar() {
        FacesContext fc = FacesContext.getCurrentInstance();
        PortletEnvironment portletEnv = (PortletEnvironment)fc.getApplication()
            .getVariableResolver().resolveVariable(fc, "processPortletEnv");
        Locale locale = fc.getApplication().getDefaultLocale();
        if (locale == null) {
            locale = Locale.getDefault();
        }
        return Calendar.getInstance (portletEnv.getTimeZone(), locale);
    }
View Full Code Here

Examples of org.apache.cocoon.environment.portlet.PortletEnvironment

                                         String pathInfo,
                                         String uri,
                                         ActionRequest req,
                                         ActionResponse res)
    throws Exception {
        PortletEnvironment env;

        String formEncoding = req.getParameter("cocoon-form-encoding");
        if (formEncoding == null) {
            formEncoding = this.defaultFormEncoding;
        }
        env = new PortletEnvironment(servletPath,
                                     pathInfo,
                                     uri,
                                     this.portletContextURL,
                                     req,
                                     res,
                                     this.portletContext,
                                     this.envPortletContext,
                                     this.containerEncoding,
                                     formEncoding,
                                     this.defaultSessionScope);
        env.enableLogging(getLogger());
        return env;
    }
View Full Code Here

Examples of org.apache.cocoon.environment.portlet.PortletEnvironment

                                         String pathInfo,
                                         String uri,
                                         RenderRequest req,
                                         RenderResponse res)
    throws Exception {
        PortletEnvironment env;

        String formEncoding = req.getParameter("cocoon-form-encoding");
        if (formEncoding == null) {
            formEncoding = this.defaultFormEncoding;
        }
        env = new PortletEnvironment(servletPath,
                                     pathInfo,
                                     uri,
                                     this.portletContextURL,
                                     req,
                                     res,
                                     this.portletContext,
                                     this.envPortletContext,
                                     this.containerEncoding,
                                     formEncoding,
                                     this.defaultSessionScope);
        env.enableLogging(getLogger());
        return env;
    }
View Full Code Here

Examples of org.apache.cocoon.environment.portlet.PortletEnvironment

                                         String pathInfo,
                                         String uri,
                                         ActionRequest req,
                                         ActionResponse res)
    throws Exception {
        PortletEnvironment env;

        String formEncoding = req.getParameter("cocoon-form-encoding");
        if (formEncoding == null) {
            formEncoding = this.defaultFormEncoding;
        }
        env = new PortletEnvironment(servletPath,
                                     pathInfo,
                                     uri,
                                     this.portletContextURL,
                                     req,
                                     res,
                                     this.portletContext,
                                     (PortletContext) this.appContext.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT),
                                     this.containerEncoding,
                                     formEncoding,
                                     this.defaultSessionScope);
        env.enableLogging(getLogger());
        return env;
    }
View Full Code Here

Examples of org.apache.cocoon.environment.portlet.PortletEnvironment

                                         String pathInfo,
                                         String uri,
                                         RenderRequest req,
                                         RenderResponse res)
    throws Exception {
        PortletEnvironment env;

        String formEncoding = req.getParameter("cocoon-form-encoding");
        if (formEncoding == null) {
            formEncoding = this.defaultFormEncoding;
        }
        env = new PortletEnvironment(servletPath,
                                     pathInfo,
                                     uri,
                                     this.portletContextURL,
                                     req,
                                     res,
                                     this.portletContext,
                                     (PortletContext) this.appContext.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT),
                                     this.containerEncoding,
                                     formEncoding,
                                     this.defaultSessionScope);
        env.enableLogging(getLogger());
        return env;
    }
View Full Code Here

Examples of org.apache.cocoon.environment.portlet.PortletEnvironment

    protected Environment getEnvironment(String servletPath,
                                         String uri,
                                         ActionRequest req,
                                         ActionResponse res)
            throws Exception {
        PortletEnvironment env;

        String formEncoding = req.getParameter("cocoon-form-encoding");
        if (formEncoding == null) {
            formEncoding = this.defaultFormEncoding;
        }
        env = new PortletEnvironment(servletPath,
                                     uri,
                                     this.portletContextURL,
                                     req,
                                     res,
                                     this.portletContext,
                                     (PortletContext) this.appContext.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT),
                                     this.containerEncoding,
                                     formEncoding);
        env.enableLogging(getLogger());
        return env;
    }
View Full Code Here

Examples of org.apache.cocoon.environment.portlet.PortletEnvironment

    protected Environment getEnvironment(String servletPath,
                                         String uri,
                                         RenderRequest req,
                                         RenderResponse res)
            throws Exception {
        PortletEnvironment env;

        String formEncoding = req.getParameter("cocoon-form-encoding");
        if (formEncoding == null) {
            formEncoding = this.defaultFormEncoding;
        }
        env = new PortletEnvironment(servletPath,
                                     uri,
                                     this.portletContextURL,
                                     req,
                                     res,
                                     this.portletContext,
                                     (PortletContext) this.appContext.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT),
                                     this.containerEncoding,
                                     formEncoding);
        env.enableLogging(getLogger());
        return env;
    }
View Full Code Here

Examples of org.apache.cocoon.environment.portlet.PortletEnvironment

    protected Environment getEnvironment(String servletPath,
                                         String uri,
                                         ActionRequest req,
                                         ActionResponse res)
            throws Exception {
        PortletEnvironment env;

        String formEncoding = req.getParameter("cocoon-form-encoding");
        if (formEncoding == null) {
            formEncoding = this.defaultFormEncoding;
        }
        env = new PortletEnvironment(servletPath,
                                     uri,
                                     this.portletContextURL,
                                     req,
                                     res,
                                     this.portletContext,
                                     (PortletContext) this.appContext.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT),
                                     this.containerEncoding,
                                     formEncoding);
        env.enableLogging(getLogger());
        return env;
    }
View Full Code Here

Examples of org.apache.cocoon.environment.portlet.PortletEnvironment

    protected Environment getEnvironment(String servletPath,
                                         String uri,
                                         RenderRequest req,
                                         RenderResponse res)
            throws Exception {
        PortletEnvironment env;

        String formEncoding = req.getParameter("cocoon-form-encoding");
        if (formEncoding == null) {
            formEncoding = this.defaultFormEncoding;
        }
        env = new PortletEnvironment(servletPath,
                                     uri,
                                     this.portletContextURL,
                                     req,
                                     res,
                                     this.portletContext,
                                     (PortletContext) this.appContext.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT),
                                     this.containerEncoding,
                                     formEncoding);
        env.enableLogging(getLogger());
        return env;
    }
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.