Author: mareshkau
Date: 2010-02-07 16:26:51 -0500 (Sun, 07 Feb 2010)
New Revision: 20164
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5768/richDataTableFooterIsMissing.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5768/richDataTableFooterIsMissing.xhtml.xml
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableTemplate.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5768 rich:datatable template has been fixed, now
it is processing footer
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableTemplate.java 2010-02-07
20:46:14 UTC (rev 20163)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesDataTableTemplate.java 2010-02-07
21:26:51 UTC (rev 20164)
@@ -91,7 +91,7 @@
}
// Encode Footer
- Element footer = ComponentUtil.getFacet(sourceElement, RichFaces.NAME_FACET_FOOTER);
+ Node footer = ComponentUtil.getFacet((Element)sourceElement,
RichFaces.NAME_FACET_FOOTER,true);
final boolean hasColumnWithFooter = hasColumnWithFacet(columns,
RichFaces.NAME_FACET_FOOTER);
if (footer != null || hasColumnWithFooter) {
nsIDOMElement tfoot = visualDocument.createElement(HTML.TAG_TFOOT);
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5768/richDataTableFooterIsMissing.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5768/richDataTableFooterIsMissing.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5768/richDataTableFooterIsMissing.xhtml 2010-02-07
21:26:51 UTC (rev 20164)
@@ -0,0 +1,17 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core">
+ <html>
+ <head>
+ <title>header footer don't render</title>
+ </head>
+ <body>
+ <rich:dataTable id="footerIsMissing" border="1">
+ <f:facet name="header">HEADER</f:facet>
+ <f:facet name="footer">FOOTER</f:facet>
+ </rich:dataTable>
+ </body>
+ </html>
+</ui:composition>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5768/richDataTableFooterIsMissing.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5768/richDataTableFooterIsMissing.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5768/richDataTableFooterIsMissing.xhtml.xml 2010-02-07
21:26:51 UTC (rev 20164)
@@ -0,0 +1,49 @@
+<tests>
+<test id="footerIsMissing">
+<TABLE BORDER="1" ID="footerIsMissing" CLASS="dr-table
rich-table "
+ TITLE="rich:dataTable
+id: footerIsMissing
+border: 1">
+ <COLGROUP SPAN="0" TITLE="rich:dataTable
+id: footerIsMissing
+border: 1">
+ </COLGROUP>
+ <THEAD TITLE="rich:dataTable
+id: footerIsMissing
+border: 1">
+ <TR CLASS="dr-table-header rich-table-header "
+ STYLE="/background-image: url\(.*resources/common/background.gif\);/"
+ TITLE="rich:dataTable
+id: footerIsMissing
+border: 1">
+ <TD CLASS="dr-table-headercell rich-table-headercell "
COLSPAN="100"
+ SCOPE="colgroup" TITLE="rich:dataTable
+id: footerIsMissing
+border: 1">
+ <SPAN CLASS="vpe-text">
+ HEADER
+</SPAN>
+ </TD>
+ </TR>
+ </THEAD>
+ <TFOOT TITLE="rich:dataTable
+id: footerIsMissing
+border: 1">
+ <TR CLASS="dr-table-footer rich-table-footer "
+ STYLE="/background-image: url\(.*resources/common/background.gif\);/"
+ TITLE="rich:dataTable
+id: footerIsMissing
+border: 1">
+ <TD CLASS="dr-table-footercell rich-table-footercell "
COLSPAN="100"
+ SCOPE="colgroup" TITLE="rich:dataTable
+id: footerIsMissing
+border: 1">
+ <SPAN CLASS="vpe-text">
+ FOOTER
+</SPAN>
+ </TD>
+ </TR>
+ </TFOOT>
+</TABLE>
+</test>
+</tests>