Package javax.faces.component.html

Examples of javax.faces.component.html.HtmlInputTextarea



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


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

        inputTextarea = new HtmlInputTextarea();

        writer = new MockResponseWriter(new StringWriter(), null, null);
        facesContext.setResponseWriter(writer);

        facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
View Full Code Here

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

        inputTextarea = new HtmlInputTextarea();

        writer = new MockResponseWriter(new StringWriter(), null, null);
        facesContext.setResponseWriter(writer);

        facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
View Full Code Here


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


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

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

        inputTextarea = new HtmlInputTextarea();

        writer = new MockResponseWriter(new StringWriter(), null, null);
        facesContext.setResponseWriter(writer);

        facesContext.getViewRoot().setRenderKitId(MockRenderKitFactory.HTML_BASIC_RENDER_KIT);
View Full Code Here

public UIComponent makeInputComponent(UiContext context,
                                      Section section,
                                      Parameter parameter) { 
 
  // make the component
  HtmlInputTextarea component = new HtmlInputTextarea();
  component.setId(getFacesId());
  component.setCols(getCols());
  component.setRows(getRows());
  component.setDisabled(!getEditable());
  component.setOnchange(getOnChange());
  component.setOnclick(getOnClick());
  setComponentValue(context,component,parameter);
  return applyHint(context,component);
}
View Full Code Here

          if (inputComponent instanceof HtmlInputText) {
            HtmlInputText htmlInputText = (HtmlInputText) inputComponent;
            maxLength = htmlInputText.getMaxlength();
          }
          else if (inputComponent instanceof HtmlInputTextarea) {
            HtmlInputTextarea htmlInputTextarea = (HtmlInputTextarea) inputComponent;
            Object maxLengthObject = htmlInputTextarea.getAttributes().get("maxlength");

            if (maxLengthObject != null) {
              maxLength = Integer.parseInt(maxLengthObject.toString());
            }
          }
View Full Code Here

TOP

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

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.