Package org.spw.controller

Examples of org.spw.controller.PersonController


    }
   
    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


        try {
            id = new Long(value);
        } catch (NumberFormatException ex) {
            throw new ConverterException("Incorrect id for Contact[" + value +"]");
        }
        PersonController ctrl = new PersonController();
        return ctrl.read(id);
    }
View Full Code Here

        setList(aList);
    }
   
    public void refreshList(String office) {
        clearObjectList();
        PersonController ctrl = new PersonController();
        if (office == null) {
            aList.addAll(ctrl.getPersons());
        } else {
            aList.addAll(ctrl.getFromOffice(office));
        }
    }
View Full Code Here

        return (ApplicationBean1)getBean("ApplicationBean1");
    }
   
    public String buttonValidate_action() {
        // Persist the new object
        PersonController ctrl = new PersonController();
        Person object = getSessionBean1().getPerson();
        ctrl.update(object);
       
        return "success";
    }
View Full Code Here

TOP

Related Classes of org.spw.controller.PersonController

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.