protected void init() throws Exception {
super.init();
setViewSelector(id != null ? "company/companyEdit" : "company/companyAdd");
log.debug("TemplateCompanyEditWidget init called");
addGlobalEventListener(new ProxyEventListener(this));
form = new BeanFormWidget(CompanyMO.class);
form.addBeanElement("name", "#Name", new TextControl(), true);
form.addBeanElement("address", "#Address", new TextControl(), true);