Package org.araneaframework.example.main.business.model

Examples of org.araneaframework.example.main.business.model.CompanyMO


    form = new BeanFormWidget(CompanyMO.class);
    form.addBeanElement("name", "#Name", new TextControl(), true);
    form.addBeanElement("address", "#Address", new TextControl(), true);

    if (id != null) {
      CompanyMO company = (CompanyMO) getGeneralDAO().getById(CompanyMO.class, id);  
      form.writeBean(company);
    }
   
    addWidget("form", form);
  }
View Full Code Here


  }
 
  public void handleEventSave(String eventParameter) throws Exception {
    log.debug("Event 'save' received!");
    if (form.convertAndValidate()) {
      CompanyMO company = id != null ? (CompanyMO) getGeneralDAO().getById(CompanyMO.class, id) : new CompanyMO();
     
      company = (CompanyMO) form.readBean(company);
     
      if (id != null) {
        getGeneralDAO().edit(company);
View Full Code Here

TOP

Related Classes of org.araneaframework.example.main.business.model.CompanyMO

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.