[
https://issues.apache.org/jira/browse/WW-4161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15131993#comment-15131993
]
Christoph Nenning commented on WW-4161:
---------------------------------------
Seems reasonable to me. It helps in the case that there is a tiles-definiton in
tiles.xml but the action is just not configured to use that definition.
As I read "conventions" in the title of this issue I was thinking something
like:
- look if there is a tiles-layout that can be used
- look if that layout has an attribute like "content" or "body"
- look if there is a jsp or ftl with the name of the action
- create a new tiles-definition with found layout and set content/body to
jsp/ftl
But actually I'm not a big fan of such conventions as it makes it hard to
predict what happens. I prefer to explicitly configure stuff with annotations,
as in WW-4594.
> Incorporate tiles3 into conventions, tutorial (and add code to tiles3 plugin)
> -----------------------------------------------------------------------------
>
> Key: WW-4161
> URL: https://issues.apache.org/jira/browse/WW-4161
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - Tiles
> Reporter: Ken McWilliams
> Fix For: 2.5
>
> Attachments: struts2-tiles-annotations.patch,
> struts2-tiles-annotations.patch
>
>
> There is a description found here:
> http://stackoverflow.com/questions/11161194/freemarker-and-struts2-tags
> It would be good if the struts2 website could turn the following into a
> tutorial, possibly some of the code could be included into the tile3 plugin
> but I'm not convinced at this time that should be done.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)