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

HtmlDataScrollerRenderer.renderScroller causes duplicate Ids

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 1.1.5-SNAPSHOT
    • None
    • Data Scroller
    • None

    Description

      HtmlDataScrollerRenderer.renderScroller modifies the sroller component's structure by adding command links to it. This works only once. However, it is perfectly legal to invoke lifecycle.render several times without calling lifecycle.execute in between (that's what portals to for portlets that have not participated in the current action).

      Because the component structure is reused rather than recreated in this case, the added command links from the previous render invocation are still there. Adding the command links again eventually leads to duplicate ids.

      Workaround (and probably fix as well): clear list of children at the start of renderScroller.

      Attachments

        Activity

          People

            Unassigned Unassigned
            drmlipp Michael Lipp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: