/** Create a new secRole object. <br> */ private void doNew() { /** !!! DO NOT BREAK THE TIERS !!! */ // We don't create a new DomainObject() in the frontend. // We GET it from the backend. setRole(getSecurityService().getNewSecRole()); doClear(); // clear all commponents doEdit(); // edit mode btnCtrl.setBtnStatus_New(); // remember the old vars doStoreInitValues(); }
/** Create a new orderPosition object. <br> */ private void doNew() { /** !!! DO NOT BREAK THE TIERS !!! */ // We don't create a new DomainObject() in the frontend. // We GET it from the backend. Orderposition anOrderposition = getOrderService().getNewOrderposition(); setOrderposition(anOrderposition); anOrderposition.setOrder(order); doClear(); // clear all commponents doEdit(); // edit mode btnCtrl.setBtnStatus_New(); // remember the old vars doStoreInitValues(); }