@Transaction(context = INewsContext.class) @Override public JavascriptForward onSave(final ComponentParameter cp) throws Exception { final NewsAttachment attachment = getAttachment(cp); if (attachment != null) { attachment.setTopic(cp.getParameter("ae_topic")); attachment.setDescription(cp.getParameter("ae_description")); attachment.setAttachtype(cp.getIntParameter("ae_attachtype")); attachment.setVideoTime(cp.getIntParameter("ae_videotime")); newsContext .getAttachmentService() .update(new String[] {"topic", "attachtype", "videotime", "description"}, attachment); } final JavascriptForward js = super.onSave(cp); js.append("$Actions['NewsTabAttachPage_tbl']();"); return js; }