Package org.spw.controller

Examples of org.spw.controller.PartnershipController


   
    public void institution_complete(FacesContext context, String prefix, CompletionResult result) {
        if (prefix == null || prefix.trim().length() < 1) {
            return;
        }
        List<Partnership> institutions = new PartnershipController().
                getInstitutionsBeginningBy(prefix, MAX_AUTOCOMPLETE);
        for (Contact contact : institutions) {
            result.addItem(contact.getName());
        }
    }
View Full Code Here


    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            PartnershipController  ctrl = new PartnershipController();
            Partnership partnership = (Partnership)list.getObject(rk);
            ctrl.delete(partnership);
        }
        list.refreshList();

        return null;
    }
View Full Code Here

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

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

    protected ApplicationBean1 getApplicationBean1() {
        return (ApplicationBean1)getBean("ApplicationBean1");
    }
   
    public String buttonValidate_action() {
        PartnershipController ctrl = new PartnershipController();
        ctrl.update(getSessionBean1().getPartnership());
       
        return "success";
    }
View Full Code Here

TOP

Related Classes of org.spw.controller.PartnershipController

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.