dc2.setEditable(true);
dc2.setRenderer(new LanguageRenderer("DE"));
DefaultTableModel<ResourceMessage> model = new DefaultTableModel(resourceMessageDao.findAll(), getMessages(), request.getLocale(),
new DefaultTableModelColumn("base.resourcemessages.code", "code"),
dc1,
dc2);
model.setInlineEditable(true);
model.setEditListener(new TableEditListener() {
public void fireEdited(TableEditEvent event) {
DefaultTableModel<ResourceMessage> model = (DefaultTableModel<ResourceMessage>) event.getWidget().getModel();
ResourceMessage resourceMessage = model.get(event.getRow());
ResourceMessage resourceMessage2 = resourceMessageDao.findById(resourceMessage.getCode());
String language = ((LanguageRenderer) ((DefaultTableModel<ResourceMessage>) event.getWidget().getModel()).getColumns().get(event.getColumn()).getRenderer()).getLanguage();
resourceMessage.getMessage().getTexts().put(language, event.getNewValue());
resourceMessage2.getMessage().getTexts().put(language, event.getNewValue());
resourceMessageDao.makePersistent(resourceMessage2);