[OFBiz] SVN: r6850 - in trunk/applications/content: webapp/content/WEB-INF webapp/content/WEB-INF/actions/website webapp/content/WEB-INF/pagedefs webapp/content/website widget

jacopo@svn.ofbiz.org jacopo at svn.ofbiz.org
Sun Feb 26 05:35:49 CST 2006


Author: jacopo
Date: 2006-02-26 05:35:26 -0600 (Sun, 26 Feb 2006)
New Revision: 6850

Added:
   trunk/applications/content/webapp/content/website/WebSiteTabBar.ftl
   trunk/applications/content/widget/WebSiteScreens.xml
Removed:
   trunk/applications/content/webapp/content/WEB-INF/actions/website/EditWebSite.bsh
   trunk/applications/content/webapp/content/WEB-INF/actions/website/FindWebSite.bsh
   trunk/applications/content/webapp/content/WEB-INF/pagedefs/website/
   trunk/applications/content/webapp/content/website/EditWebSite.ftl
   trunk/applications/content/webapp/content/website/EditWebSiteParties.ftl
   trunk/applications/content/webapp/content/website/FindWebSite.ftl
Modified:
   trunk/applications/content/webapp/content/WEB-INF/actions/website/EditWebSiteParties.bsh
   trunk/applications/content/webapp/content/WEB-INF/controller.xml
   trunk/applications/content/webapp/content/website/WebSiteForms.xml
Log:
Converted the WebSite pages from JPublish to widgets.

Deleted: trunk/applications/content/webapp/content/WEB-INF/actions/website/EditWebSite.bsh
===================================================================
--- trunk/applications/content/webapp/content/WEB-INF/actions/website/EditWebSite.bsh	2006-02-26 08:33:04 UTC (rev 6849)
+++ trunk/applications/content/webapp/content/WEB-INF/actions/website/EditWebSite.bsh	2006-02-26 11:35:26 UTC (rev 6850)
@@ -1,54 +0,0 @@
-/*
- *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
- *
- *  Permission is hereby granted, free of charge, to any person obtaining a 
- *  copy of this software and associated documentation files (the "Software"), 
- *  to deal in the Software without restriction, including without limitation 
- *  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
- *  and/or sell copies of the Software, and to permit persons to whom the 
- *  Software is furnished to do so, subject to the following conditions:
- *
- *  The above copyright notice and this permission notice shall be included 
- *  in all copies or substantial portions of the Software.
- *
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
- *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
- *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
- *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
- *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT 
- *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
- *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- *@author     David E. Jones
- *@version    $Rev$
- *@since      2.2
- */
-
-import org.ofbiz.base.util.*;
-import org.ofbiz.entity.*;
-import org.ofbiz.security.*;
-import org.ofbiz.service.*;
-import org.ofbiz.entity.model.*;
-import org.ofbiz.widget.html.*;
-import org.ofbiz.widget.form.*;
-
-
-security = request.getAttribute("security");
-delegator = request.getAttribute("delegator");
-
-if(security.hasEntityPermission("CONTENTMGR", "_VIEW", session)) {
-    context.put("hasPermission", Boolean.TRUE);
-} else {
-    context.put("hasPermission", Boolean.FALSE);
-}
-
-webSiteId = request.getParameter("webSiteId");
-webSite = delegator.findByPrimaryKey("WebSite", UtilMisc.toMap("webSiteId", webSiteId));
-
-HtmlFormWrapper editWebSiteWrapper = new HtmlFormWrapper("/website/WebSiteForms.xml", "EditWebSite", request, response);
-editWebSiteWrapper.putInContext("webSite", webSite);
-editWebSiteWrapper.putInContext("webSiteId", webSiteId);
-
-context.put("webSiteId", webSiteId);
-context.put("webSite", webSite);
-context.put("editWebSiteWrapper", editWebSiteWrapper);

Modified: trunk/applications/content/webapp/content/WEB-INF/actions/website/EditWebSiteParties.bsh
===================================================================
--- trunk/applications/content/webapp/content/WEB-INF/actions/website/EditWebSiteParties.bsh	2006-02-26 08:33:04 UTC (rev 6849)
+++ trunk/applications/content/webapp/content/WEB-INF/actions/website/EditWebSiteParties.bsh	2006-02-26 11:35:26 UTC (rev 6850)
@@ -26,24 +26,7 @@
 
 import org.ofbiz.base.util.*;
 import org.ofbiz.entity.*;
-import org.ofbiz.security.*;
-import org.ofbiz.service.*;
-import org.ofbiz.entity.model.*;
-import org.ofbiz.widget.html.*;
-import org.ofbiz.widget.form.*;
 
-
-security = request.getAttribute("security");
-delegator = request.getAttribute("delegator");
-
-if(security.hasEntityPermission("CONTENTMGR", "_VIEW", session)) {
-    context.put("hasPermission", Boolean.TRUE);
-} else {
-    context.put("hasPermission", Boolean.FALSE);
-}
-
-String webSiteId = request.getParameter("webSiteId");
-GenericValue webSite = delegator.findByPrimaryKey("WebSite", UtilMisc.toMap("webSiteId", webSiteId));
 List webSiteRoles = null;
 List webSiteRoleDatas = new LinkedList();
 if (webSite != null) {
@@ -60,13 +43,4 @@
     }
 }
 
-HtmlFormWrapper updateWebSiteRoleWrapper = new HtmlFormWrapper("/website/WebSiteForms.xml", "UpdateWebSiteRole", request, response);
-updateWebSiteRoleWrapper.putInContext("webSiteRoleDatas", webSiteRoleDatas);
-
-HtmlFormWrapper addWebSiteRoleWrapper = new HtmlFormWrapper("/website/WebSiteForms.xml", "AddWebSiteRole", request, response);
-addWebSiteRoleWrapper.putInContext("webSite", webSite);
-
-context.put("webSiteId", webSiteId);
-context.put("webSite", webSite);
-context.put("updateWebSiteRoleWrapper", updateWebSiteRoleWrapper);
-context.put("addWebSiteRoleWrapper", addWebSiteRoleWrapper);
+context.put("webSiteRoleDatas", webSiteRoleDatas);

Deleted: trunk/applications/content/webapp/content/WEB-INF/actions/website/FindWebSite.bsh
===================================================================
--- trunk/applications/content/webapp/content/WEB-INF/actions/website/FindWebSite.bsh	2006-02-26 08:33:04 UTC (rev 6849)
+++ trunk/applications/content/webapp/content/WEB-INF/actions/website/FindWebSite.bsh	2006-02-26 11:35:26 UTC (rev 6850)
@@ -1,47 +0,0 @@
-/*
- *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
- *
- *  Permission is hereby granted, free of charge, to any person obtaining a 
- *  copy of this software and associated documentation files (the "Software"), 
- *  to deal in the Software without restriction, including without limitation 
- *  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
- *  and/or sell copies of the Software, and to permit persons to whom the 
- *  Software is furnished to do so, subject to the following conditions:
- *
- *  The above copyright notice and this permission notice shall be included 
- *  in all copies or substantial portions of the Software.
- *
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
- *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
- *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
- *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
- *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT 
- *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
- *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- *@author     David E. Jones
- *@version    $Rev$
- *@since      2.2
- */
-
-import org.ofbiz.base.util.*;
-import org.ofbiz.entity.*;
-import org.ofbiz.security.*;
-import org.ofbiz.service.*;
-import org.ofbiz.entity.model.*;
-import org.ofbiz.widget.html.*;
-import org.ofbiz.widget.form.*;
-
-security = request.getAttribute("security");
-delegator = request.getAttribute("delegator");
-
-if(security.hasEntityPermission("CONTENTMGR", "_VIEW", session)) {
-    context.put("hasPermission", Boolean.TRUE);
-} else {
-    context.put("hasPermission", Boolean.FALSE);
-}
-
-//webSites
-webSites = delegator.findAll("WebSite");
-context.put("webSites", webSites);
-

Modified: trunk/applications/content/webapp/content/WEB-INF/controller.xml
===================================================================
--- trunk/applications/content/webapp/content/WEB-INF/controller.xml	2006-02-26 08:33:04 UTC (rev 6849)
+++ trunk/applications/content/webapp/content/WEB-INF/controller.xml	2006-02-26 11:35:26 UTC (rev 6850)
@@ -1382,9 +1382,9 @@
     <view-map name="login" type="screen" page="component://content/widget/CommonScreens.xml#login"/>
     <view-map name="fonts.fo" page="/fonts.fo.ftl" type="fop"/>
     
-    <view-map name="FindWebSite" page="/website/FindWebSite.ftl" type="jpublish"/>
-    <view-map name="EditWebSite" page="/website/EditWebSite.ftl" type="jpublish"/>    
-    <view-map name="EditWebSiteParties" page="/website/EditWebSiteParties.ftl" type="jpublish"/>
+    <view-map name="FindWebSite" page="component://content/widget/WebSiteScreens.xml#FindWebSite" type="screen"/>
+    <view-map name="EditWebSite" page="component://content/widget/WebSiteScreens.xml#EditWebSite" type="screen"/>
+    <view-map name="EditWebSiteParties" page="component://content/widget/WebSiteScreens.xml#EditWebSiteParties" type="screen"/>
     
     <view-map name="EditContentPurpose" page="component://content/widget/content/ContentScreens.xml#EditContentPurpose" type="screen"/>
     <view-map name="EditContentRole" page="component://content/widget/content/ContentScreens.xml#EditContentRole" type="screen"/>

Deleted: trunk/applications/content/webapp/content/website/EditWebSite.ftl
===================================================================
--- trunk/applications/content/webapp/content/website/EditWebSite.ftl	2006-02-26 08:33:04 UTC (rev 6849)
+++ trunk/applications/content/webapp/content/website/EditWebSite.ftl	2006-02-26 11:35:26 UTC (rev 6850)
@@ -1,42 +0,0 @@
-<#--
- *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
- *
- *  Permission is hereby granted, free of charge, to any person obtaining a 
- *  copy of this software and associated documentation files (the "Software"), 
- *  to deal in the Software without restriction, including without limitation 
- *  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
- *  and/or sell copies of the Software, and to permit persons to whom the 
- *  Software is furnished to do so, subject to the following conditions:
- *
- *  The above copyright notice and this permission notice shall be included 
- *  in all copies or substantial portions of the Software.
- *
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
- *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
- *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
- *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
- *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT 
- *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
- *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- *@author     David E. Jones (jonesde at ofbiz.org)
- *@version    $Rev$
- *@since      2.2
--->
-
-<#if hasPermission>
-
-<#if webSiteId?has_content>
-  <div class='tabContainer'>
-  <a href="<@ofbizUrl>EditWebSite?webSiteId=${webSiteId}</@ofbizUrl>" class="tabButtonSelected">WebSite</a>
-  <a href="<@ofbizUrl>EditWebSiteParties?webSiteId=${webSiteId}</@ofbizUrl>" class="tabButton">Parties</a> 
-  </div>
-</#if>
-<div class="head1">Web Site <span class='head2'><#if (webSite.siteName)?has_content>"${webSite.siteName}"</#if> [ID:${webSiteId?if_exists}]</span></div>
-<a href="<@ofbizUrl>EditWebSite</@ofbizUrl>" class="buttontext">[New WebSite]</a>
-
-${editWebSiteWrapper.renderFormString()}
-
-<#else>
-  <h3>You do not have permission to view this page. ("CONTENTMGR_VIEW" or "CONTENTMGR_ADMIN" needed)</h3>
-</#if>

Deleted: trunk/applications/content/webapp/content/website/EditWebSiteParties.ftl
===================================================================
--- trunk/applications/content/webapp/content/website/EditWebSiteParties.ftl	2006-02-26 08:33:04 UTC (rev 6849)
+++ trunk/applications/content/webapp/content/website/EditWebSiteParties.ftl	2006-02-26 11:35:26 UTC (rev 6850)
@@ -1,50 +0,0 @@
-<#--
- *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
- *
- *  Permission is hereby granted, free of charge, to any person obtaining a 
- *  copy of this software and associated documentation files (the "Software"), 
- *  to deal in the Software without restriction, including without limitation 
- *  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
- *  and/or sell copies of the Software, and to permit persons to whom the 
- *  Software is furnished to do so, subject to the following conditions:
- *
- *  The above copyright notice and this permission notice shall be included 
- *  in all copies or substantial portions of the Software.
- *
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
- *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
- *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
- *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
- *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT 
- *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
- *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- *@author     David E. Jones (jonesde at ofbiz.org)
- *@version    $Rev$
- *@since      2.2
--->
-
-<#if hasPermission>
-
-<#if webSiteId?has_content>
-  <div class='tabContainer'>
-  <a href="<@ofbizUrl>EditWebSite?webSiteId=${webSiteId}</@ofbizUrl>" class="tabButton">WebSite</a>
-  <a href="<@ofbizUrl>EditWebSiteParties?webSiteId=${webSiteId}</@ofbizUrl>" class="tabButtonSelected">Parties</a>  
-  </div>
-</#if>
-
-<div class="head1">Parties <span class='head2'>for <#if (webSite.siteName)?has_content>"${webSite.siteName}"</#if> [ID:${webSiteId?if_exists}]</span></div>
-
-<a href="<@ofbizUrl>EditWebSite</@ofbizUrl>" class="buttontext">[New WebSite]</a>
-<br/>
-<br/>
-<#if webSiteId?has_content>
-${updateWebSiteRoleWrapper.renderFormString()}
-<br/>
-${addWebSiteRoleWrapper.renderFormString()}
-</#if>
-<br/>
-
-<#else>
- <h3>You do not have permission to view this page. ("CONTENTMGR_VIEW" or "CONTENTMGR_ADMIN" needed)</h3>
-</#if>

Deleted: trunk/applications/content/webapp/content/website/FindWebSite.ftl
===================================================================
--- trunk/applications/content/webapp/content/website/FindWebSite.ftl	2006-02-26 08:33:04 UTC (rev 6849)
+++ trunk/applications/content/webapp/content/website/FindWebSite.ftl	2006-02-26 11:35:26 UTC (rev 6850)
@@ -1,51 +0,0 @@
-<#--
- *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
- *
- *  Permission is hereby granted, free of charge, to any person obtaining a 
- *  copy of this software and associated documentation files (the "Software"), 
- *  to deal in the Software without restriction, including without limitation 
- *  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
- *  and/or sell copies of the Software, and to permit persons to whom the 
- *  Software is furnished to do so, subject to the following conditions:
- *
- *  The above copyright notice and this permission notice shall be included 
- *  in all copies or substantial portions of the Software.
- *
- *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
- *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
- *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
- *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
- *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT 
- *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
- *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- *@author     David E. Jones (jonesde at ofbiz.org)
- *@version    $Rev$
- *@since      2.2
--->
-
-<#if hasPermission>
-
-<div class="head1">WebSite List</div>
-<div><a href="<@ofbizUrl>EditWebSite</@ofbizUrl>" class="buttontext">[Create New WebSite]</a></div>
-<br/>
-<table border="1" cellpadding="2" cellspacing="0">
-  <tr>
-    <td><div class="tabletext"><b>Site&nbsp;Name&nbsp;[ID]</b></div></td>
-    <td><div class="tabletext">&nbsp;</div></td>
-  </tr>
-<#list webSites as webSite>
-  <tr valign="middle">
-    <td><div class="tabletext">&nbsp;<a href="<@ofbizUrl>EditWebSite?webSiteId=${webSite.webSiteId}</@ofbizUrl>" class="buttontext">${webSite.siteName} [${webSite.webSiteId}]</a></div></td>
-    <td>
-      <a href="<@ofbizUrl>EditWebSite?webSiteId=${webSite.webSiteId}</@ofbizUrl>" class="buttontext">
-      [Edit]</a>
-    </td>
-  </tr>
-</#list>
-</table>
-<br/>
-
-<#else>
-  <h3>You do not have permission to view this page. ("CONTENTMGR_VIEW" or "CONTENTMGR_ADMIN" needed)</h3>
-</#if>

Modified: trunk/applications/content/webapp/content/website/WebSiteForms.xml
===================================================================
--- trunk/applications/content/webapp/content/website/WebSiteForms.xml	2006-02-26 08:33:04 UTC (rev 6849)
+++ trunk/applications/content/webapp/content/website/WebSiteForms.xml	2006-02-26 11:35:26 UTC (rev 6850)
@@ -86,5 +86,12 @@
             <hyperlink target="removeWebSiteRole?webSiteId=${webSiteRole.webSiteId}&amp;partyId=${webSiteRole.partyId}&amp;roleTypeId=${webSiteRole.roleTypeId}&amp;fromDate=${webSiteRole.fromDate}"
                 description="[Delete]" also-hidden="false"/>
         </field>
-    </form>    
+    </form>
+    <form name="ListWebSites" default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="tabletext"
+        target="" title="" type="list" list-name="webSites" paginate-target="FindWebSite" paginate="true">
+        <field name="webSiteId" title="${uiLabelMap.CommonId}" widget-style="buttontext">
+            <hyperlink description="${webSiteId}" target="EditWebSite?webSiteId=${webSiteId}" also-hidden="false"/>
+        </field>
+        <field name="siteName" title="${uiLabelMap.CommonName}"><display/></field>
+    </form>
 </forms>

Added: trunk/applications/content/webapp/content/website/WebSiteTabBar.ftl
===================================================================
--- trunk/applications/content/webapp/content/website/WebSiteTabBar.ftl	2006-02-26 08:33:04 UTC (rev 6849)
+++ trunk/applications/content/webapp/content/website/WebSiteTabBar.ftl	2006-02-26 11:35:26 UTC (rev 6850)
@@ -0,0 +1,28 @@
+<#--
+$Id: $
+
+Copyright 2001-2006 The Apache Software Foundation
+
+Licensed 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.
+-->
+
+<#assign unselectedClassName = "tabButton">
+<#assign selectedClassMap = {page.tabButtonItem?default("void") : "tabButtonSelected"}>
+
+<#if webSite?has_content>
+    <div class='tabContainer'>
+        <a href="<@ofbizUrl>EditWebSite?webSiteId=${webSite.webSiteId}</@ofbizUrl>" class="${selectedClassMap.EditWebSite?default(unselectedClassName)}">WebSite</a>
+        <a href="<@ofbizUrl>EditWebSiteParties?webSiteId=${webSite.webSiteId}</@ofbizUrl>" class="${selectedClassMap.EditWebSiteParties?default(unselectedClassName)}">Parties</a> 
+    </div>
+    <div class="head1">Web Site <span class='head2'><#if (webSite.siteName)?has_content>"${webSite.siteName}"</#if> [ID:${webSite.webSiteId}]</span></div>
+</#if>


Property changes on: trunk/applications/content/webapp/content/website/WebSiteTabBar.ftl
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:keywords
   + "Date Rev Author URL Id"
Name: svn:eol-style
   + native

