Package org.apache.empire.jsf2.app

Examples of org.apache.empire.jsf2.app.FacesApplication


  public String login()
  {
    User user = (User)FacesUtils.getManagedBean(User.class);

    // Erzeuge Session User Objekt und setze es in der Session
    SampleUser sampleUser = new SampleUser(user.getName(), user.getPassword());
   
    return new EmployeeSearchPage().name();
  }
View Full Code Here


    cmd.select(C_FULL_NAME, EMP.C_GENDER, EMP.C_DATE_OF_BIRTH);
    cmd.select(C_DEPARTMENT);
    cmd.join(DEP.C_DEPARTMENT_ID, EMP.C_DEPARTMENT_ID);

    // Set filter constraints
    EmployeeSearch employeeSearch = (EmployeeSearch) FacesUtils
        .getManagedBean(EmployeeSearch.class);
    if (employeeSearch.getDepartmentId() != null)
      cmd.where(EMP.C_DEPARTMENT_ID.is(employeeSearch.getDepartmentId()));
    if (StringUtils.isValid(employeeSearch.getFirstName()))
      cmd.where(EMP.C_FIRST_NAME.likeUpper(
          employeeSearch.getFirstName() + "%").or(
          EMP.C_FIRST_NAME.is(null)));
    if (StringUtils.isValid(employeeSearch.getLastName()))
      cmd.where(EMP.C_LAST_NAME.likeUpper(employeeSearch.getLastName()
          + "%"));

    cmd.orderBy(EMP.C_LAST_NAME);
    cmd.orderBy(EMP.C_FIRST_NAME);
View Full Code Here

   
   
    protected void addAllConstraints(DBCommand queryCmd)
    {
        TEmployees EMP = getDatabase().T_EMPLOYEES;
        EmployeeSearchFilter filter = getSearchFilter();
       
        addSearchConstraint(queryCmd, EMP.EMPLOYEE_ID, filter);
        addSearchConstraint(queryCmd, EMP.FIRST_NAME, filter);
        addSearchConstraint(queryCmd, EMP.LAST_NAME, filter);
        addSearchConstraint(queryCmd, EMP.GENDER, filter);
View Full Code Here

   
   
    protected void addAllConstraints(DBCommand queryCmd)
    {
        TEmployees EMP = getDatabase().T_EMPLOYEES;
        EmployeeSearchFilter filter = getSearchFilter();
       
        addSearchConstraint(queryCmd, EMP.EMPLOYEE_ID, filter);
        addSearchConstraint(queryCmd, EMP.FIRST_NAME, filter);
        addSearchConstraint(queryCmd, EMP.LAST_NAME, filter);
        addSearchConstraint(queryCmd, EMP.GENDER, filter);
View Full Code Here

   
   
    protected void addAllConstraints(DBCommand queryCmd)
    {
        TEmployees EMP = getDatabase().T_EMPLOYEES;
        EmployeeSearchFilter filter = getSearchFilter();
       
        addSearchConstraint(queryCmd, EMP.EMPLOYEE_ID, filter);
        addSearchConstraint(queryCmd, EMP.FIRST_NAME, filter);
        addSearchConstraint(queryCmd, EMP.LAST_NAME, filter);
        addSearchConstraint(queryCmd, EMP.GENDER, filter);
View Full Code Here

        return new LoginPage().name();   
  }
 
  public String login()
  {
    User user = (User)FacesUtils.getManagedBean(User.class);

    // Erzeuge Session User Objekt und setze es in der Session
    SampleUser sampleUser = new SampleUser(user.getName(), user.getPassword());
   
    return new EmployeeSearchPage().name();
  }
View Full Code Here

    }
  }

  private void initPages(ServletContext sc) {
    // register Page Beans
    new SamplePages().registerPageBeans(this.getFacesImplementation());
  }
View Full Code Here

    }
  }

  private void initPages(ServletContext sc) {
    BeanManager bm = ApplicationAssociate.getInstance(sc).getBeanManager();
    new SamplePages().registerPageBeans(bm);
  }
View Full Code Here

    }
  }

  private void initPages(ServletContext sc) {
    BeanManager bm = ApplicationAssociate.getInstance(sc).getBeanManager();
    new SamplePages().registerPageBeans(bm);
  }
View Full Code Here

TOP

Related Classes of org.apache.empire.jsf2.app.FacesApplication

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.