Package org.apache.empire.jsf2.websample.db

Examples of org.apache.empire.jsf2.websample.db.SampleDB$Employees


    // trace
    SampleApplication.log.trace("SampleApplication created");
    SampleApplication.sampleApplication = this;

    // register custom control types
    InputControlManager.registerControl(new FileInputControl());
  }
View Full Code Here


   
    /* Pages */

    public static Page getPage(final FacesContext fc)
    {
        Page page = (Page) getManagedBean(fc, "page");
        if (page==null)
            log.error("Page bean {} does not exist!");
        return page;
    }
View Full Code Here

   
    /* Pages */

    public static Page getPage(final FacesContext fc)
    {
        Page page = (Page) getManagedBean(fc, "page");
        if (page==null)
            log.error("Page bean {} does not exist!");
        return page;
    }
View Full Code Here

   
    /* Pages */

    public static Page getPage(final FacesContext fc)
    {
        Page page = (Page) getManagedBean(fc, "page");
        if (page==null)
            log.error("Page bean {} does not exist!");
        return page;
    }
View Full Code Here

  }

  public void doLogout()
  {
    // Perform logout
    PageOutcome logout = this.getPageDefinition().getRedirect().addParam("logout", String.valueOf(true));
    navigateTo( logout );
   
        // Invalidate Session
    FacesUtils.getContext().getExternalContext().invalidateSession();
  }
View Full Code Here

    public static ParameterMap getParameterMap(final FacesContext fc)
    {
        Map<String, Object> sm = fc.getExternalContext().getSessionMap();
        Object pm = sm.get(PARAMETER_MAP_ATTRIBUTE);
        if (pm==null)
        {   pm = new ParameterMap();
            sm.put(PARAMETER_MAP_ATTRIBUTE, pm);
        }
        return (ParameterMap)pm;
    }
View Full Code Here

    }
    */

    private static String encodeActionParam(String action)
    {
        ParameterMap pm = FacesUtils.getParameterMap(FacesUtils.getContext());
        if (pm==null)
            return action;
        return pm.put(ACTION_PARAMETER_TYPE, action, true);
    }
View Full Code Here

        return pm.put(ACTION_PARAMETER_TYPE, action, true);
    }
   
    public static String decodeActionParam(String param)
    {
        ParameterMap pm = FacesUtils.getParameterMap(FacesUtils.getContext());
        if (pm==null)
            return param;
        String action = StringUtils.toString(pm.get(ACTION_PARAMETER_TYPE, param));
        if (action==null)
            log.warn("no action available for param {}.", param);
        return action;
    }
View Full Code Here

       
        // if (this.action==INVALID_ACTION)
        //      return null;

        // Generate key
        ParameterMap pm = FacesUtils.getParameterMap(FacesUtils.getContext());
        String actionParam = (pm!=null ? pm.encodeString(action) : action);
        return actionParam;
    }
View Full Code Here

       
        // if (this.action==INVALID_ACTION)
        //      return null;

        // Generate key
        ParameterMap pm = FacesUtils.getParameterMap(FacesUtils.getContext());
        String actionParam = (pm!=null ? pm.encodeString(action) : action);
        return actionParam;
    }
View Full Code Here

TOP

Related Classes of org.apache.empire.jsf2.websample.db.SampleDB$Employees

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.