Package org.exoplatform.webui.form

Examples of org.exoplatform.webui.form.UIForm


   {
      if (uiInput.getValue() == null || ((String)uiInput.getValue()).trim().length() == 0)
         return;
      //  modified by Pham Dinh Tan
      UIComponent uiComponent = (UIComponent)uiInput;
      UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);
      String label;
      try
      {
         label = uiForm.getLabel(uiInput.getName());
      }
      catch (Exception e)
      {
         label = uiInput.getName();
      }
View Full Code Here


   public void validate(UIFormInput uiInput) throws Exception
   {
      //  modified by Pham Dinh Tan
      UIComponent uiComponent = (UIComponent)uiInput;
      UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);
      String label;
      try
      {
         label = uiForm.getLabel(uiInput.getName());
      }
      catch (Exception e)
      {
         label = uiInput.getName();
      }
View Full Code Here

   {
      if (uiInput.getValue() == null || ((String)uiInput.getValue()).trim().length() == 0)
         return;
      //  modified by Pham Dinh Tan
      UIComponent uiComponent = (UIComponent)uiInput;
      UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);
      String label;
      try
      {
         label = uiForm.getLabel(uiInput.getName());
      }
      catch (Exception e)
      {
         label = uiInput.getName();
      }
View Full Code Here

      String s = (String)uiInput.getValue();
      DateFormat stFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
      UIFormDateTimeInput uiDateInput = (UIFormDateTimeInput)uiInput;
      SimpleDateFormat sdf = new SimpleDateFormat(uiDateInput.getDatePattern_().trim());

      UIForm uiForm = ((UIComponent)uiInput).getAncestorOfType(UIForm.class);
      String label;
      try
      {
         label = uiForm.getLabel(uiInput.getName());
      }
      catch (Exception e)
      {
         label = uiInput.getName();
      }
View Full Code Here

        else
            selectedTheme = value;
    }

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

        UIForm uiForm = getAncestorOfType(UIForm.class);
        return uiForm.event(name, beanId);
    }

    public String event(String name) throws Exception {
        UIForm uiForm = getAncestorOfType(UIForm.class);
        return uiForm.event(name);
    }
View Full Code Here

        public void execute(Event<UIItemThemeSelector> event) throws Exception {
            UIItemThemeSelector uiFormInput = event.getSource();
            String theme = event.getRequestContext().getRequestParameter(OBJECTID);
            uiFormInput.setSelectedTheme(theme);
            UIForm uiForm = uiFormInput.getAncestorOfType(UIForm.class);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
        }
View Full Code Here

    public static class SetDefaultActionListener extends EventListener<UIItemThemeSelector> {

        public void execute(Event<UIItemThemeSelector> event) throws Exception {
            UIItemThemeSelector uiFormInput = event.getSource();
            uiFormInput.reset();
            UIForm uiForm = uiFormInput.getAncestorOfType(UIForm.class);
            event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
        }
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

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.