update of portal pages with including column support and now using the 'normal' ofbiz interface

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724618 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2008-12-09 06:17:35 +00:00
parent f7b4614553
commit 54a5a1094a
18 changed files with 306 additions and 71 deletions
@@ -22,27 +22,30 @@ under the License.
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="main-decorator">
<!-- The main-decorator screen 'wraps' or 'decorates' all of the screens in the
Example component. It is also decorated - by the GlobalDecorator screen. -->
<section>
<actions>
<!-- base/top/most specific map first, then more common map added for shared labels.
Setting things up this way enables a component to redefine the more common
UI labels. -->
<!-- base/top/specific map first, then more common map added for shared labels -->
<property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<!-- The layoutSettings field is a Map that is used to pass variables and layout
information to the GlobalDecorator and any templates that it uses. -->
<set field="layoutSettings.companyName" from-field="uiLabelMap.ExampleCompanyName" global="true"/>
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.ExampleCompanySubtitle" global="true"/>
<!-- layoutSettings.headerImageUrl can be used to specify an application specific logo; if not set,
then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. -->
then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. -->
<!--<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.jpg" global="true"/>-->
<!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
<!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
<!-- TODO: Use transform to specify component URI -->
<set field="layoutSettings.companyName" from-field="uiLabelMap.ExampleCompanyName" global="true"/>
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.ExampleCompanySubtitle" global="true"/>
<set field="activeApp" value="example" global="true"/>
<set field="applicationMenuName" value="ExampleAppBar" global="true"/>
<set field="applicationMenuLocation" value="component://example/widget/example/ExampleMenus.xml" global="true"/>
<!--set field="applicationMenuName" value="ExampleAppBar" global="true"/>
<set field="applicationMenuLocation" value="component://example/widget/example/ExampleMenus.xml" global="true"/-->
<set field="appheaderTemplate" value="component://common/webcommon/portal/appheader.ftl"/>
<entity-and entity-name="PortalPage" list-name="pages">
<field-map field-name="ownerUserLoginId" env-name="userLogin.userLoginId"/>
</entity-and>
</actions>
<widgets>
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
@@ -175,19 +178,7 @@ under the License.
the user. -->
<section>
<widgets>
<decorator-screen name="main-decorator">
<decorator-section name="body">
<screenlet title="${uiLabelMap.ExampleMainPage}">
<section>
<condition><if-empty field-name="userLogin"/></condition>
<widgets>
<container><label text="${uiLabelMap.ExampleMessage}"/></container>
</widgets>
</section>
<label text="${uiLabelMap.ExampleWelcome}"/>
</screenlet>
</decorator-section>
</decorator-screen>
<include-screen name="FindExample" location="component://example/widget/example/ExampleScreens.xml"/>
</widgets>
</section>
</screen>
@@ -25,7 +25,7 @@ under the License.
<section>
<actions>
<set field="layoutSettings.styleSheets[+0]" value="/images/prototypejs/scriptaculouscontrols.css" global="true"/>
<set field="headerItem" value="AjaxExample"/>
<set field="headerItem" value="Ajax Examples"/>
<set field="titleProperty" value="PageTitleFindExample"/>
<set field="exampleCtx" from-field="parameters"/>
</actions>
@@ -25,7 +25,7 @@ under the License.
<screen name="FindExampleFeature">
<section>
<actions>
<set field="headerItem" value="ExampleFeature"/>
<set field="headerItem" value="Feature"/>
<set field="titleProperty" value="PageTitleFindExampleFeature"/>
<set field="exampleFeatureCtx" from-field="parameters"/>
</actions>
@@ -21,14 +21,13 @@ under the License.
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
<menu name="ExampleAppBar" title="${uiLabelMap.ExampleApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<!--menu name="ExampleAppBar" title="${uiLabelMap.ExampleApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
<menu-item name="Example" title="${uiLabelMap.ExampleExample}"><link target="FindExample"/></menu-item>
<menu-item name="ExampleFeature" title="${uiLabelMap.ExampleFeature}"><link target="FindExampleFeature"/></menu-item>
<menu-item name="FormWidgetExamples" title="${uiLabelMap.ExampleFormWidgetExamples}"><link target="FormWidgetExamples"/></menu-item>
<menu-item name="AjaxExample" title="Ajax Examples"><link target="authview/findExampleAjax"/></menu-item>
<!-- Right Side Items -->
<menu-item name="Dashboard" title="Dashboard" align-style="opposed"><link target="dashboard"/></menu-item>
</menu>
<menu-item name="Dashboard" title="Dashboard" align-style="opposed"><link target="ManagePortalPages?portalPageId=${currentPortalPage.portalPageId}"/></menu-item>
</menu-->
<menu name="EditExample" default-selected-style="selected" type="simple"
menu-container-style="button-bar tab-bar" selected-menuitem-context-field-name="tabButtonItem">
@@ -148,5 +148,35 @@ under the License.
</widgets>
</section>
</screen>
<screen name="DisplayExamplePage">
<section>
<actions>
<set field="portalPageId" from-field="parameters.portalPageId" default-value="DEFAULT"/>
<set field="headerItem" from-field="portalPageId"/>
<entity-one entity-name="PortalPage" value-name="currentPortalPage"/>
<entity-condition entity-name="PortalPage" list-name="portalPageList">
<condition-expr field-name="ownerUserLoginId" env-name="userLogin.userLoginId"/>
</entity-condition>
<set field="portalPages[]" from-field="selectedPortalPage"/>
<entity-condition entity-name="PortalPageColumn" list-name="portalPageColumnList">
<condition-expr field-name="portalPageId" env-name="portalPageId"/>
<order-by field-name="columnSeqId"/>
</entity-condition>
<entity-condition entity-name="PortalPagePortletView" list-name="portalPagePortletViewList">
<condition-expr field-name="portalPageId" env-name="portalPageId"/>
<order-by field-name="sequenceNum"/>
</entity-condition>
</actions>
<widgets>
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific><html><html-template location="component://common/webcommon/portal/portalPage.ftl"/></html></platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>
@@ -24,7 +24,7 @@ under the License.
<screen name="FormWidgetExamples">
<section>
<actions>
<set field="headerItem" value="FormWidgetExamples"/>
<set field="headerItem" value="Form Widget Examples"/>
<set field="titleProperty" value="PageTitleFormWidgetExamples"/>
</actions>
<widgets>