name_ = name;
}
public static class SaveActionListener extends EventListener<UISkinSelector> {
public void execute(Event<UISkinSelector> event) throws Exception {
WebuiRequestContext rContext = event.getRequestContext();
String skin = rContext.getRequestParameter("skin");
UIPortal uiPortal = Util.getUIPortal();
UIPortalApplication uiApp = uiPortal.getAncestorOfType(UIPortalApplication.class);
UIMaskWorkspace uiMaskWS = uiApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
uiMaskWS.createEvent("Close", Phase.DECODE, rContext).broadcast();
// event.getRequestContext().addUIComponentToUpdateByAjax(uiApp) ;
Util.getPortalRequestContext().ignoreAJAXUpdateOnPortlets(false);
if (skin == null || skin.trim().length() < 1)
return;
uiApp.setSkin(skin);
String remoteUser = rContext.getRemoteUser();
// Save the skin selection to the User Profile
OrganizationService orgService = event.getSource().getApplicationComponent(OrganizationService.class);
if (remoteUser != null) {
UserProfile userProfile = orgService.getUserProfileHandler().findUserProfileByName(remoteUser);