Package javax.faces.component.html

Examples of javax.faces.component.html.HtmlForm


           Assert.assertTrue("Not Found: " + searchTokens[i], (htmlSnippet.indexOf(searchTokens[i]) > -1));   
        }
    }
   
    private HtmlForm createForm(String id, UIComponent root) {
        HtmlForm component = (HtmlForm) facesContext.getApplication().createComponent("javax.faces.HtmlForm");
        assertNotNull(component);
       
        component.setId(id);
        component.getAttributes().put("onsubmit", "return validateForm(this);");
       
        root.getChildren().add(root.getChildCount(), component);       
        return component;           
    }
View Full Code Here


        renderKit.addRenderer(
                new HtmlCommandButton().getFamily(),
                new HtmlCommandButton().getRendererType(),
                new HtmlButtonRenderer());
        renderKit.addRenderer(
                new HtmlForm().getFamily(),
                new HtmlForm().getRendererType(),
                new HtmlFormRenderer());
        renderKit.addRenderer(
                new HtmlOutputText().getFamily(),
                new HtmlOutputText().getRendererType(),
                new HtmlTextRenderer());
View Full Code Here

            input.setId("var1");
           
            HtmlCommandButton button = new HtmlCommandButton();
            button.setId("button1");
           
            UIForm form = new HtmlForm();
            form.setId("form1");
           
            form.getChildren().add(output);
            form.getChildren().add(input);
            form.getChildren().add(button);
            viewRoot.getChildren().add(form);
           
            markInitialState(viewRoot);
        }
View Full Code Here

{
  if (!(component instanceof HtmlForm))
  {
    throw new IllegalArgumentException("Component " + component.getClass().getName() + " is no HtmlForm");
  }
  HtmlForm comp = (HtmlForm)component;

  super.setProperties(component);

  if (_enctype != null)
  {
    comp.setValueExpression("enctype", _enctype);
  }
  if (_onclick != null)
  {
    comp.setValueExpression("onclick", _onclick);
  }
  if (_onmouseup != null)
  {
    comp.setValueExpression("onmouseup", _onmouseup);
  }
  if (_onmousemove != null)
  {
    comp.setValueExpression("onmousemove", _onmousemove);
  }
  if (_ondblclick != null)
  {
    comp.setValueExpression("ondblclick", _ondblclick);
  }
  if (_lang != null)
  {
    comp.setValueExpression("lang", _lang);
  }
  if (_acceptcharset != null)
  {
    comp.setValueExpression("acceptcharset", _acceptcharset);
  }
  if (_accept != null)
  {
    comp.setValueExpression("accept", _accept);
  }
  if (_onmouseout != null)
  {
    comp.setValueExpression("onmouseout", _onmouseout);
  }
  if (_onkeydown != null)
  {
    comp.setValueExpression("onkeydown", _onkeydown);
  }
  if (_onkeypress != null)
  {
    comp.setValueExpression("onkeypress", _onkeypress);
  }
  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_onreset != null)
  {
    comp.setValueExpression("onreset", _onreset);
  }
  if (_prependId != null)
  {
    comp.setValueExpression("prependId", _prependId);
  }
  if (_onmousedown != null)
  {
    comp.setValueExpression("onmousedown", _onmousedown);
  }
  if (_onmouseover != null)
  {
    comp.setValueExpression("onmouseover", _onmouseover);
  }
  if (_onsubmit != null)
  {
    comp.setValueExpression("onsubmit", _onsubmit);
  }
  if (_target != null)
  {
    comp.setValueExpression("target", _target);
  }
  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_title != null)
  {
    comp.setValueExpression("title", _title);
  }
  if (_dir != null)
  {
    comp.setValueExpression("dir", _dir);
  }
  if (_onkeyup != null)
  {
    comp.setValueExpression("onkeyup", _onkeyup);
  }
}
View Full Code Here

     
      application.addComponent(UIContextMenu.COMPONENT_TYPE, "org.richfaces.component.html.ContextMenu");
      application.addComponent(UIMenuItem.COMPONENT_TYPE, "org.richfaces.component.html.HtmlMenuItem");
      application.addComponent(UIMenuGroup.COMPONENT_TYPE, "org.richfaces.component.html.HtmlMenuGroup");
     
      form = new HtmlForm();
        form.setId("form");
        facesContext.getViewRoot().getChildren().add(form);
       
        panel = new HtmlPanelGroup();
        panel.setId("output");
View Full Code Here

  public void setUp() throws Exception {

    super.setUp();

    form = new HtmlForm();
    form.setId("form");
    facesContext.getViewRoot().getChildren().add(form);
    tooltip1 = (UIToolTip) application.createComponent(UIToolTip.COMPONENT_TYPE);
    tooltip2 = (UIToolTip) application.createComponent(UIToolTip.COMPONENT_TYPE);
    tooltip1.setId("tooltip1");
View Full Code Here

  public void SetUp() throws Exception {

    super.setUp();

    form = new HtmlForm();
    assertNotNull(form);
    form.setId("form");
    facesContext.getViewRoot().getChildren().add(form);
   
    command = new HtmlCommandLink();
View Full Code Here

    }

    public void setUp() throws Exception {
        super.setUp();

        form = new HtmlForm();
        facesContext.getViewRoot().getChildren().add(form);

        command = new HtmlCommandLink();
        command.setId("command");
        form.getChildren().add(command);
View Full Code Here

  }
 
  public void setUp() throws Exception {
    super.setUp();
   
    form = new HtmlForm();
    form.setId("form");
    facesContext.getViewRoot().getChildren().add(form);
      iselect = (UIInplaceSelect)application.createComponent("org.richfaces.InplaceSelect");
    
      selectItems.add(new SelectItem("Kansas City"));
View Full Code Here

     * @see org.ajax4jsf.tests.AbstractAjax4JsfTestCase#setUp()
     */
    public void setUp() throws Exception {
        super.setUp();

        form = new HtmlForm();
        form.setId("form");
        facesContext.getViewRoot().getChildren().add(form);

        toolBar = (UIToolBar) application.createComponent("org.richfaces.ToolBar");
        toolBar.setId("toolBar");
View Full Code Here

TOP

Related Classes of javax.faces.component.html.HtmlForm

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.