Files
ofbiz-framework/framework/webtools/widget/PortalAdmForms.xml
T
Bruno Busco 16388ee23a Commented lookup reference to "LookupUserLoginAndPartyDetails" in the EditPortalPage form.
This lookup was not present (in the same file) and caused an exception whenever the form was showed.
I did not change it to reference to the LookupUserLoginAndPartyDetails in the Party component because this would add a framework dependence from Party.
If we decide to put a part of the Party component in the framework the lookup can be used again.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1022725 13f79535-47bb-0310-9956-ffa450edef68
2010-10-14 21:26:40 +00:00

98 lines
6.0 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.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="FindPortalPages" type="single" target="FindPortalPage" default-entity-name="PortalPage">
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
<field name="portalPageId" position="1" title="${uiLabelMap.CommonId}"><text-find/></field>
<field name="originalPortalPageId" position="2"><text-find/></field>
<field name="portalPageName" title="${uiLabelMap.CommonName}"><text-find/></field>
<field name="parentPortalPageId" position="2"><text-find/></field>
<field name="description"><text-find/></field>
<field name="securityGroupId" position="2" title="${uiLabelMap.CommonSecurityGroupId}"><text-find/></field>
<field name="searchButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListPortalPages" type="list" list-name="listIt" paginate-target="FindPortalPage" separate-columns="true"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<service service-name="performFind" result-map-list="listIt" >
<field-map field-name="inputFields" from-field="parameters"/>
<field-map field-name="entityName" value="PortalPage"/>
<field-map field-name="orderBy" from-field="parameters.sortField"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
<field name="portalPageId" title="${uiLabelMap.CommonId}" sort-field="true">
<hyperlink description="${portalPageId}" target="EditPortalPage">
<parameter param-name="portalPageId"/>
</hyperlink>
</field>
<field name="portalPageName" use-when="ownerUserLoginId.equals(&quot;_NA_&quot;)" title="${uiLabelMap.CommonName}" sort-field="true"><display/></field>
<field name="portalPageName" use-when="!ownerUserLoginId.equals(&quot;_NA_&quot;)" title="${uiLabelMap.CommonName}" id-name="portalPageName" widget-style="tabletext" sort-field="true">
<display>
<in-place-editor url="updatePortalPage" cancel-control="button" saving-text="Updating..." text-between-controls=" ">
<simple-editor/>
<field-map field-name="portalPageId" from-field="portalPageId"/>
</in-place-editor>
</display>
</field>
<field name="description" use-when="ownerUserLoginId.equals(&quot;_NA_&quot;)" title="${uiLabelMap.CommonDescription}" widget-style="tabletext" sort-field="true"><display/></field>
<field name="description" use-when="!ownerUserLoginId.equals(&quot;_NA_&quot;)" title="${uiLabelMap.CommonDescription}" id-name="portalDescription" widget-style="tabletext" sort-field="true">
<display>
<in-place-editor url="updatePortalPage" cancel-control="button" saving-text="Updating..." text-between-controls=" ">
<simple-editor/>
<field-map field-name="portalPageId" from-field="portalPageId"/>
</in-place-editor>
</display>
</field>
<field name="parentPortalPageId" sort-field="true"><display/></field>
<field name="sequenceNum" sort-field="true"><display/></field>
<field name="originalPortalPageId" sort-field="true"><display/></field>
<field name="ownerUserLoginId" sort-field="true"><display/></field>
<field name="securityGroupId" title="${uiLabelMap.CommonSecurityGroupId}" sort-field="true"><display/></field>
<field name="deleteLink" use-when="originalPortalPageId!=null" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" >
<hyperlink target="deletePortalPage" description="${uiLabelMap.CommonRevertPortalPage}">
<parameter param-name="portalPageId"/>
<parameter param-name="parentPortalPageId" from-field="parameters.parentPortalPageId"/>
</hyperlink>
</field>
</form>
<form name="EditPortalPage" type="single" target="${targetPortalPage}" default-map-name="portalPage">
<field name="portalPageId" use-when="!&quot;${portalPage.portalPageId}&quot;.equals(&quot;&quot;)" position="1"><display/></field>
<field name="portalPageId" use-when="&quot;${portalPage.portalPageId}&quot;.equals(&quot;&quot;)" position="1"><text/></field>
<field name="originalPortalPageId" position="2"><text/></field>
<field name="ownerUserLoginId">
<!-- <lookup target-form-name="LookupUserLoginAndPartyDetails"/> -->
<text/>
</field>
<field name="parentPortalPageId" position="2"><text/></field>
<field name="portalPageName"><text/></field>
<field name="description" position="2"><text size="60"/></field>
<field name="sequenceNum"><text/></field>
<field name="saveButton" position="2"><submit button-type="button"/></field>
</form>
</forms>