Slightly improved example portlets.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1023451 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bruno Busco
2010-10-17 10:37:58 +00:00
parent 4f1d234a85
commit e06bb8f36a
2 changed files with 30 additions and 16 deletions
@@ -27,8 +27,19 @@ under the License.
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<label text="${uiLabelMap.ExamplePortletFirst}"/>
<label text="...${SpecificTitle}"/>
<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>
@@ -39,7 +50,8 @@ under the License.
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<label text="${uiLabelMap.ExamplePortletSecond}"/>
<screenlet title="${uiLabelMap.ExamplePortletSecond}">
</screenlet>
</widgets>
</section>
</screen>
@@ -50,15 +62,17 @@ under the License.
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
</actions>
<widgets>
<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 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>