Package org.exoplatform.webui.application

Examples of org.exoplatform.webui.application.WebuiRequestContext.addUIComponentToUpdateByAjax()


         {
            ctx.addUIComponentToUpdateByAjax(uiForm.getParent());
         }
         else
         {
            ctx.addUIComponentToUpdateByAjax(uiPageSelector.getParent());
         }
         UIFormPopupWindow uiPopup = uiPageSelector.getChild(UIFormPopupWindow.class);
         uiPopup.setShow(false);
      }
   }
View Full Code Here


            dataService.save(pageNav);

            UIPopupWindow uiPopup = uiForm.getParent();
            uiPopup.setShow(false);
            UIComponent opener = uiPopup.getParent();
            pcontext.addUIComponentToUpdateByAjax(opener);
            return;
         }

         // if add navigation
         pageNav = new PageNavigation();
View Full Code Here

         // close popup window, update popup window
         UIPopupWindow uiPopup = uiForm.getParent();
         uiPopup.setShow(false);
         UIComponent opener = uiPopup.getParent();
         pcontext.addUIComponentToUpdateByAjax(opener);

         UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChild(UIWorkingWorkspace.class);
         uiWorkingWS.updatePortletsByName("GroupNavigationPortlet");

      }
View Full Code Here

         // add navigation to UIPortal 's navigations
         UIPortal uiPortal = Util.getUIPortal();
         uiPortal.getNavigations().add(pageNav); //TODO: Reorder the list in term of navigation priority

         //Update group navigation list
         ctx.addUIComponentToUpdateByAjax(uicomp);

         UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChild(UIWorkingWorkspace.class);
         uiWorkingWS.updatePortletsByName("GroupNavigationPortlet");
         uiWorkingWS.updatePortletsByName("UserToolbarGroupPortlet");
      }
View Full Code Here

         }
         catch(Exception e)
         {
            requestContext.getUIApplication().addMessage(
               new ApplicationMessage("UIForgetPassword.msg.send-mail-fail", null));
            requestContext.addUIComponentToUpdateByAjax(uilogin);
           
            return;
         }

         uilogin.getChild(UILoginForm.class).setRendered(true);
View Full Code Here

         uilogin.getChild(UILoginForm.class).setRendered(true);
         uilogin.getChild(UIForgetPasswordWizard.class).setRendered(false);
         uilogin.getChild(UIForgetPassword.class).setRendered(false);
         requestContext.getUIApplication().addMessage(
            new ApplicationMessage("UIForgetPassword.msg.send-mail-success", null));
         requestContext.addUIComponentToUpdateByAjax(uilogin);
      }
   }

   static public class BackActionListener extends EventListener<UIForgetPassword>
   {
View Full Code Here

         try{
            uiGadget.addUserPref(event.getRequestContext().getRequestParameter("userPref"));
         } catch(Exception e){
            WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
            UIPortletApplication uiPortlet = uiGadget.getAncestorOfType(UIPortletApplication.class);
            context.addUIComponentToUpdateByAjax(uiPortlet);
            throw new MessageException(new ApplicationMessage("UIDashboard.msg.ApplicationNotExisted", null, ApplicationMessage.ERROR));
         }

         //
         if (uiGadget.isLossData())
View Full Code Here

         uiPageBrowser.feedDataWithQuery(null);

         UIForm uiForm = uiPageSelector.getAncestorOfType(UIForm.class);
         if (uiForm != null)
         {
            ctx.addUIComponentToUpdateByAjax(uiForm.getParent());
         }
         else
         {
            ctx.addUIComponentToUpdateByAjax(uiPageSelector.getParent());
         }
View Full Code Here

         {
            ctx.addUIComponentToUpdateByAjax(uiForm.getParent());
         }
         else
         {
            ctx.addUIComponentToUpdateByAjax(uiPageSelector.getParent());
         }
         UIFormPopupWindow uiPopup = uiPageSelector.getChild(UIFormPopupWindow.class);
         uiPopup.setShow(false);
      }
   }
View Full Code Here

         if (token == null)
         {
            WebuiRequestContext requestContext = event.getRequestContext();
            requestContext.getUIApplication().addMessage(
                     new ApplicationMessage("UIForgetPassword.msg.expration", null));
            requestContext.addUIComponentToUpdateByAjax(uiPortal.getParent());
            return;
         }
        
         UIPortalApplication uiApp = uiPortal.getAncestorOfType(UIPortalApplication.class);
         UIMaskWorkspace uiMaskWS = uiApp.getChildById(UIPortalApplication.UI_MASK_WS_ID);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.