Added support for xsl-fo and xml templates to the platform-specific screen widget element. Now it is possible to define the same screen that can be rendered with different renderers. An example of this is the SimpleDecorator that is now used to render simple PDF report (xsl-fo), xml export and printer friendly html output. You can test it in the Edit Example screen (and some other screens as well): the PDF and Printer Friendly links in that page both share the same screen definition. Misc fixes to the widget FO and XML renderers, for issues found while testing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659935 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -67,6 +67,24 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleEditExample"/>
|
||||
<set field="tabButtonItem" value="EditExample"/>
|
||||
<set field="exampleId" from-field="parameters.exampleId"/>
|
||||
<entity-one entity-name="Example" value-name="example"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="SimpleDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<decorator-section name="body">
|
||||
<include-form name="EditExample" location="component://example/widget/example/ExampleForms.xml"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditExampleItems">
|
||||
<section>
|
||||
<actions>
|
||||
|
||||
Reference in New Issue
Block a user