Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1053

AjaxTilesView does not handle cascaded attributes properly

    XMLWordPrintable

    Details

      Description

      i have one cascaded attribute in my view:

      <definition name="specifyPhone" extends="template">
      <put-attribute name="handsetTable" value="/WEB-INF/templates/handsets.ftl" cascade="true"/>
      <put-attribute name="body" value="/WEB-INF/templates/specifyPhone.ftl"/>
      </definition>

      template contains "body" attribute
      body template contains "handsetTable" attribute

      the first time i render the full page everything is ok

      when i try to specify 'handsetTable' as render fragment, nothing gets rendered because of exception: javax.servlet.ServletException: No tiles attribute with a name of 'handsetTable' could be found for the current view: org.springframework.js.ajax.tiles2.AjaxTilesView: name 'specifyPhone'

      when i try to specify 'body' as render fragment, body attribute gets rendered, but without handsetTable attribute. I can see the exception in the log: org.apache.tiles.jsp.taglib.NoSuchAttributeException: Attribute 'handsetTable' not found.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              miceuz miceuz
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: