Package javax.faces.component.html

Examples of javax.faces.component.html.HtmlForm


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

  super.setProperties(component);

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


    UIViewRoot viewToRender = new UIViewRoot();
    viewToRender.setRenderKitId("HTML_BASIC");
    viewToRender.setViewId(VIEW_ID);
    jsfMock.facesContext().setViewRoot(viewToRender);

    UIForm form = new HtmlForm();
    form.setId("myForm");

    UIInput input = new HtmlInputText();
    input.setId("foo");

    form.getChildren().add(input);
    viewToRender.getChildren().add(form);

    RequestContextHolder.setRequestContext(context);
    EasyMock.expect(context.getExternalContext()).andStubReturn(extContext);
    EasyMock.expect(context.getFlashScope()).andStubReturn(flashScope);
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 (_acceptcharset != null)
  {
    comp.setValueExpression("acceptcharset", _acceptcharset);
  }
  if (_onmouseover != null)
  {
    comp.setValueExpression("onmouseover", _onmouseover);
  }
  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_lang != null)
  {
    comp.setValueExpression("lang", _lang);
  }
  if (_onmousemove != null)
  {
    comp.setValueExpression("onmousemove", _onmousemove);
  }
  if (_onreset != null)
  {
    comp.setValueExpression("onreset", _onreset);
  }
  if (_prependId != null)
  {
    comp.setValueExpression("prependId", _prependId);
  }
  if (_accept != null)
  {
    comp.setValueExpression("accept", _accept);
  }
  if (_ondblclick != null)
  {
    comp.setValueExpression("ondblclick", _ondblclick);
  }
  if (_target != null)
  {
    comp.setValueExpression("target", _target);
  }
  if (_onkeyup != null)
  {
    comp.setValueExpression("onkeyup", _onkeyup);
  }
  if (_title != null)
  {
    comp.setValueExpression("title", _title);
  }
  if (_enctype != null)
  {
    comp.setValueExpression("enctype", _enctype);
  }
  if (_onkeypress != null)
  {
    comp.setValueExpression("onkeypress", _onkeypress);
  }
  if (_dir != null)
  {
    comp.setValueExpression("dir", _dir);
  }
  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_onkeydown != null)
  {
    comp.setValueExpression("onkeydown", _onkeydown);
  }
  if (_onclick != null)
  {
    comp.setValueExpression("onclick", _onclick);
  }
  if (_onmouseout != null)
  {
    comp.setValueExpression("onmouseout", _onmouseout);
  }
  if (_onmouseup != null)
  {
    comp.setValueExpression("onmouseup", _onmouseup);
  }
  if (_onsubmit != null)
  {
    comp.setValueExpression("onsubmit", _onsubmit);
  }
  if (_onmousedown != null)
  {
    comp.setValueExpression("onmousedown", _onmousedown);
  }
}
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 (_onreset != null)
  {
    comp.setValueExpression("onreset", _onreset);
  }
  if (_onmouseout != null)
  {
    comp.setValueExpression("onmouseout", _onmouseout);
  }
  if (_onclick != null)
  {
    comp.setValueExpression("onclick", _onclick);
  }
  if (_onkeypress != null)
  {
    comp.setValueExpression("onkeypress", _onkeypress);
  }
  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_prependId != null)
  {
    comp.setValueExpression("prependId", _prependId);
  }
  if (_enctype != null)
  {
    comp.setValueExpression("enctype", _enctype);
  }
  if (_onkeyup != null)
  {
    comp.setValueExpression("onkeyup", _onkeyup);
  }
  if (_ondblclick != null)
  {
    comp.setValueExpression("ondblclick", _ondblclick);
  }
  if (_acceptcharset != null)
  {
    comp.setValueExpression("acceptcharset", _acceptcharset);
  }
  if (_onkeydown != null)
  {
    comp.setValueExpression("onkeydown", _onkeydown);
  }
  if (_accept != null)
  {
    comp.setValueExpression("accept", _accept);
  }
  if (_onmousedown != null)
  {
    comp.setValueExpression("onmousedown", _onmousedown);
  }
  if (_onmouseup != null)
  {
    comp.setValueExpression("onmouseup", _onmouseup);
  }
  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_onmousemove != null)
  {
    comp.setValueExpression("onmousemove", _onmousemove);
  }
  if (_onsubmit != null)
  {
    comp.setValueExpression("onsubmit", _onsubmit);
  }
  if (_target != null)
  {
    comp.setValueExpression("target", _target);
  }
  if (_title != null)
  {
    comp.setValueExpression("title", _title);
  }
  if (_dir != null)
  {
    comp.setValueExpression("dir", _dir);
  }
  if (_onmouseover != null)
  {
    comp.setValueExpression("onmouseover", _onmouseover);
  }
  if (_lang != null)
  {
    comp.setValueExpression("lang", _lang);
  }
}
View Full Code Here

    @Override
    protected UIComponent createComponentToTest()
    {
        UIComponent component = new HtmlCommandLink();
        UIComponent form = new HtmlForm();
        form.getChildren().add(component);
        facesContext.getViewRoot().getChildren().add(form);
        return component;
    }
View Full Code Here


    @Override
    protected UIComponent createComponentToTest()
    {
        return new HtmlForm();
    }
View Full Code Here

        super.setUp();
        writer = new MockResponseWriter(new StringWriter(), null, null);
        facesContext.setResponseWriter(writer);
        facesContext.getApplication().setNavigationHandler(new NavigationHandlerImpl());
        outcomeTargetButton = new HtmlOutcomeTargetButton();
        form = new HtmlForm();
        outcomeTargetButton.setParent(form);
       
        facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
        facesContext.getRenderKit().addRenderer(
                outcomeTargetButton.getFamily(),
View Full Code Here

    @Test
    public void testPrependId() throws Exception
    {
        HtmlFormTag htmlFormTag = new HtmlFormTag();
        htmlFormTag.setPrependId(new LiteralValueExpression(false));
        HtmlForm htmlForm = new HtmlForm();
        htmlFormTag.setProperties(htmlForm);
        Assert.assertEquals(false, htmlForm.isPrependId());
    }
View Full Code Here

    @Override
    protected UIComponent createComponentToTest()
    {
        UIComponent component = new HtmlCommandLink();
        UIComponent form = new HtmlForm();
        form.getChildren().add(component);
        facesContext.getViewRoot().getChildren().add(form);
        return component;
    }
View Full Code Here


    @Override
    protected UIComponent createComponentToTest()
    {
        return new HtmlForm();
    }
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.