Package org.spw.model

Examples of org.spw.model.Person


    protected ApplicationBean1 getApplicationBean1() {
        return (ApplicationBean1)getBean("ApplicationBean1");
    }
   
    public String hyperlinkCreateVolunteer_action() {
        Person person = getSessionBean1().getPerson();
        // if Person, create an instance of Volunteer
        if (person instanceof Volunteer) {
            return null;
        } else {
            getSessionBean1().setVolunteer(new Volunteer((Person) person));
View Full Code Here


       
        return "editVolunteer";
    }
   
    public String hyperlinkCreateApplication_action() {
        Person person = getSessionBean1().getPerson();
        if (! (person instanceof Volunteer)) {
            return null;
        } else {
            getSessionBean1().setVolunteer((Volunteer) person);
        }
View Full Code Here

       
        return "application";
    }
   
    public String hyperlinkEditVolunteer_action() {
        Person person = getSessionBean1().getPerson();
        if (! (person instanceof Volunteer)) {
            return null;
        } else {
            getSessionBean1().setVolunteer((Volunteer) person);
        }
View Full Code Here

       
        return "editDocument";
    }
   
    public String hyperlinkEditApplication_action() {
        Person person = getSessionBean1().getPerson();
        if (! (person instanceof Volunteer)) {
            return null;
        } else {
            getSessionBean1().setVolunteer((Volunteer) person);
        }
View Full Code Here

       
        return "donationList";
    }
   
    public String hyperlinkContributions_action() {
        Person person = getSessionBean1().getPerson();
        if (! (person instanceof Volunteer)) {
            return null;
        }
        VolunteerApplication application = getSessionBean1().getVolunteer().getApplication();
        if (application == null) {
View Full Code Here

    }
   
    public String buttonEdit_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Person Person = (Person)list.getObject(rk);
            getSessionBean1().setPerson(Person);
        }
        return "edit";
    }
View Full Code Here

   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            PersonController  ctrl = new PersonController();
            Person person = (Person)list.getObject(rk);
            ctrl.delete(person);
        }
        list.refreshList(getSelectedOffice());
        return null;
    }
View Full Code Here

        list.refreshList(getSelectedOffice());
        return null;
    }
   
    public String buttonAdd_action() {
        getSessionBean1().setPerson(new Person());
       
        return "new";
    }
View Full Code Here

    }
   
    public String buttonInfo_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Person person = (Person) list.getObject(rk);
            getSessionBean1().setPerson(person);
        }
       
        return "info";
    }
View Full Code Here

    public String getAsString(FacesContext context, UIComponent component, Object value) {
        if (value == null) return null;
        if (!(value instanceof Person)) {
            throw new ConverterException("Error converting Contact, got a " + value.getClass().getName());
        }
        Person obj = (Person) value;
        return Long.toString(obj.getIdContact());
    }
View Full Code Here

TOP

Related Classes of org.spw.model.Person

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.