Package org.exoplatform.webui.form

Examples of org.exoplatform.webui.form.UIForm


      return escapeHTML_;
   }

   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


      }
   }

   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

      w.write("<input type=\"checkbox\" class=\"checkbox\" name=\"");
      w.write(name);
      w.write("\"");
      if (onchange_ != null)
      {
         UIForm uiForm = getAncestorOfType(UIForm.class);
         w.append(" onclick=\"").append(renderOnChangeEvent(uiForm)).append("\"");
      }
      if (isChecked())
         w.write(" checked");
      if (isDisabled())
View Full Code Here

    *
    * @return the form name
    */
   public String getFormName()
   {
      UIForm uiForm = getAncestorOfType(UIForm.class);
      return uiForm.getId();
   }
View Full Code Here

   protected boolean trimValue = false;

   protected String getLabelFor(UIFormInput uiInput) throws Exception
   {
      UIComponent uiComponent = (UIComponent)uiInput;
      UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);
      String label = uiInput.getName();
      if (uiForm != null)
      {
         label = uiForm.getLabel(label);
      }

      label = label.trim();
     
      // remove trailing ':' if there is one
View Full Code Here

        }
        w.append("<input id=\"").append(getId()).append("\" type=\"checkbox\" class=\"checkbox\" name=\"");
        w.write(name);
        w.write("\"");
        if (onchange_ != null) {
            UIForm uiForm = getAncestorOfType(UIForm.class);
            w.append(" onclick=\"").append(renderOnChangeEvent(uiForm)).append("\"");
        }
        if (isChecked())
            w.write(" checked=\"checked\" ");
        if (isDisabled())
View Full Code Here

      w.write("<input type=\"checkbox\" class=\"checkbox\" name=\"");
      w.write(name);
      w.write("\"");
      if (onchange_ != null)
      {
         UIForm uiForm = getAncestorOfType(UIForm.class);
         w.append(" onclick=\"").append(renderOnChangeEvent(uiForm)).append("\"");
      }
      if (isChecked())
         w.write(" checked");
      if (isDisabled())
View Full Code Here

         return;
      }

      //modified by Pham Dinh Tan
      UIComponent uiComponent = (UIComponent)uiInput;
      UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);
      String label;
      try
      {
         label = uiForm.getId() + ".label." + uiInput.getName();
      }
      catch (Exception e)
      {
         label = uiInput.getName();
      }
View Full Code Here

         return;
      }
        
      //  modified by Pham Dinh Tan
      UIComponent uiComponent = (UIComponent)uiInput;
      UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);
      String label;
      try
      {
        label = uiForm.getId() + ".label." + uiInput.getName();
      }
      catch (Exception e)
      {
         label = uiInput.getName().trim();
      }
View Full Code Here

   {
      if (uiInput == 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.getId() + ".label." + uiInput.getName();
      }
      catch (Exception e)
      {
         label = uiInput.getName();
      }
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.