Package org.exoplatform.webui.core

Examples of org.exoplatform.webui.core.UIPortletApplication


      if (uicomponent.getTemplate() != null)
      {
         super.processRender(uicomponent, context);
         return;
      }
      UIPortletApplication uiApp = (UIPortletApplication)uicomponent;

      context.getWriter().append("<div id=\"").append(uicomponent.getId()).append("\"").append("class=\"").append(uicomponent.getId()).append("\">");
     
      uiApp.renderChildren();
      context.getWriter().append("</div>");
   }
View Full Code Here


         }
         UIApplication uiApp = getStateManager().restoreUIRootComponent(context);
         context.setUIApplication(uiApp);
         if (!context.isResponseComplete())
         {
            UIPortletApplication uiPortletApp = (UIPortletApplication)uiApp;
            uiPortletApp.processRender(this, context);
         }
         uiApp.setLastAccessApplication(System.currentTimeMillis());
      }
      finally
      {
View Full Code Here

            //
            try {
                uiGadget.addUserPref(event.getRequestContext().getRequestParameter("userPref"));
                Util.getPortalRequestContext().setResponseComplete(true);
            } catch (Exception e) {
                UIPortletApplication uiPortlet = uiGadget.getAncestorOfType(UIPortletApplication.class);
                context.addUIComponentToUpdateByAjax(uiPortlet);
                context.setAttribute(UIGadget.SAVE_PREF_FAIL, true);
                throw new MessageException(new ApplicationMessage("UIDashboard.msg.ApplicationNotExisted", null,
                        ApplicationMessage.ERROR));
            }
View Full Code Here

      if (uicomponent.getTemplate() != null)
      {
         super.processRender(uicomponent, context);
         return;
      }
      UIPortletApplication uiApp = (UIPortletApplication)uicomponent;
      context.getWriter().append("<div id=\"").append(uicomponent.getId()).append("\"").append(" style=\"min-width:")
         .append(String.valueOf(uiApp.getMinWidth())).append("px\" class=\"").append(uicomponent.getId()).append("\">");
      uiApp.renderChildren();
      context.getWriter().append("</div>");
   }
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));
         }

         //
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));
         }

         //
View Full Code Here

            //
            try {
                uiGadget.addUserPref(event.getRequestContext().getRequestParameter("userPref"));
                Util.getPortalRequestContext().setResponseComplete(true);
            } catch (Exception e) {
                UIPortletApplication uiPortlet = uiGadget.getAncestorOfType(UIPortletApplication.class);
                context.addUIComponentToUpdateByAjax(uiPortlet);
                context.setAttribute(UIGadget.SAVE_PREF_FAIL, true);
                throw new MessageException(new ApplicationMessage("UIDashboard.msg.ApplicationNotExisted", null,
                        ApplicationMessage.ERROR));
            }
View Full Code Here

    public void processRender(UIPortletApplication uicomponent, WebuiRequestContext context) throws Exception {
        if (uicomponent.getTemplate() != null) {
            super.processRender(uicomponent, context);
            return;
        }
        UIPortletApplication uiApp = uicomponent;

        context.getWriter().append("<div id=\"").append(uicomponent.getId()).append("\"").append(" class=\"")
                .append(uicomponent.getId()).append("\">");

        uiApp.renderChildren();
        context.getWriter().append("</div>");
    }
View Full Code Here

         StateManager sm = getStateManager();
         UIApplication uiApp = sm.restoreUIRootComponent(context);
         context.setUIApplication(uiApp);
         if (!context.isResponseComplete())
         {
            UIPortletApplication uiPortletApp = (UIPortletApplication)uiApp;
            uiPortletApp.processRender(this, context);
         }
         uiApp.setLastAccessApplication(System.currentTimeMillis());

         // Store ui root
         sm.storeUIRootComponent(context);
View Full Code Here

            }
            StateManager sm = getStateManager();
            UIApplication uiApp = sm.restoreUIRootComponent(context);
            context.setUIApplication(uiApp);
            if (!context.isResponseComplete()) {
                UIPortletApplication uiPortletApp = (UIPortletApplication) uiApp;
                uiPortletApp.processRender(this, context);
            }
            uiApp.setLastAccessApplication(System.currentTimeMillis());

            // Store ui root
            sm.storeUIRootComponent(context);
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.core.UIPortletApplication

Copyright © 2018 www.massapicom. 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.