Package org.exoplatform.webui.form

Examples of org.exoplatform.webui.form.UIForm


         UIComponent uiPermission = uiSelector.<UIComponent> getParent().getParent();
         uiPermission.setRenderSibling(uiPermission.getClass());
         WebuiRequestContext pcontext = event.getRequestContext();

         UIPopupWindow uiPopup = uiSelector.getParent();
         UIForm uiForm = uiSelector.getAncestorOfType(UIForm.class);

         if (uiSelector.getCurrentGroup() == null)
         {
            UIApplication uiApp = pcontext.getUIApplication();
            uiApp.addMessage(new ApplicationMessage("UIGroupMembershipSelector.msg.selectGroup", null));
View Full Code Here


         UIPageIterator pageIterator = uiPermissions.getChild(UIFormGrid.class).getUIPageIterator();
         int currentPage = pageIterator.getCurrentPage();
         uiPermissions.removePermission(permission);
         UIContainer uiParent = uiPermissions.getParent();
         uiParent.setRenderedChild(UIListPermissionSelector.class);
         UIForm uiForm = uiPermissions.getAncestorOfType(UIForm.class);
         uiForm.broadcast(event, event.getExecutionPhase());
         while (currentPage > pageIterator.getAvailablePage())
         {
            currentPage--;
         }
         pageIterator.setCurrentPage(currentPage);
         event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
      }
View Full Code Here

      {
         UIListPermissionSelector uicom = event.getSource();
         UIFormCheckBoxInput<Boolean> uiPublicModeInput = uicom.getChildById("publicMode");
         uicom.setPublicMode(uiPublicModeInput.isChecked());
         uicom.setRendered(true);
         UIForm uiForm = uicom.getAncestorOfType(UIForm.class);
         UIPermissionSelector uiPermission = uiForm.findFirstComponentOfType(UIPermissionSelector.class);
         if (uiPermission != null)
         {
            uiPermission.setRendered(false);
         }

         // julien: UIForm cannot be null otherwise the uiForm.findFirstComponentOfType would have thrown an NPE
         uiForm.broadcast(event, event.getExecutionPhase());
         //event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
         event.getRequestContext().addUIComponentToUpdateByAjax(uicom);
      }
View Full Code Here

   }

   public void processDecode(WebuiRequestContext context) throws Exception
   {
      super.processDecode(context);
      UIForm uiForm = getAncestorOfType(UIForm.class);
      String action = null;
      if (uiForm != null)
      {
         action = uiForm.getSubmitAction();
      }
      else
      {
         action = context.getRequestParameter(UIForm.ACTION);
      }
View Full Code Here

      }
   }

   public String event(String name, String beanId) throws Exception
   {
      UIForm uiForm = getAncestorOfType(UIForm.class);
      if (uiForm != null)
         return uiForm.event(name, getId(), beanId);
      return super.event(name, beanId);
   }
View Full Code Here

    void setMembership(String groupId, String membershipType) {
        createMembership(groupId, membershipType);
    }

    public String event(String actionName, String beanId) throws Exception {
        UIForm uiForm = getAncestorOfType(UIForm.class);
        if (uiForm != null)
            return uiForm.event(actionName, getId(), beanId);
        return super.event(name, beanId);
    }
View Full Code Here

                uiApp.addMessage(new ApplicationMessage("UIPageBrowser.msg.NoPermission", new String[] { id }));
            }
            uiPageSelector.setValue(id);
            // uiPageBrowser.feedDataWithQuery(null);

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

        this.showAddNewPage = showAddNewPage;
    }

    public void processDecode(WebuiRequestContext context) throws Exception {
        super.processDecode(context);
        UIForm uiForm = getAncestorOfType(UIForm.class);
        String action = null;
        if (uiForm != null) {
            action = uiForm.getSubmitAction();
        } else {
            action = context.getRequestParameter(UIForm.ACTION);
        }
        if (action == null)
            return;
View Full Code Here

        return listGroup;

    }

    public String event(String name, String beanId) throws Exception {
        UIForm uiForm = getAncestorOfType(UIForm.class);
        if (uiForm != null)
            return uiForm.event(name, getId(), beanId);
        return super.event(name, beanId);
    }
View Full Code Here

            UIGroupSelector uiSelector = event.getSource();
            UIComponent uiPermission = uiSelector.<UIComponent> getParent().getParent();
            WebuiRequestContext pcontext = event.getRequestContext();

            UIPopupWindow uiPopup = uiSelector.getParent();
            UIForm uiForm = event.getSource().getAncestorOfType(UIForm.class);
            if (uiForm != null) {
                event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
            } else {
                event.getRequestContext().addUIComponentToUpdateByAjax(uiPopup);
            }
            if (uiSelector.getCurrentGroup() == null) {
                UIApplication uiApp = pcontext.getUIApplication();
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.form.UIForm

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.