[
https://issues.apache.org/jira/browse/TREQ-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433129#comment-13433129
]
Nicolas Le Bas commented on TREQ-12:
------------------------------------
OK, I believe I see your point: you want to use the existing spring
ApplicationContext, that you may have customized to use a different
ResourceLoader, instead of creating a new one like WildcardSAC does.
This point to a larger issue IMHO: Tiles Request is not extensible enough when
it comes to resource loading. We have some code to get resources from the
ServletContext, from the Classpath, from Spring, but all of these are excluding
each other because of the way it is implemented, and in some situations the
code is duplicated. I think a strategy pattern would improve this: TREQ-17.
PS: you do not need the ServletContextFactoryBean in a WebApplicationContext,
it is implicitly available under the name "servletContext". If you want a
single line declaration, perhaps this can work:
{code}<bean
class="org.apache.tiles.request.servlet.wildcard.WildcardServletApplicationContext"
autowire="constructor" />{code}
There's an error message in TilesConfigurer that needs to be updated, too.
PPS: you can delegate to ServletApplicationContext instead of the Wildcard
version. Same effect here.
> Spring integration
> ------------------
>
> Key: TREQ-12
> URL: https://issues.apache.org/jira/browse/TREQ-12
> Project: Tiles Request
> Issue Type: Improvement
> Reporter: Nicolas Le Bas
> Attachments: 0002-Fixes-and-optimizations.patch
>
>
> Spring provides an integration with tiles-2. We need one for tiles-3, i.e.
> integration with the Request API.
> Tentative implementation here:
> https://github.com/nlebas/tiles-request/tree/tiles-spring
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira