public EditPanel createPanel(ActionMessages errors, EditLoadForm form, Hashtable<String, Object> attributes, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
ContactVO contact = (ContactVO)attributes.get("contact");
EditPanel panel = new EditPanel(Right.CRM_CONTACTS_WRITE, contact);
if(contact.getId() == null)
panel.setTitle(MessageUtil.message(request, "module.crm.contact.headLine.create"));
else
{
panel.setTitle(MessageUtil.message(request, "module.crm.contact.headLine.edit", contact.getSubject()));
panel.setAttribute(DeleteAction.TEXT_TITLE, MessageUtil.message(request, "module.crm.contact.delete.headLine", contact.getSubject()));
panel.setAttribute(DeleteAction.TEXT_QUESTION, MessageUtil.message(request, "module.crm.contact.delete.question", contact.getSubject()));
}
EditPanel lastPanel = (EditPanel)Panel.getPanelStack(request).peek();
panel.addAction(Action.Type.SAVE, "/crm/contact/save");
panel.addAction(Action.Type.DELETE, "/crm/contact/delete");
panel.addPage("STANDARD", "/crm/contact/pageStandard", "module.generic.panel.tab.standard");