Spring Framework
  1. Spring Framework
  2. SPR-10195

ClassCastException while using completeAutoload in Tiles 3

    Details

      Description

      Using tiles 3, in the TilesConfigurer class, afterPropertiesSet() method, if completeAutoload is set to true, the tiles container is assumed to be an instance of BasicTilesContainer. However, the createDecoratedContainer(TilesContainer, ApplicationContext) implementation in org.apache.tiles.extras.complete.CompleteAutoloadTilesContainerFactory (which is called by the createContainer(ApplicationContext) method in org.apache.tiles.factory.BasicTilesContainerFactory wraps the BasicTilesContainer with CachingTilesContainer, so when this is cast in TilesConfigurer, a ClassCastException is thrown

      1. VAjaxTilesView.java
        10 kB
        Tomasz Trębski
      2. VFlowAjaxTilesView.java
        5 kB
        Tomasz Trębski

        Activity

        Show
        Alaa Nassef added a comment - https://github.com/SpringSource/spring-framework/pull/216
        Hide
        Tomasz Trębski added a comment -

        Recently I've developed a workaround to support Tiles3 in my application.
        I found something similar somewhere in the web and adjusted it to my needs. Everything depends on TilesView from Tiles3.
        Maybe it will be helpful when developing a solution, because I had to revert to my own implemention after upgrading to Spring Web Flow 2.4.0.RC1

        VAjaxTilesView.java
        VFlowAjaxTilesView.java

        Best regards.

        Show
        Tomasz Trębski added a comment - Recently I've developed a workaround to support Tiles3 in my application. I found something similar somewhere in the web and adjusted it to my needs. Everything depends on TilesView from Tiles3. Maybe it will be helpful when developing a solution, because I had to revert to my own implemention after upgrading to Spring Web Flow 2.4.0.RC1 VAjaxTilesView.java VFlowAjaxTilesView.java Best regards.

          People

          • Assignee:
            Rossen Stoyanchev
            Reporter:
            Alaa Nassef
            Last updater:
            Tomasz Trębski
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              3 weeks ago