javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1708

Trivial multi-level templating does not work if ui:include is used

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: facelets
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,708
    • Status Whiteboard:
      Hide

      size_medium importance_small

      Show
      size_medium importance_small

      Description

      Following example does not produce any output:

      OuterClient.xhtml
      <ui:decorate
      template="/templates/OuterTemplate.xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      <ui:define name="content">
      <ui:include src="InnerClient.xhtml" />
      </ui:define>
      </ui:decorate>

      OuterTemplate.xhtml:
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
      <html
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
      <f:view>
      <h:head>
      <title>title</title>
      </h:head>
      <h:body>
      <ui:insert name="content" />
      </h:body>
      </f:view>
      </html>

      InnerClient.xhtml:
      <ui:composition
      template="/templates/InnerTemplate.xhtml"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      <ui:define name="content">
      Do you see me?
      </ui:define>
      </ui:composition>

      InnerTemplate.xhtml:
      <f:subview
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
      <ui:insert name="content" />
      </f:subview>

      But if OutterClient.xhtml looks like:
      <ui:decorate
      template="/templates/OuterTemplate.xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      <ui:define name="content">
      <ui:composition template="/templates/InnerTemplate.xhtml">
      <ui:define name="content">
      Do you see me?
      </ui:define>
      </ui:composition>
      </ui:define>
      </ui:decorate>

      it outputs "Do you see me?" which is expected result in both cases.

        Issue Links

          Activity

          Hide
          Ed Burns added a comment -

          Move to 2.2

          Show
          Ed Burns added a comment - Move to 2.2
          Hide
          Manfred Riem added a comment -

          Can you verify if this is still an issue on the latest 2.1 release?

          Show
          Manfred Riem added a comment - Can you verify if this is still an issue on the latest 2.1 release?
          Hide
          Manfred Riem added a comment -

          Lowering priority because of no response

          Show
          Manfred Riem added a comment - Lowering priority because of no response
          Hide
          Manfred Riem added a comment -

          Lowering priority because of no response

          Show
          Manfred Riem added a comment - Lowering priority because of no response
          Hide
          Manfred Riem added a comment -

          Closing because of inactivity

          Show
          Manfred Riem added a comment - Closing because of inactivity

            People

            • Assignee:
              Unassigned
              Reporter:
              Martin Kočí
            • Votes:
              3 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: