Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1384

XML Parsing Error in Firefox 2.x when using Tomahawk Schedule with Facelets

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.1.7, 1.1.8
    • 1.1.9
    • Schedule
    • None
    • JBoss - 4.2.2 GA
      Seam - 2.0.2.SP1
      Facelets - 1.1.14
      Tomahawk 1.1.7 or 1.1.8

    Description

      Using Firefox 2.x the flowing error occurs:
      "XML Parsing Error: mismatched tag. Expected: </tr>."

      For Firefox 3.x or IE 7 the Schedule component works with no problems even for facelets.
      Also there are no problems for Firefox2.0 when using Schedule in a JSP page (no facelets).

      The source of the error is a <TR> tag not closed inside the ScheduleDetailedDayRenderer class.
      In the writeGutter method the last writer.endElement(HTML.TR_ELEM) should be inside the "while" block.

      protected void writeGutter(FacesContext context, HtmlSchedule schedule,
      ResponseWriter writer, boolean useIntervalLabels) throws IOException
      {
      boolean renderGutter = true;

      while (intervalIt.hasNext())

      { ....... writer.endElement(HTML.TR_ELEM); }

      // writer.endElement(HTML.TR_ELEM);
      writer.endElement(HTML.TBODY_ELEM);
      writer.endElement(HTML.TABLE_ELEM);
      }

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            pmahoney Peter Mahoney
            dan.stoica Dan Stoica
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment