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

Put Attribute tag does not seem to work with Freemarker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.1.2
    • None
    • None
    • Mac OS
      Eclipse 3.4
      Tomcat 6.0.16

    Description

      When using jsp freemarker support the put-attribute fails to put an object into the page cope. For example:

      tile A:

      <@tiles.insertDefinition name="put.attribute.tile">
      <@tiles.putAttribute name=personalContact value=pcobj />
      </@tiles.insertDefinition>

      tile put.attribute.tile:

      <#assign tiles=JspTaglibs["http://tiles.apache.org/tags-tiles"] />

      <@tiles.importAttribute/>

      EMAIL : ${personalContact.email} <br/>
      FIRST NAME: ${personalContact.firstName} <br/>
      LAST NAME: ${personalContact.lastName} <br/>

      Produces a freemaker exception that the personContact is undefined.

      Please refer to mailing list:

      http://mail-archives.apache.org/mod_mbox/tiles-users/200904.mbox/%3caae96ca0904011317q202a3b6eib9d334ef880fb058@mail.gmail.com%3e

      Attachments

        1. tiles.zip
          18 kB
          Amin Mohammed-Coleman
        2. tiles.zip
          15 kB
          Antonio Petrelli

        Activity

          People

            Unassigned Unassigned
            amin Amin Mohammed-Coleman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: