![]() |
|
|
|
|
Change By:
|
Tobias Mattsson
(04/Apr/14 5:52 PM)
|
|
Description:
|
Its common that many templates in a project have the same set of areas and it would be very useful if you could define them only once. Taking advantage of the class hierarchy is one way of doing this, just like blossom dialogs
inherits tabs from the superclass
.
For example:
{code} public abstract class Superclass { @Controller @Area("headerArea") public static class HeaderArea { @RequestMapping("/headerArea") public String render() { return "areas/cpHeaderArea"; } } }
@Controller @Template(...) public class InheritedClass extends Superclass { //... } {code}
Implementation wise this would mean inspecting the
It is however not possible to extend a
class
hierarchy in: info
and override a method annotated with @RequestMapping
.
magnolia.module.blossom.template.DetectedHandlersMetaData#getAreasByEnclosingClass
Which
This due to a limitation in Spring MVC which fails to see that the method in the parent
is
called from: info
overridden
.
magnolia.module.blossom.template.TemplateDefinitionBuilder#buildAreaDefinitionsForTemplate
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <
[email protected]>
----------------------------------------------------------------