[
https://issues.apache.org/jira/browse/WOOKIE-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ross Gardler updated WOOKIE-290:
--------------------------------
I've already improved the case here quite significantly in the ANT based system
we currently have. I suspect these updates will have fixed the issue but full
testing is required.
I can certainly report that I know have a (pre-alpha) three layer template
based widget that appears to work. One day I'll find the time to implement a
test widget to demonstrate this and allow us to close this issue. If anyone
fancies doing this let me know and I'll provide some pointers.
> Widget templates not allowing content to be overwritten properly
> ----------------------------------------------------------------
>
> Key: WOOKIE-290
> URL: https://issues.apache.org/jira/browse/WOOKIE-290
> Project: Wookie
> Issue Type: Bug
> Components: Template
> Affects Versions: 0.9.2
> Reporter: Ross Gardler
> Priority: Minor
>
> When there a widget template depends on another there is a break in the
> ability to override content. Consider, for example, the login widget which
> extends the base widget. Content provided by the base template or the widget
> definition is correctly used but content from the login template is not.
> This is because the base template defines the token (e.g. content.primary) in
> its template_build.xml from either the base template or the widget
> definitions. Once defined the token is not overwritten in the login template.
> We need to change the way properties are defined. The correct process (in
> this example) would be:
> - copy all content files from base template to build folder
> - copy all files from login template (overwriting any that already exist) to
> build folder
> - copy all files from widget definition (overwriting any that already exist)
> to build folder
> - define the properties by loading executing each of the appropriate targets
> in each template_build.xml
> - build the widget using the content files in the build folder
--
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