Uploaded image for project: 'Tiles'
  1. Tiles
  2. TILES-240

Empty <put-list-attribute> declaration is of type Attribute rather than ListAttribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.0.5
    • None
    • tiles-api, tiles-core
    • None
    • Windows XP, Glassfish 2, Java 5.

    Description

      A Tiles definition such as...

      <definition name="some.layout"
      template="/WEB-INF/view/tiles/layouts/someLayout.jsp">
      <put-list-attribute name="list" />
      </definition>

      will return an Attribute instance when calling...

      Attribute fieldListAttribute = attributeContext.getAttribute("list");

      whereas a tiles definition with such as...

      <definition name="some.layout" template="/WEB-INF/view/tiles/layouts/someLayout.jsp">
      <put-list-attribute name="list">
      <add-attribute value="some.attribute" />
      </put-list-attribute>
      </definition>

      will return a ListAttribute instance when calling that same method.

      These two separate scenarios seem like they should return the same object instance.

      Attachments

        Activity

          People

            brenmcguire Antonio Petrelli
            epieczko Erik Pieczkowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: