Using this widget, a PortalPage can now be easily rendered in any screen. At the bottom of the page an "Edit ON/OFF" button can be used to switch the PortalPage edit mode ON and OFF so that the Portal Page can be edited "in place". All the portlet editing requests are handled using the "save-last-view" request attribute so that a dedicated screen can be shown to set the Portlet attributes and the column width and, when submitted, the user is taken back to the portal page he was editing. Those new requests will be used in a later commit to eliminate all the duplicated ****Adm requests that have been introduced when the Webtools portal admin screen has been created. A simple use of the widget has been added in the Example application. TODO: - At the moment the portal page editing is performed on the portal page itself and no portal derivation from the "main" one is performed. This will be done in a later commit. - The portlet moving controls both manually and by drag and drop have not been implemented yet. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@998570 13f79535-47bb-0310-9956-ffa450edef68
52 lines
1.9 KiB
XML
52 lines
1.9 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="ExamplePortlet1Edit" extends="CommonPortletEdit" extends-resource="component://common/widget/PortletEditForms.xml">
|
|
<field name="ItemsToShow">
|
|
<drop-down allow-empty="false">
|
|
<option key="5"/>
|
|
<option key="15"/>
|
|
<option key="20"/>
|
|
<option key="25"/>
|
|
<option key="30"/>
|
|
<option key="35"/>
|
|
</drop-down>
|
|
</field>
|
|
<field name="SpecificTitle">
|
|
<text/>
|
|
</field>
|
|
<field name="updateButton"><submit/></field>
|
|
</form>
|
|
|
|
<form name="ExamplePortlet3Edit" extends="CommonPortletEdit" extends-resource="component://common/widget/PortletEditForms.xml">
|
|
<field name="SpecificTitle">
|
|
<text/>
|
|
</field>
|
|
<field name="SpecificSubTitle">
|
|
<text/>
|
|
</field>
|
|
<field name="updateButton"><submit/></field>
|
|
</form>
|
|
|
|
</forms>
|