Examples of VolunteerApplicationController


Examples of org.spw.controller.VolunteerApplicationController

        setList(aList);       
    }
   
    public void refreshList() {
        aList.clear();
        VolunteerApplicationController ctrl = new VolunteerApplicationController();
        aList.addAll(ctrl.getApplications());
    }
View Full Code Here

Examples of org.spw.controller.VolunteerApplicationController

        try {
            id = Long.parseLong(value);
        } catch (NumberFormatException ex) {
            return null;
        }
        VolunteerApplicationController ctrl = new VolunteerApplicationController();
        return ctrl.read(id);
    }
View Full Code Here

Examples of org.spw.controller.VolunteerApplicationController

    protected RequestBean1 getRequestBean1() {
        return (RequestBean1)getBean("RequestBean1");
    }

    public String buttonValidate_action() {
        VolunteerApplicationController ctrl = new VolunteerApplicationController();
        Contribution contribution = getSessionBean1().getContribution();
        VolunteerApplication application = getSessionBean1().getContributionDataProvider().getApplication();
        if (!application.getContributions().contains(contribution)) {
            application.addContribution(contribution);
        }
        ctrl.update(application);
       
        return "success";
    }
View Full Code Here

Examples of org.spw.controller.VolunteerApplicationController

    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            VolunteerApplicationController ctrl = new VolunteerApplicationController();
            VolunteerApplication application = dataProvider.getApplication();
            Contribution contribution = (Contribution)dataProvider.getObject(rk);
            application.removeContribution(contribution);
           
            ctrl.removeContribution(application, contribution);
            dataProvider.refreshList();
        }
       
        return null;
    }
View Full Code Here

Examples of org.spw.controller.VolunteerApplicationController

    protected RequestBean1 getRequestBean1() {
        return (RequestBean1)getBean("RequestBean1");
    }

    public String buttonValidate_action() {
        VolunteerApplicationController ctrl = new VolunteerApplicationController();
        Contribution contribution = getSessionBean1().getContribution();
        VolunteerApplication application = getSessionBean1().getContributionDataProvider().getApplication();
        if (!application.getContributions().contains(contribution)) {
            application.addContribution(contribution);
        }
        ctrl.update(application);
       
        return "success";
    }
View Full Code Here

Examples of org.spw.controller.VolunteerApplicationController

    @Override
    protected void setUp() throws Exception
    {
        super.setUp();
        applicationCtrl = new VolunteerApplicationController();
        volunteerCtrl = new VolunteerController();
        programCtrl = new ProgramController();
       
        assertTrue(programCtrl.getPrograms().size() > 0);
        anyProgram = programCtrl.getPrograms().get(0);
View Full Code Here

Examples of org.spw.controller.VolunteerApplicationController

        clearObjectList();
        getList().addAll(application.getContributions());
    }
 
    public void refreshList() {
        VolunteerApplicationController ctrl = new VolunteerApplicationController();
        application = ctrl.read(application.getIdApplication());
        setApplication(application);
    }
View Full Code Here

Examples of org.spw.controller.VolunteerApplicationController

        setList(aList);       
    }
   
    public void refreshList() {
        aList.clear();
        VolunteerApplicationController ctrl = new VolunteerApplicationController();
        aList.addAll(ctrl.getApplications());
    }
View Full Code Here

Examples of org.spw.controller.VolunteerApplicationController

        try {
            id = Long.parseLong(value);
        } catch (NumberFormatException ex) {
            return null;
        }
        VolunteerApplicationController ctrl = new VolunteerApplicationController();
        return ctrl.read(id);
    }
View Full Code Here

Examples of org.spw.controller.VolunteerApplicationController

    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            VolunteerApplicationController ctrl = new VolunteerApplicationController();
            VolunteerApplication application = dataProvider.getApplication();
            Contribution contribution = (Contribution)dataProvider.getObject(rk);
            application.removeContribution(contribution);
           
            ctrl.removeContribution(application, contribution);
            dataProvider.refreshList();
        }
       
        return null;
    }
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.