public static class EditPortletActionListener extends EventListener<UIPortlet> {
public void execute(Event<UIPortlet> event) throws Exception {
UIPortlet uiPortlet = event.getSource();
UIPortalApplication uiApp = Util.getUIPortalApplication();
UIMaskWorkspace uiMaskWS = uiApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
UIPortletForm uiPortletForm = uiMaskWS.createUIComponent(UIPortletForm.class, null, null);
if (uiPortletForm.setValues(uiPortlet) == false) {
uiMaskWS.setUIComponent(null);
WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
context.getUIApplication().addMessage(