Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2013

h:dataTable renders caption facet twice on ear projects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.4
    • 1.2.7
    • General
    • None
    • Ubuntu Linux 8.04, Glassfish V2 server, Netbeans IDE 6.1

    Description

      This bug does not happen on standalone war projects but in .ear projects which contain a war project using MyFaces.

      JSP code like this:
      [...]
      <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
      [...]
      <h:dataTable...>
      <f:facet name="caption">
      <h:outputText value="this is the caption"/>
      </f:facet>
      <h:column>
      <f:facet name="header">
      <h:outputText value="this is a header"/>
      </f:facet>
      [...]
      </h:column>
      [...]
      </h:dataTable>

      Renders the caption facet twice:
      <table><caption/><thead/><caption/><tbody/></table>

      There must be only one <caption> element; firefox and safari gracefully ignore the second caption, but in Internet Explorer and Opera, the caption appears twice.

      The following link includes a sample netbeans application and a list of the libraries used.

      http://rapidshare.com/files/154981138/dblcaption.tar.gz.html

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              juanmontoya Juan Montoya
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified