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

Duplicate id exception for HtmlDataScrollerRenderer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.3
    • Fix Version/s: 1.1.9
    • Component/s: Data Scroller
    • Labels:
      None
    • Environment:
      Linux, Windows

      Description

      In a portlet environment a non-faces request produces an exception when the faces tree is rendered if the faces tree contains a DataScroller component. The HtmlDataScroller renderer actually renders its children twice in this case, once in the encodeChildren method and once in the encodeEnd method. Since rendering of the children is taken care of in encodeEnd I made the encodeChildren method a no-op. Also, although the CommandLinks which are rendered as children are marked as transient, they see to stick around. I put a check in the getLink methods to make sure that the links are not added twice. This seems to fix the duplicate id exception, but it might be necessary to further investigate why they are sticking around in the first place.

        Attachments

        1. TOMAHAWK-596.patch
          9 kB
          Leonardo Uribe
        2. HtmlDataScrollerRenderer.patch
          4 kB
          Milan Majercik
        3. HtmlDataScrollerRenderer.java.example
          16 kB
          Maximiliano Carrizo
        4. HtmlDataScrollerRenderer.java
          2 kB
          Michael Lipp
        5. datascroller-issue.txt
          209 kB
          Marko Asplund
        6. ASF.LICENSE.NOT.GRANTED--HtmlDataScrollerRenderer.patch
          4 kB
          Ryan Wynn

          Issue Links

            Activity

              People

              • Assignee:
                lu4242 Leonardo Uribe
                Reporter:
                rwynn Ryan Wynn
              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: