As discussed in the dev list, removed the experimental jcr component; its development will continue in the proper branch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1347478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -294,32 +294,6 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CommonExampleJackrabbitDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ExampleJackrabbit" />
|
||||
<set field="labelFieldName" value="exampleTypeId" />
|
||||
<set field="dataFieldName" value="total" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator"
|
||||
location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<include-menu name="ExampleJackrabbit" location="component://example/widget/example/ExampleMenus.xml"/>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<container style="clear" />
|
||||
<section>
|
||||
<widgets>
|
||||
<decorator-section-include name="body" />
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="main">
|
||||
<!-- This is the screen for the Main page in the Example component. A common pattern
|
||||
in OFBiz is to have each component include a Main page as a starting point for
|
||||
|
||||
@@ -1,167 +0,0 @@
|
||||
<?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="ListRepositoryData" type="list" list-name="repositoryContent" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<field name="path">
|
||||
<hyperlink target="EditRepositoryContent" description="${path}">
|
||||
<parameter param-name="contentId" from-field="contentId" />
|
||||
<parameter param-name="path" from-field="path" />
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="contentId">
|
||||
<hyperlink target="EditRepositoryContent" description="${contentId}">
|
||||
<parameter param-name="contentId" from-field="contentId" />
|
||||
<parameter param-name="path" from-field="path" />
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="contentTypeId">
|
||||
<display />
|
||||
</field>
|
||||
<field name="statusId">
|
||||
<display />
|
||||
</field>
|
||||
<field name="statusId">
|
||||
<display />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="SelectContentObject" type="single" target="">
|
||||
<field name="contentDropDown" position="1">
|
||||
<drop-down ><list-options key-name="contentList" description="${contentList}" list-name="parameters.contentList" list-entry-name="contentList"/></drop-down>
|
||||
</field>
|
||||
|
||||
<!--
|
||||
<field name="languageDropDown" position="2" title="">
|
||||
<drop-down><list-options key-name="languageList" list-name="parameters.languageList"/></drop-down>
|
||||
</field>
|
||||
-->
|
||||
<field name="submit" position="2"><submit/></field>
|
||||
</form>
|
||||
|
||||
<form name="AddRepositoryData" type="single" target="StoreNewRepositoryData">
|
||||
<field name="path" title="${uiLabelMap.ExampleRepositoryNode}" tooltip="${uiLabelMap.ExampleAddNewNodePath}">
|
||||
<text />
|
||||
</field>
|
||||
<field name="msgLocale" title="${uiLabelMap.CommonChooseLanguage}" >
|
||||
<drop-down allow-empty="true" ><list-options key-name="localeId" list-name="parameters.localeList" description="${localeId}"/></drop-down>
|
||||
</field>
|
||||
<field name="title">
|
||||
<text />
|
||||
</field>
|
||||
<field name="message" title="${uiLabelMap.ExampleRepositoryMessage}">
|
||||
<textarea visual-editor-enable="true" />
|
||||
</field>
|
||||
<field name="submit">
|
||||
<submit />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="UploadRepositoryFileData" type="upload" target="StoreNewRepositoryFileData">
|
||||
<field name="path" title="${uiLabelMap.ExampleRepositoryFolder}" tooltip="${uiLabelMap.ExampleAddNewNodePath}">
|
||||
<text></text>
|
||||
</field>
|
||||
<field name="fileData" title="${uiLabelMap.ExampleRepositoryFile}">
|
||||
<file size="28"></file>
|
||||
</field>
|
||||
<field name="fileLocale" title="${uiLabelMap.CommonChooseLanguage}" >
|
||||
<drop-down allow-empty="true" ><list-options key-name="localeId" list-name="parameters.localeList" description="${localeId}"/></drop-down>
|
||||
</field>
|
||||
<field name="description"><textarea cols="30"/></field>
|
||||
<field name="submit">
|
||||
<submit />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="EditRepositoryDataChangeLanguage" type="single" target="EditRepositoryContent" default-entity-name="Content">
|
||||
<field name="path" title="${uiLabelMap.ExampleRepositoryNode}" map-name="content">
|
||||
<hidden />
|
||||
</field>
|
||||
<field name="language" title="${uiLabelMap.CommonChooseLanguage}" >
|
||||
<drop-down allow-empty="false" current="first-in-list" current-description="${parameters.selectedLanguage}"><list-options key-name="languageList" description="${languageList}" list-name="parameters.languageList" list-entry-name="languageList"/></drop-down>
|
||||
</field>
|
||||
<field name="versions" >
|
||||
<drop-down allow-empty="true" current="selected" no-current-selected-key="${parameters.version}"><list-options key-name="versionList" description="${versionList}" list-name="parameters.versionList" list-entry-name="versionList"/></drop-down>
|
||||
</field>
|
||||
<field name="submit" ><submit/></field>
|
||||
</form>
|
||||
|
||||
<form name="EditRepositoryData" type="single" target="UpdateRepositoryData" >
|
||||
<field name="title">
|
||||
<display />
|
||||
</field>
|
||||
<field name="path" title="${uiLabelMap.ExampleRepositoryNode}" >
|
||||
<display />
|
||||
</field>
|
||||
<field name="language" title="${uiLabelMap.CommonLanguageTitle}">
|
||||
<display />
|
||||
</field>
|
||||
<field name="pubDate" >
|
||||
<display />
|
||||
</field>
|
||||
<field name="createDate" >
|
||||
<display />
|
||||
</field>
|
||||
<field name="version" >
|
||||
<display />
|
||||
</field>
|
||||
<field name="content" title="${uiLabelMap.ExampleRepositoryMessage}" >
|
||||
<textarea visual-editor-enable="true" default-value="${parameters.message}"/>
|
||||
</field>
|
||||
<field name="submit">
|
||||
<submit />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="ScanRepositoryStructure" type="list" list-name="listIt" default-entity-name="Content" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<field name="path">
|
||||
<display />
|
||||
</field>
|
||||
<field name="primaryNodeType">
|
||||
<display />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="ExampleJackrabbitShowFileInformation" type="single" list-name="listIt" default-entity-name="Content" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<field name="fileName">
|
||||
<display />
|
||||
</field>
|
||||
<field name="fileMimeType" use-when="parameters.get("fileMimeType")!=null">
|
||||
<display />
|
||||
</field>
|
||||
<field name="fileLastModified" use-when="parameters.get("fileLastModified")!=null">
|
||||
<display />
|
||||
</field>
|
||||
<field name="fileCreationDate">
|
||||
<display />
|
||||
</field>
|
||||
</form>
|
||||
|
||||
<form name="QueryRepositoryDataForm" type="single" target="QueryRepositoryData">
|
||||
<field name="queryData" ><text /></field>
|
||||
<field name="submit"><submit/></field>
|
||||
</form>
|
||||
|
||||
<form name="ExampleJackrabbitShowQueryResults" type="list" target="EditRepositoryContent" list-name="queryResult" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<field name="path" title="${uiLabelMap.ExampleRepositoryNode}" ><hyperlink target="EditRepositoryContent" description="${path}"><parameter param-name="path"/></hyperlink></field>
|
||||
<field name="score" ><display /></field>
|
||||
</form>
|
||||
</forms>
|
||||
@@ -1,213 +0,0 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
|
||||
<screen name="ListRepositoryData">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitListNodes" />
|
||||
<entity-condition list="repositoryContent" entity-name="Content">
|
||||
<condition-expr field-name="contentTypeId" operator="equals" value="REPOSITORY"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ListRepositoryData" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitShowContentData">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitShowContentData" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://example/webapp/example/jackrabbit/ContentChooser.ftl"/></html>
|
||||
</platform-specific>
|
||||
</container>
|
||||
<container>
|
||||
<label>${uiLabelMap.ExampleJackrabbitQueryForContent}</label>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="QueryRepositoryDataForm" />
|
||||
</container>
|
||||
<container>
|
||||
<label>${uiLabelMap.ExampleJackrabbitTryRightClick}</label>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://example/webapp/example/jackrabbit/JackrabbitDataTree.ftl"/></html>
|
||||
</platform-specific>
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitAddData">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitAddData" />
|
||||
<script location="component://example/webapp/example/WEB-INF/actions/includes/PrepareLocalesForDropDown.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="AddRepositoryData" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitUploadFileData">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitUploadFileData" />
|
||||
<script location="component://example/webapp/example/WEB-INF/actions/includes/PrepareLocalesForDropDown.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="UploadRepositoryFileData" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitScanRepositoryStructure">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitScanRepositoryStrukture" />
|
||||
<set field="listIt" from-field="parameters.listIt"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ScanRepositoryStructure" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitEditRepositoryContent">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitMainPage" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="EditRepositoryDataChangeLanguage" />
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="EditRepositoryData" />
|
||||
<link target="RemoveRepositoryNode" text="remove" style="buttontext">
|
||||
<parameter param-name="repositoryNode" from-field="content.repositoryNode" />
|
||||
<parameter param-name="contentId" from-field="content.contentId"/>
|
||||
</link>
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitShowUploadedFiles">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitShowUploadedFiles" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<label>${uiLabelMap.ExampleJackrabbitTryRightClick}</label>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://example/webapp/example/jackrabbit/JackrabbitFileTree.ftl"/></html>
|
||||
</platform-specific>
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitShowFileInformation">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitShowUploadedFiles" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ExampleJackrabbitShowFileInformation" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ExampleJackrabbitShowQueryResult">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleExampleJackrabbit" />
|
||||
<set field="tabButtonItem" value="ExampleJackrabbitShowContentData" />
|
||||
<set field="queryResult" from-field="parameters.queryResult"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container>
|
||||
<include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ExampleJackrabbitShowQueryResults" />
|
||||
</container>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
</screens>
|
||||
@@ -48,7 +48,6 @@ under the License.
|
||||
<menu-item name="ExampleCharts" title="Chart examples">
|
||||
<link target="ExampleBarChart"/>
|
||||
</menu-item>
|
||||
<menu-item name="ExampleJackrabbit" title="${uiLabelMap.PageTitleExampleJackrabbit}"><link target="ExampleJackrabbitShowContentData"/></menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="EditExample" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
@@ -102,12 +101,4 @@ under the License.
|
||||
<menu-item name="ExampleBarChart" title="Bar chart"><link target="ExampleBarChart"/></menu-item>
|
||||
<menu-item name="ExamplePieChart" title="Pie chart"><link target="ExamplePieChart"/></menu-item>
|
||||
</menu>
|
||||
|
||||
<menu name="ExampleJackrabbit" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="ExampleJackrabbitShowContentData" title="${uiLabelMap.ExampleJackrabbitShowContentData}"><link target="ExampleJackrabbitShowContentData"/></menu-item>
|
||||
<menu-item name="ExampleJackrabbitAddData" title="${uiLabelMap.ExampleAddNewContentEntry}"><link target="ExampleJackrabbitAddData"/></menu-item>
|
||||
<menu-item name="ExampleJackrabbitUploadFileData" title="${uiLabelMap.ExampleJackrabbitUploadFileData}"><link target="ExampleJackrabbitUploadFileData"/></menu-item>
|
||||
<menu-item name="ExampleJackrabbitShowUploadedFiles" title="${uiLabelMap.ExampleJackrabbitShowUploadedFiles}"><link target="ExampleJackrabbitShowUploadedFiles"/></menu-item>
|
||||
<menu-item name="ExampleJackrabbitScanRepositoryStrukture" title="${uiLabelMap.ExampleScanRepositoryStrukture}"><link target="ExampleJackrabbitScanRepositoryStructure"/></menu-item>
|
||||
</menu>
|
||||
</menus>
|
||||
|
||||
Reference in New Issue
Block a user