*
* @throws Exception
*/
public void testRenderDataTableFacets() throws Exception {
UIColumnGroup header1 = (UIColumnGroup) application.createComponent("org.richfaces.ColumnGroup");
header1.getAttributes().put("columnClasses", "cola, colb");
dataTable.getFacets().put("header", header1);
UIColumn headerColumn1 = (UIColumn) application.createComponent("org.richfaces.Column");
UIOutput headerText1 = (UIOutput) createComponent(HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),null, null, null);
headerText1.setValue("Header Column1");
headerColumn1.getChildren().add(headerText1);
header1.getChildren().add(headerColumn1);
UIOutput column1header = (UIOutput) createComponent(HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),null, null, null);
column1header.setValue("Column1 Header");
headerColumn1.getFacets().put("header", column1header);
UIColumn headerColumn2 = (UIColumn) application.createComponent("org.richfaces.Column");
UIOutput headerText2 = (UIOutput) createComponent(HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),null, null, null);
headerText2.setValue("Header Column2");
headerColumn2.getChildren().add(headerText2);
header1.getChildren().add(headerColumn2);
UIOutput column2header = (UIOutput) createComponent(HtmlOutputText.COMPONENT_TYPE, HtmlOutputText.class.getName(),null, null, null);
column2header.setValue("Column2 Header");
headerColumn2.getFacets().put("header", column2header);