Package javax.faces.component.html

Examples of javax.faces.component.html.HtmlDataTable


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

        dataTable = new HtmlDataTable();

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

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


    }

    @NotNull
    public static HtmlDataTable addDataTable(@NotNull
    UIComponent parent, FacesComponentIdFactory idFactory, String styleClass) {
        HtmlDataTable dataTable = FacesComponentUtility.createComponent(HtmlDataTable.class, idFactory);
        dataTable.setStyleClass(styleClass);
        parent.getChildren().add(dataTable);
        return dataTable;
    }
View Full Code Here

        if (component instanceof HtmlPanelGrid) {
            HtmlPanelGrid panelGrid = (HtmlPanelGrid) component;
            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        } else if (component instanceof HtmlDataTable) {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
            captionStyle = dataTable.getCaptionStyle();
        } else {
            captionClass = (String) component.getAttributes().get(org.apache.myfaces.shared.renderkit.JSFAttr.CAPTION_CLASS_ATTR);
            captionStyle = (String) component.getAttributes().get(org.apache.myfaces.shared.renderkit.JSFAttr.CAPTION_STYLE_ATTR);
        }
View Full Code Here

            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        }
        else if (component instanceof HtmlDataTable)
        {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
            captionStyle = dataTable.getCaptionStyle();
        }
        else
        {
            captionClass = (String) component.getAttributes()
                    .get(org.apache.myfaces.shared.renderkit.JSFAttr.CAPTION_CLASS_ATTR);
View Full Code Here

        if (component instanceof HtmlPanelGrid) {
            HtmlPanelGrid panelGrid = (HtmlPanelGrid) component;
            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        } else if (component instanceof HtmlDataTable) {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
            captionStyle = dataTable.getCaptionStyle();
        } else {
            captionClass = (String) component.getAttributes().get(org.apache.myfaces.shared.renderkit.JSFAttr.CAPTION_CLASS_ATTR);
            captionStyle = (String) component.getAttributes().get(org.apache.myfaces.shared.renderkit.JSFAttr.CAPTION_STYLE_ATTR);
        }
View Full Code Here

        if (component instanceof HtmlPanelGrid) {
            HtmlPanelGrid panelGrid = (HtmlPanelGrid) component;
            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        } else if (component instanceof HtmlDataTable) {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
            captionStyle = dataTable.getCaptionStyle();
        } else {
            captionClass = (String) component.getAttributes().get(org.apache.myfaces.shared_tomahawk.renderkit.JSFAttr.CAPTION_CLASS_ATTR);
            captionStyle = (String) component.getAttributes().get(org.apache.myfaces.shared_tomahawk.renderkit.JSFAttr.CAPTION_STYLE_ATTR);
        }
View Full Code Here

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

  super.setProperties(component);

  if (_rows != null)
  {
    comp.setValueExpression("rows", _rows);
  }
  if (_frame != null)
  {
    comp.setValueExpression("frame", _frame);
  }
  if (_headerClass != null)
  {
    comp.setValueExpression("headerClass", _headerClass);
  }
  if (_onkeypress != null)
  {
    comp.setValueExpression("onkeypress", _onkeypress);
  }
  if (_onmouseout != null)
  {
    comp.setValueExpression("onmouseout", _onmouseout);
  }
  if (_rowClasses != null)
  {
    comp.setValueExpression("rowClasses", _rowClasses);
  }
  if (_title != null)
  {
    comp.setValueExpression("title", _title);
  }
  if (_dir != null)
  {
    comp.setValueExpression("dir", _dir);
  }
  if (_ondblclick != null)
  {
    comp.setValueExpression("ondblclick", _ondblclick);
  }
  if (_onmouseup != null)
  {
    comp.setValueExpression("onmouseup", _onmouseup);
  }
  if (_bgcolor != null)
  {
    comp.setValueExpression("bgcolor", _bgcolor);
  }
  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_value != null)
  {
    comp.setValueExpression("value", _value);
  }
  if (_onclick != null)
  {
    comp.setValueExpression("onclick", _onclick);
  }
  if (_cellspacing != null)
  {
    comp.setValueExpression("cellspacing", _cellspacing);
  }
  if (_border != null)
  {
    comp.setValueExpression("border", _border);
  }
  if (_cellpadding != null)
  {
    comp.setValueExpression("cellpadding", _cellpadding);
  }
  if (_columnClasses != null)
  {
    comp.setValueExpression("columnClasses", _columnClasses);
  }
  if (_onmousedown != null)
  {
    comp.setValueExpression("onmousedown", _onmousedown);
  }
  if (_onmouseover != null)
  {
    comp.setValueExpression("onmouseover", _onmouseover);
  }
  if (_lang != null)
  {
    comp.setValueExpression("lang", _lang);
  }
  if (_captionStyle != null)
  {
    comp.setValueExpression("captionStyle", _captionStyle);
  }
  if (_summary != null)
  {
    comp.setValueExpression("summary", _summary);
  }
  if (_onkeyup != null)
  {
    comp.setValueExpression("onkeyup", _onkeyup);
  }
  if (_first != null)
  {
    comp.setValueExpression("first", _first);
  }
  if (_width != null)
  {
    comp.setValueExpression("width", _width);
  }
  if (_rules != null)
  {
    comp.setValueExpression("rules", _rules);
  }
  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_captionClass != null)
  {
    comp.setValueExpression("captionClass", _captionClass);
  }
  if (_footerClass != null)
  {
    comp.setValueExpression("footerClass", _footerClass);
  }
  if (_var != null)
  {
    comp.setValueExpression("var", _var);
  }
  if (_onkeydown != null)
  {
    comp.setValueExpression("onkeydown", _onkeydown);
  }
  if (_onmousemove != null)
  {
    comp.setValueExpression("onmousemove", _onmousemove);
  }
}
View Full Code Here

            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        }
        else if (component instanceof HtmlDataTable)
        {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
            captionStyle = dataTable.getCaptionStyle();
        }
        else
        {
            captionClass = (String)component.getAttributes().get(org.apache.myfaces.shared_impl.renderkit.JSFAttr.CAPTION_CLASS_ATTR);
            captionStyle = (String)component.getAttributes().get(org.apache.myfaces.shared_impl.renderkit.JSFAttr.CAPTION_STYLE_ATTR);
View Full Code Here

        setupRequest("/table.xhtml");
        processLifecycleExecuteAndRender();
       
        UIComponent comp = facesContext.getViewRoot().findComponent("mainForm:component");
        Assert.assertEquals(1, comp.getChildCount());
        HtmlDataTable dataTable = (HtmlDataTable) comp.getChildren().get(0);
        Assert.assertEquals(1, dataTable.getChildCount());

        UICommand button = (UICommand) facesContext.getViewRoot().findComponent("mainForm:postback");
        submit(button);
        processLifecycleExecuteAndRender();

        comp = facesContext.getViewRoot().findComponent("mainForm:component");
        Assert.assertEquals(1, comp.getChildCount());
        dataTable = (HtmlDataTable) comp.getChildren().get(0);
        Assert.assertEquals(1, dataTable.getChildCount());
    }
View Full Code Here

            captionClass = panelGrid.getCaptionClass();
            captionStyle = panelGrid.getCaptionStyle();
        }
        else if (component instanceof HtmlDataTable)
        {
            HtmlDataTable dataTable = (HtmlDataTable) component;
            captionClass = dataTable.getCaptionClass();
            captionStyle = dataTable.getCaptionStyle();
        }
        else
        {
            captionClass = (String) component.getAttributes()
                    .get(org.apache.myfaces.shared.renderkit.JSFAttr.CAPTION_CLASS_ATTR);
View Full Code Here

TOP

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

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.