Package org.apache.empire.jsf2.app

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


    }

    public EmployeeListPage()
    {
        EmployeeListPage.log.trace("EmployeeListPage created");
        TEmployees EMP = getDatabase().T_EMPLOYEES;
       
        DBColumn defSortColumn = EMP.EMPLOYEE_ID;
        employees = new BeanListPageElement<EmployeeListEntry>(this, EmployeeListEntry.class, defSortColumn, EmployeeListPage.EMPLOYEES_PROPERTY);
    }
View Full Code Here


    }
   
    public void doSearch()
    {
        TDepartments DEP = getDatabase().T_DEPARTMENTS;
        TEmployees EMP = getDatabase().T_EMPLOYEES;

        DBColumnExpr FULL_NAME = EMP.LAST_NAME.append(", ").append(EMP.FIRST_NAME).as("NAME");
        DBColumnExpr DEPARTMENT = DEP.NAME.as("DEPARTMENT");

        DBCommand queryCmd = createQueryCommand();
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);
View Full Code Here

    }

    public EmployeeListPage()
    {
        EmployeeListPage.log.trace("EmployeeListPage created");
        TEmployees EMP = getDatabase().T_EMPLOYEES;
       
        DBColumn defSortColumn = EMP.EMPLOYEE_ID;
        employees = new BeanListPageElement<EmployeeListEntry>(this, EmployeeListEntry.class, defSortColumn, EmployeeListPage.EMPLOYEES_PROPERTY);
    }
View Full Code Here

    }
   
    public void doSearch()
    {
        TDepartments DEP = getDatabase().T_DEPARTMENTS;
        TEmployees EMP = getDatabase().T_EMPLOYEES;

        DBColumnExpr FULL_NAME = EMP.LAST_NAME.append(", ").append(EMP.FIRST_NAME).as("NAME");
        DBColumnExpr DEPARTMENT = DEP.NAME.as("DEPARTMENT");

        DBCommand queryCmd = createQueryCommand();
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);
View Full Code Here

    public EmployeeDetailPage()
    {
        log.trace("EmployeeDetailPage created");

        SampleDB db = getDatabase();
        EmployeeRecord emplRec = new EmployeeRecord(db);
        employee = new RecordPageElement<EmployeeRecord>(this, emplRec.getTable(), emplRec, EMPLOYEE_PROPERTY);
    }
View Full Code Here

  }

  @Override
  public void preRenderViewAction() {
    if (employeeRecord == null) {
      employeeRecord = new EmployeeRecord();
      SampleDB sampleDB = FacesUtils.getDatabase();
      String id = FacesUtils.getHttpRequest().getParameter("id");
      if (id != null) {
        try {
          employeeRecord.read(sampleDB.T_EMPLOYEES,
View Full Code Here

 
  private static final long serialVersionUID = 1L;

  public void doLogin()
  {
    SampleSession session =  SampleUtils.getSampleSession();
    session.setUser(SampleUtils.getSampleUser());
    // goto list page
    navigateTo(SamplePages.EmployeeListPage.getRedirect());
  }
View Full Code Here

 
  private static final long serialVersionUID = 1L;

  public void doLogin()
  {
    SampleSession session =  SampleUtils.getSampleSession();
    session.setUser(SampleUtils.getSampleUser());
    // goto list page
    redirectTo(SamplePages.EmployeeListPage.getOutcome());
  }
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.