[
https://issues.apache.org/jira/browse/OFBIZ-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549461
]
Jacopo Cappellato commented on OFBIZ-1410:
------------------------------------------
Adrian,
it is an interesting work and I'd say you can commit it.
However, I think that, using as an example the assetMaint report you have
provided, it would be nice to specify the header and footer templates in the
screen definition instead of specifying them in the ftl template.
Instead of (in the ftl file):
<fo:page-sequence master-reference="letter-portrait">
<#include "component://common/webcommon/includes/fo/basic-header.ftl"/>
<#include "component://common/webcommon/includes/fo/basic-footer.ftl"/>
we could have (in the screen definition):
<decorator-screen name="GlobalFoDecorator"
location="component://common/widget/CommonScreens.xml">
<decorator-section name="header">
<platform-specific>
<html><html-template
location="component://common/webcommon/includes/fo/basic-header.ftl"/></html>
</platform-specific>
</decorator-section>
<decorator-section name="footer">
<platform-specific>
<html><html-template
location="component://common/webcommon/includes/fo/basic-footer.ftl"/></html>
</platform-specific>
</decorator-section>
<decorator-section name="body">
<platform-specific>
<html><html-template
location="component://assetmaint/webapp/assetmaint/assetmaint/printFixedAssetMaint.fo.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
Jacopo
> Improved xsl-fo Decorator
> -------------------------
>
> Key: OFBIZ-1410
> URL: https://issues.apache.org/jira/browse/OFBIZ-1410
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Adrian Crum
> Priority: Minor
> Attachments: asset_maint.patch, asset_maint.patch,
> fo_decorator.patch, fo_decorator.patch
>
>
> Improved xsl-fo screen widget decorator scheme. Set up to work more like the
> GlobalDecorator - complete with parameterized elements.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.