Package javax.faces.component.html

Examples of javax.faces.component.html.HtmlDataTable



  @SuppressWarnings("unchecked")
  public void testRITable() throws IOException
  {
    HtmlDataTable table = new HtmlDataTable();
    ArrayList<Integer> l = new ArrayList<Integer>();
    for (int i = 0 ; i < 10; i++)
      l.add(new Integer(i));
   
    table.setValue(l);
    table.setStyleClass("TableContent");
    table.setHeaderClass("af_column_header-text SomeBorderStyle");
    table.setColumnClasses("af_column_cell-text OraTableBorder1111");

    for (int i = 0 ; i < 3; i++)
    {
      UIColumn col = new UIColumn();
      /*
      HtmlOutputText header = new HtmlOutputText();
      header.setValue("Header " + i);
      col.setHeader(header);
      //HtmlOutputText text = new HtmlOutputText();
      HtmlInputText text = new HtmlInputText();
      text.setValue("Column " + i);
      col.getChildren().add(text);
      */

      col.setHeader(new NullComp());
      col.getChildren().add(new NullComp());
      table.getChildren().add(col);
    }

    UIViewRoot root = createTestTree(table, "testRITable()", 500);
    renderRoot(root);
  }
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_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

   }

   public void selectProperty(ActionEvent event)
   {
      // Retrieve parent table from event
      HtmlDataTable table = getParentDataTable((UIComponent)event.getSource());

      // Get selected prop
      RegistrationPropertyDescription prop = (RegistrationPropertyDescription)table.getRowData();

      selectedProp = prop.getNameAsString();
   }
View Full Code Here

        {
            try
            {

                /* get the source dataTable component */
                HtmlDataTable dataTable = (HtmlDataTable) ComponentUtils
                        .findComponentById(facesContext, facesContext
                                .getViewRoot(), _for);

                if (!(dataTable instanceof HtmlDataTable))
                {
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_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 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_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

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.