facelets
  1. facelets
  2. FACELETS-368

strange duplicate content rendered with two <ui:insert> tags in different facelet pages

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Facelets 1.2
    • Fix Version/s: 1.1.15
    • Component/s: impl
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Issuezilla Id:
      368

      Description

      I've been following the tutorial at
      http://www.andygibson.net/blog/article/how-to-do-10-common-tasks-in-jsf-2-0/ .
      It contains some pretty basic JSF / Facelets stuff.

      I came across an issue where a duplicate component (in this case, an input
      field) gets rendered at the bottom of the page of the page when it's not
      supposed to.

      This happens when I have a <ui:insert> that I don't strictly need for this
      project. The screencast shows this.

      FILES

      • calculator.xhtml
      • main page
      • has <ui:composition template="index.xhtml">
      • has two <ui:decorate template="/property.xhtml">
      • property.xhtml
      • a <ui:composition>
      • a few div tags
      • a <ui:insert />
      • index.xhtml
      • "main" template
      • has lots of <ui:insert>'s
      • has lots of div tags
      • has a <ui:insert>

      I'm going to attach the Eclipse project, the screencast, and screenshots to
      demonstrate what I mean.

      Thanks, all!

      1. eclipse-weird.rendering.project.tar.gz
        6 kB
        the_alchemist
      2. facelets-strange.renderings.mp4
        733 kB
        the_alchemist
      1. jsf-bad.rendering.screenshot.png
        10 kB
      2. jsf-good.rendering.screenshot.png
        8 kB

        Activity

        Hide
        the_alchemist added a comment -

        Created an attachment (id=146)
        screencast of Eclipse project and what the output looks like

        Show
        the_alchemist added a comment - Created an attachment (id=146) screencast of Eclipse project and what the output looks like
        Hide
        the_alchemist added a comment -

        Created an attachment (id=147)
        Eclipse 3.6 project that contains the pages that don't render right

        Show
        the_alchemist added a comment - Created an attachment (id=147) Eclipse 3.6 project that contains the pages that don't render right
        Hide
        the_alchemist added a comment -

        Created an attachment (id=148)
        bad rendering

        Show
        the_alchemist added a comment - Created an attachment (id=148) bad rendering
        Hide
        the_alchemist added a comment -

        Created an attachment (id=149)
        good rendering

        Show
        the_alchemist added a comment - Created an attachment (id=149) good rendering

          People

          • Assignee:
            Unassigned
            Reporter:
            the_alchemist
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: