Added UiLabels resources loading in Porlets.
All Portlet screens should always load all needed UI resources since they can be rendered in different PortalPages that cannot be aware of what resources are needed. This change will allow to eliminate all UI label resources loading in MyPortal decorators so that MyPortal will not depend on so many other components. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -24,6 +24,7 @@ under the License.
|
||||
<screen name="ExamplePortlet1">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<!-- TODO: figure out why this isn't getting the request object and requestAttributes is not updated either: <script location="component://common/script/org/ofbiz/common/PortalPageMethods.xml#getPortletAttributes"/>-->
|
||||
<script location="component://common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy"/>
|
||||
</actions>
|
||||
@@ -36,6 +37,9 @@ under the License.
|
||||
|
||||
<screen name="ExamplePortlet2">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<label text="${uiLabelMap.ExamplePortletSecond}"/>
|
||||
</widgets>
|
||||
@@ -45,6 +49,7 @@ under the License.
|
||||
<screen name="ExamplePortlet3">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<script location="component://common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
|
||||
Reference in New Issue
Block a user