Package org.spw.controller

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


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

    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

    }
   
    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

    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

    @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

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

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

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

    }
   
    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

Related Classes of org.spw.controller.VolunteerApplicationController

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.