Added: trunk/applications/content/widget/WebSiteScreens.xml
===================================================================
--- trunk/applications/content/widget/WebSiteScreens.xml	2006-02-26 08:33:04 UTC (rev 6849)
+++ trunk/applications/content/widget/WebSiteScreens.xml	2006-02-26 11:35:26 UTC (rev 6850)
@@ -0,0 +1,348 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+$Id: $
+
+Copyright 2001-2006 The Apache Software Foundation
+
+Licensed 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://www.ofbiz.org/dtds/widget-screen.xsd">
+    <screen name="FindWebSite">
+        <section>
+            <actions>
+                <set field="titleProperty" value="PageTitleFindWebSite"/>
+                <set field="headerItem" value="websites"/>
+                <set field="labelTitleProperty" value="PageTitleFindWebSite"/>
+                
+                <entity-condition entity-name="WebSite" list-name="webSites">
+                    <order-by field-name="webSiteId"/>
+                </entity-condition>
+            </actions>
+            <widgets>
+                <decorator-screen name="mainContentDecorator" location="component://content/widget/CommonScreens.xml">
+                    <decorator-section name="body">
+                        <section>
+                            <condition>
+                                <if-has-permission permission="CONTENTMGR" action="_VIEW"/>
+                            </condition>
+                            <widgets>
+                                <container><label style="head1">WebSite List</label></container>
+                                <container><link  text="Create New WebSite" target="EditWebSite" style="buttontext"/></container>
+                                <include-form name="ListWebSites" location="component://content/webapp/content/website/WebSiteForms.xml"/>
+                            </widgets>
+                            <fail-widgets>
+                                <label style="head3">You do not have permission to view this page. ("CONTENTMGR_VIEW" or "CONTENTMGR_ADMIN" needed)</label>
+                            </fail-widgets>
+                        </section>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="CommonWebSiteDecorator">
+        <section>
+            <actions>
+                <set field="headerItem" value="websites"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="mainContentDecorator" location="component://content/widget/CommonScreens.xml">
+                    <decorator-section name="body">
+                        <section>
+                            <condition>
+                                <if-has-permission permission="CONTENTMGR" action="_VIEW"/>
+                            </condition>
+                            <widgets>
+                                <platform-specific><html><html-template location="component://content/webapp/content/website/WebSiteTabBar.ftl"/></html></platform-specific>
+                                <container><link  text="Create New WebSite" target="EditWebSite" style="buttontext"/></container>
+                                
+                                <decorator-section-include name="body"/>
+                            </widgets>
+                            <fail-widgets>
+                                <label style="head3">You do not have permission to view this page. ("CONTENTMGR_VIEW" or "CONTENTMGR_ADMIN" needed)</label>
+                            </fail-widgets>
+                        </section>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="EditWebSite">
+        <section>
+            <actions>
+                <set field="titleProperty" value="PageTitleEditWebSite"/>
+                <set field="tabButtonItem" value="EditWebSite"/>
+                <set field="labelTitleProperty" value="PageTitleEditWebSite"/>
+                <set field="webSiteId" from-field="parameters.webSiteId"/>
+                <entity-one entity-name="WebSite" value-name="webSite"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="CommonWebSiteDecorator">
+                    <decorator-section name="body">
+                        <section>
+                            <widgets>
+                                <container><label style="head1">${uiLabelMap.PageTitleEditWebSite}</label></container>
+                                <include-form name="EditWebSite" location="component://content/webapp/content/website/WebSiteForms.xml"/>
+                            </widgets>
+                        </section>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="EditWebSiteParties">
+        <section>
+            <actions>
+                <set field="titleProperty" value="PageTitleEditWebSiteParties"/>
+                <set field="tabButtonItem" value="EditWebSiteParties"/>
+                <set field="labelTitleProperty" value="PageTitleEditWebSiteParties"/>
+                <set field="webSiteId" from-field="parameters.webSiteId"/>
+                <entity-one entity-name="WebSite" value-name="webSite"/>
+                <script location="component://content/webapp/content/WEB-INF/actions/website/EditWebSiteParties.bsh"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="CommonWebSiteDecorator">
+                    <decorator-section name="body">
+                        <section>
+                            <widgets>
+                                <container><label style="head1">${uiLabelMap.PageTitleEditWebSiteParties}</label></container>
+                                <include-form name="UpdateWebSiteRole" location="component://content/webapp/content/website/WebSiteForms.xml"/>
+                                <include-form name="AddWebSiteRole" location="component://content/webapp/content/website/WebSiteForms.xml"/>
+                            </widgets>
+                        </section>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+<!--    
+    <screen name="CommonSurveyDecorator">
+        <section>
+            <actions>
+                <set field="headerItem" value="survey"/>
+                <set field="surveyId" from-field="parameters.surveyId"/>
+                <entity-one entity-name="Survey" value-name="survey"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="mainContentDecorator" location="component://content/widget/CommonScreens.xml">
+                    <decorator-section name="body">
+                        <section>
+                            <condition>
+                                <if-has-permission permission="CONTENTMGR" action="_VIEW"/>
+                            </condition>
+                            <widgets>
+                                <section>
+                                    <condition><not><if-empty field-name="surveyId"/></not></condition>
+                                    <widgets>
+                                        <include-menu name="SurveyTabBar" location="component://content/widget/SurveyMenus.xml"/>
+                                        <container><link  text="${uiLabelMap.SurveyCreate}" target="EditSurvey" style="buttontext"/></container>
+                                    </widgets>
+                                </section>
+                                
+                                <decorator-section-include name="body"/>
+                            </widgets>
+                            <fail-widgets>
+                                <label style="head3">${uiLabelMap.WorkEffortViewPermissionError}</label>
+                            </fail-widgets>
+                        </section>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="EditSurvey">
+        <section>
+            <actions>
+                <set field="titleProperty" value="PageTitleEditSurvey"/>
+                <set field="tabButtonItem" value="Survey"/>
+                <set field="labelTitleProperty" value="PageTitleEditSurvey"/>
+
+                <set field="surveyId" from-field="parameters.surveyId"/>
+                <entity-one entity-name="Survey" value-name="survey"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="CommonSurveyDecorator">
+                    <decorator-section name="body">
+                        <section>
+                            <condition>
+                                <if-empty field-name="survey"/>
+                            </condition>
+                            <widgets>
+                                <container><label style="head1">${uiLabelMap.PageTitleCreateSurvey}</label></container>
+                                <include-form name="EditSurvey" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                            </widgets>
+                            <fail-widgets>
+                                <container><label style="head1">${uiLabelMap.PageTitleEditSurvey}, ${uiLabelMap.SurveySurveyId}: ${surveyId}</label></container>
+                                <include-form name="EditSurvey" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                            </fail-widgets>
+                        </section>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="EditSurveyMultiResps">
+        <section>
+            <actions>
+                <set field="titleProperty" value="PageTitleEditSurveyMultiResps"/>
+                <set field="tabButtonItem" value="SurveyMultiResps"/>
+                <set field="labelTitleProperty" value="PageTitleEditSurveyMultiResps"/>
+                
+                <set field="surveyId" from-field="parameters.surveyId"/>
+                <entity-one entity-name="Survey" value-name="survey"/>
+                <entity-condition entity-name="SurveyMultiResp" list-name="surveyMultiRespList">
+                    <condition-expr field-name="surveyId" env-name="surveyId"/>
+                    <order-by field-name="surveyMultiRespId"/>
+                </entity-condition>
+            </actions>
+            <widgets>
+                <decorator-screen name="CommonSurveyDecorator">
+                    <decorator-section name="body">
+                        <container><label style="head1">${uiLabelMap.PageTitleEditSurveyMultiResps}, ${uiLabelMap.SurveySurveyId}: ${surveyId}</label></container>
+                        <iterate-section entry-name="surveyMultiResp" list-name="surveyMultiRespList">
+                            <section>
+                                <widgets>
+                                    <container><label style="head2">${uiLabelMap.SurveyEditSurveyMultiResp}</label></container>
+                                    <include-form name="EditSurveyMultiResp" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                                    <include-form name="ListSurveyMultiRespColumns" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                                    <container><label style="tableheadtext">${uiLabelMap.SurveyAddSurveyMultiRespColumn}</label></container>
+                                    <include-form name="AddSurveyMultiRespColumn" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                                </widgets>
+                            </section>
+                        </iterate-section>
+                        <container><label style="head2">${uiLabelMap.SurveyAddSurveyMultiResp}</label></container>
+                        <include-form name="AddSurveyMultiResp" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="FindSurveyResponse">
+        <section>
+            <actions>
+                <set field="titleProperty" value="PageTitleFindSurveyResponse"/>
+                <set field="tabButtonItem" value="FindSurveyResponse"/>
+                <set field="labelTitleProperty" value="PageTitleFindSurveyResponse"/>
+
+                <set field="queryString" from-field="result.queryString"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
+                
+                <set field="surveyId" from-field="parameters.surveyId"/>
+                <entity-one entity-name="Survey" value-name="survey"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="CommonSurveyDecorator">
+                    <decorator-section name="body">
+                        <container><link  text="${uiLabelMap.SurveyCreateResponse}" target="EditSurveyResponse?surveyId=${surveyId}" style="buttontext"/></container>
+                        <container><label style="head1">${uiLabelMap.PageTitleFindSurveyResponse}, ${uiLabelMap.SurveySurveyId}: ${surveyId}</label></container>
+                        <include-form name="FindSurveyResponse" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                        <include-form name="ListFindSurveyResponse" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="ViewSurveyResponses">
+        <section>
+            <actions>
+                <set field="titleProperty" value="PageTitleViewSurveyResponses"/>
+                <set field="tabButtonItem" value="SurveyResponses"/>
+                <set field="labelTitleProperty" value="PageTitleViewSurveyResponses"/>
+                
+                <set field="surveyId" from-field="parameters.surveyId"/>
+                <entity-one entity-name="Survey" value-name="survey"/>
+                
+                <script location="component://content/webapp/content/WEB-INF/actions/survey/ViewSurveyResponses.bsh"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="CommonSurveyDecorator">
+                    <decorator-section name="body">
+                        <container><link  text="${uiLabelMap.SurveyCreateResponse}" target="EditSurveyResponse?surveyId=${surveyId}" style="buttontext"/></container>
+                        <container><label style="head1">${uiLabelMap.PageTitleViewSurveyResponses}, ${uiLabelMap.SurveySurveyId}: ${surveyId}</label></container>
+                        <platform-specific><html><html-template location="component://content/webapp/content/survey/ViewSurveyResponses.ftl"/></html></platform-specific>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="EditSurveyResponse">
+        <section>
+            <actions>
+                <set field="titleProperty" value="PageTitleEditSurveyResponse"/>
+                <set field="tabButtonItem" value="SurveyResponses"/>
+                <set field="labelTitleProperty" value="PageTitleEditSurveyResponse"/>
+                
+                <set field="surveyId" from-field="parameters.surveyId"/>
+                <entity-one entity-name="Survey" value-name="survey"/>
+                
+                <script location="component://content/webapp/content/WEB-INF/actions/survey/EditSurveyResponse.bsh"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="CommonSurveyDecorator">
+                    <decorator-section name="body">
+                        <container><label style="head1">${uiLabelMap.PageTitleEditSurveyResponse}, Response ID: ${parameters.surveyResponseId}, Survey ID: ${surveyId}</label></container>
+                        <platform-specific><html><html-template location="component://content/webapp/content/survey/EditSurveyResponse.ftl"/></html></platform-specific>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+
+    <screen name="LookupSurvey">
+        <section>
+            <condition>
+                <if-has-permission permission="CONTENTMGR" action="_VIEW"/>
+            </condition>
+            <actions>
+                <property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
+                <set field="title" value="Lookup Survey"/>
+                <set field="queryString" from-field="result.queryString"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
+                    <decorator-section name="body">
+                        <include-form name="lookupSurvey" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                        <include-form name="listLookupSurvey" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="LookupSurveyResponse">
+        <section>
+            <condition>
+                <if-has-permission permission="CONTENTMGR" action="_VIEW"/>
+            </condition>
+            <actions>
+                <property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
+                <set field="title" value="Lookup SurveyResponse"/>
+                <set field="queryString" from-field="result.queryString"/>
+                <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"/>
+                <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml">
+                    <decorator-section name="body">
+                        <include-form name="lookupSurveyResponse" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                        <include-form name="listLookupSurveyResponse" location="component://content/webapp/content/survey/SurveyForms.xml"/>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+    -->
+</screens>


Property changes on: trunk/applications/content/widget/WebSiteScreens.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:keywords
   + "Date Rev Author URL Id"
Name: svn:eol-style
   + native



More information about the Svn mailing list