Files
ofbiz-framework/framework/example/widget/example/PortletScreens.xml
T
Jacques Le Roux 849f4016e5 A patch from Nicolas Malin "Add LookupPortalPage on common components" https://issues.apache.org/jira/browse/OFBIZ-4260
To test :

    * apply patch
    * apply patch from OFBiz-4262
    * load seed
    * Go to example and add examplePortlet2 to an example pagePortal
    * Edit examplePortlet2

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096290 13f79535-47bb-0310-9956-ffa450edef68
2011-04-24 09:35:28 +00:00

100 lines
4.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="ExamplePortlet1">
<section>
<actions>
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<screenlet title="${uiLabelMap.ExamplePortletFirst}">
<section>
<condition>
<not><if-empty field="SpecificTitle"/></not>
</condition>
<widgets>
<label style="h2">${SpecificTitle}</label>
</widgets>
<fail-widgets>
<label style="h2">${uiLabelMap.ExampleNoAttributeSet}</label>
</fail-widgets>
</section>
</screenlet>
</widgets>
</section>
</screen>
<screen name="ExamplePortlet2">
<section>
<actions>
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
<set field="nextPortalPageId" from-field="nextPortalPageId" default-value=""/>
<set field="nextParentPortalPageId" from-field="nextParentPortalPageId" default-value="EXAMPLE"/>
</actions>
<widgets>
<screenlet title="${uiLabelMap.ExamplePortletSecond}">
<section>
<condition><not><if-empty field="nextPortalPageId"/></not></condition>
<widgets>
<link target="showPortalPage" text="${uiLabelMap.ExamplePortletGoToConfiguredPortalPage} : ${nextPortalPageId} ${uiLabelMap.CommonOf} ${nextParentPortalPageId}" >
<parameter param-name="portalPageId" from-field="nextPortalPageId"/>
<parameter param-name="parentPortalPageId" from-field="nextParentPortalPageId"/>
<image src="${iconsLocation}/application_go.png"/>
</link>
</widgets>
<fail-widgets>
<link target="editPortalPortletAttributes" text="${uiLabelMap.ExamplePortletAttributNeedToBeDefineClickHere}" >
<parameter param-name="portalPageId" from-field="parameters.portalPageId"/>
<parameter param-name="portalPortletId" value="EXAMPLE_2"/>
<parameter param-name="portletSeqId" value="00001"/>
<image src="${iconsLocation}/wrench_orange.png"/>
</link>
</fail-widgets>
</section>
</screenlet>
</widgets>
</section>
</screen>
<screen name="ExamplePortlet3">
<section>
<actions>
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<screenlet title="${uiLabelMap.ExamplePortletThird}">
<container style="leftclear">
<label style="h1" text="${uiLabelMap.ExamplePortletThird}"/>
</container>
<container style="leftclear">
<label style="h2" text="${uiLabelMap.ExamplePortletSpecificTitle}: ${SpecificTitle}"/>
</container>
<container style="leftclear">
<label style="h2" text="${uiLabelMap.ExamplePortletSpecificSubTitle}: ${SpecificSubTitle}"/>
</container>
</screenlet>
</widgets>
</section>
</screen>
</screens>