Package javax.faces.component.html

Examples of javax.faces.component.html.HtmlDataTable


            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


        public UIComponent getTable() {
            if (table == null) {
                FacesContext context = FacesContext.getCurrentInstance();
                Application app = context.getApplication();
                ExpressionFactory factory = app.getExpressionFactory();
                table = new HtmlDataTable();
                table.setVar("p");
                ELContext elContext = context.getELContext();
                table.setValueExpression("value", factory.createValueExpression(
                        elContext, "#{customDataTable.list}", Object.class));
                HtmlColumn c1 = new HtmlColumn();
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 (_onmousedown != null)
  {
    comp.setValueExpression("onmousedown", _onmousedown);
  }
  if (_lang != null)
  {
    comp.setValueExpression("lang", _lang);
  }
  if (_cellpadding != null)
  {
    comp.setValueExpression("cellpadding", _cellpadding);
  }
  if (_columnClasses != null)
  {
    comp.setValueExpression("columnClasses", _columnClasses);
  }
  if (_value != null)
  {
    comp.setValueExpression("value", _value);
  }
  if (_captionClass != null)
  {
    comp.setValueExpression("captionClass", _captionClass);
  }
  if (_styleClass != null)
  {
    comp.setValueExpression("styleClass", _styleClass);
  }
  if (_ondblclick != null)
  {
    comp.setValueExpression("ondblclick", _ondblclick);
  }
  if (_onkeypress != null)
  {
    comp.setValueExpression("onkeypress", _onkeypress);
  }
  if (_captionStyle != null)
  {
    comp.setValueExpression("captionStyle", _captionStyle);
  }
  if (_width != null)
  {
    comp.setValueExpression("width", _width);
  }
  if (_onmouseup != null)
  {
    comp.setValueExpression("onmouseup", _onmouseup);
  }
  if (_frame != null)
  {
    comp.setValueExpression("frame", _frame);
  }
  if (_onclick != null)
  {
    comp.setValueExpression("onclick", _onclick);
  }
  if (_rowClasses != null)
  {
    comp.setValueExpression("rowClasses", _rowClasses);
  }
  if (_bgcolor != null)
  {
    comp.setValueExpression("bgcolor", _bgcolor);
  }
  if (_first != null)
  {
    comp.setValueExpression("first", _first);
  }
  if (_cellspacing != null)
  {
    comp.setValueExpression("cellspacing", _cellspacing);
  }
  if (_onmousemove != null)
  {
    comp.setValueExpression("onmousemove", _onmousemove);
  }
  if (_title != null)
  {
    comp.setValueExpression("title", _title);
  }
  if (_headerClass != null)
  {
    comp.setValueExpression("headerClass", _headerClass);
  }
  if (_onkeyup != null)
  {
    comp.setValueExpression("onkeyup", _onkeyup);
  }
  if (_var != null)
  {
    comp.getAttributes().put("var", _var);
  }
  if (_style != null)
  {
    comp.setValueExpression("style", _style);
  }
  if (_rules != null)
  {
    comp.setValueExpression("rules", _rules);
  }
  if (_onmouseout != null)
  {
    comp.setValueExpression("onmouseout", _onmouseout);
  }
  if (_rows != null)
  {
    comp.setValueExpression("rows", _rows);
  }
  if (_onkeydown != null)
  {
    comp.setValueExpression("onkeydown", _onkeydown);
  }
  if (_summary != null)
  {
    comp.setValueExpression("summary", _summary);
  }
  if (_dir != null)
  {
    comp.setValueExpression("dir", _dir);
  }
  if (_border != null)
  {
    comp.setValueExpression("border", _border);
  }
  if (_footerClass != null)
  {
    comp.setValueExpression("footerClass", _footerClass);
  }
  if (_onmouseover != null)
  {
    comp.setValueExpression("onmouseover", _onmouseover);
  }
}
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

            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

        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_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

        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

    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


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

    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

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.