|
Added: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletcats_FR.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletcats_FR.xml?rev=1370454&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletcats_FR.xml (added) +++ ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletcats_FR.xml Tue Aug 7 19:23:16 2012 @@ -0,0 +1,35 @@ +<?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. +--> +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook ../../../../applications/content/dtd/docbook.xsd" + xmlns="http://docbook.org/ns/docbook"> + <title>Catégorie d'une portlet</title> + + <para>Les portlet utilisent des catégories pour permettre de rechercher plus facilement dans les portlets.</para> + <para>On peut créer des catégories scpécifiques avec plus d'éléments.</para> + <para>On peut également complexifier l'arbre en utilisant des catégorie parente.'</para> + <para>&nbsp;</para> + + <section> + <title>Gestion des catégories</title> + <para>Association d'une catégorie à une portlet existante : + <programlisting> + &lt;PortletPortletCategory portalPortletId="FindExample2" portletCategoryId="EXAMPLE"/> + </programlisting> + </para> + </section> +</section> \ No newline at end of file Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletcats_FR.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletcats_FR.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletcats_FR.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields.xml?rev=1370454&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields.xml (added) +++ ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields.xml Tue Aug 7 19:23:16 2012 @@ -0,0 +1,28 @@ +<?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. +--> +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook" + xmlns="http://docbook.org/ns/docbook"> + <title>The Portlet Fields description.</title> + + <para>All fields used to define a portlet are listed below.</para> + <para>Some field have default value (scriptName, menuName, screenName or formName), other must be filled (portletId, type, component and sub-component,...). </para> + <para>Default values should be used, when it's possible</para> + <tip><para>Find above the list of fields and a long description of the field role when you go hover it, long description and its default value.</para></tip> + + <para>If the form is not shown below, then <link xl:href="showHelp?helpTopic=portletfields">click here</link></para> +</section> \ No newline at end of file Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields_FR.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields_FR.xml?rev=1370454&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields_FR.xml (added) +++ ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields_FR.xml Tue Aug 7 19:23:16 2012 @@ -0,0 +1,32 @@ +<?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. +--> +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook" + xmlns="http://docbook.org/ns/docbook"> + <title>Description des champs d'une portlet</title> + + <para> + Les différents champs paramétrables sont listés ci-dessous. + </para> + <para> + Certains attributs ont des valeurs par défaut (scriptName, menuName, screenName or formName), d'autres doivent être obligatoirement renseignés (l'identifiant, le type, le composant et sous-composant,...). </para> + <para> + Il est conseillé d'utiliser les valeurs par défaut quand c'est possible</para> + <tip><para>En passant la souris sur le nom des champs, une description du champs apparait ainsi que la valeur par défaut pour utiliser ce champs</para></tip> + + <para>Si le formulaire n'est pas affiché ci-dessous, alors<link xl:href="showHelp?helpTopic=portletfields">clicker ici</link></para> +</section> Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields_FR.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields_FR.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portletfields_FR.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes.xml?rev=1370454&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes.xml (added) +++ ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes.xml Tue Aug 7 19:23:16 2012 @@ -0,0 +1,42 @@ +<?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. +--> +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook" + xmlns="http://docbook.org/ns/docbook"> + <title>The Portlet Types usage.</title> + <para>To facilitate portlet creation process, there is several portlet types for classical portal page use-cases </para> + <para>For each type a given amount of parameter is required to perform type associted actions in order to render portlet and control its behavior.</para> + + <section> + <title>Avaialable types</title> + + <para>Here is a list of currently available types : + <itemizedlist> + <listitem><para>Screenlet : generic type. portlet widget get injected into a screenlet</para></listitem> + <listitem><para>ScreenletList : genric type for list portlet. widget get injected into a screent and preceeded by an empty container for further use</para></listitem> + <listitem><para>Empty : Define an empty container to for futur content injection using ajax mainly</para> </listitem> + <listitem><para>Decorator : Type allow loading portlet using URI</para></listitem> + </itemizedlist> + </para> + <para>To choose appropriate type see detail for each type.</para> + </section> + + <section> + <title>For more information </title> + <para>See <link xl:href="showHelp?helpTopic=AllPortletType">All portlet types and field</link></para> + </section> +</section> Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes_FR.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes_FR.xml?rev=1370454&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes_FR.xml (added) +++ ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes_FR.xml Tue Aug 7 19:23:16 2012 @@ -0,0 +1,43 @@ +<?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. +--> +<section xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook" + xmlns="http://docbook.org/ns/docbook"> + <title>Types de portlets</title> + + <para>Pour faciliter la création de portlets, il existe plusieurs types de portlets correspondant à des usages classsiques dans des pages portail.</para> + <para>Pour cela, ces types reprennent une quantité d'objetcs et d'actions qui pourront être mis en oeuvre lors de la configuration de la portlet.</para> + + <section> + <title>Gestion des types</title> + + <para>Voici les différents types accessibles pour le moment : + <itemizedlist> + <listitem><para>Screenlet : type générique</para></listitem> + <listitem><para>ScreenletList : type générique pour une liste</para></listitem> + <listitem><para>Empty : contener vide pour permettre l'injection de portlet'</para> </listitem> + <listitem><para>Decorator : type permettant de charger kla portlet par URI</para></listitem> + </itemizedlist> + </para> + <para>Pour choisir un type, voir les détails sur chacun d'eux.</para> + </section> + + <section> + <title>Liens complémentaires</title> + <para>Voir <link xl:href="showHelp?helpTopic=AllPortletType">tous les Types de portlet et les champs</link></para> + </section> +</section> \ No newline at end of file Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes_FR.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes_FR.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/data/helpdata/HELP_portlettypes_FR.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/ExampleWactions.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/ExampleWactions.xml?rev=1370454&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/ExampleWactions.xml (added) +++ ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/ExampleWactions.xml Tue Aug 7 19:23:16 2012 @@ -0,0 +1,39 @@ +<?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. +--> + +<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods-v2.xsd"> + <simple-method method-name="EditExample" short-description="action for EditExample screen"> + <set field="widget.exampleId" from-field="parameters.exampleId"/> + <entity-one value-field="widget.example" entity-name="Example" use-cache="true"> + <field-map field-name="exampleId" from-field="parameters.exampleId"/> + </entity-one> + <if-not-empty field="widget.exampleId"> + <set field="parameters.idDescription" value="${parameters.exampleId} : ${widget.example.exampleName}"/> +<!-- <set field="parameters.idDescription" value="${groovy: org.ofbiz.base.util.UtilURL.removeBadCharForUrl(idDescription)}"/> not necessary automatically done in add as parameters for idDescription--> + <set field="widget.idDescription" from-field="parameters.idDescription"/> + </if-not-empty> + </simple-method> + <simple-method method-name="ListExample" short-description="action for ListExample portlet"> + <if-compare field="parameters.comingFromDelete" operator="equals" value="Y"> + <clear-field field="parameters.exampleId"/> + </if-compare> + </simple-method> +</simple-methods> Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/ExampleWactions.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/ExampleWactions.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/ExampleWactions.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/example/ExampleServices.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/example/ExampleServices.xml?rev=1370454&r1=1370453&r2=1370454&view=diff ============================================================================== --- ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/example/ExampleServices.xml (original) +++ ofbiz/branches/20120329_portletWidget/specialpurpose/example/script/org/ofbiz/example/example/ExampleServices.xml Tue Aug 7 19:23:16 2012 @@ -20,6 +20,74 @@ under the License. <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods-v2.xsd"> + <!--#Bam# portletExample --> + <!--#Bam# Example methods to test all return Message--> + <simple-method method-name="createExample" short-description="create a Example and return message"> + + <!-- Example of Message management --> + <if-compare operator="equals" value="EXST_COMPLETE" field="parameters.statusId"> + <!-- prepare a message for success or error message List --> + <entity-one value-field="statusItem" entity-name="StatusItem" use-cache="true"> + <field-map field-name="statusId" from-field="parameters.statusId"/> + </entity-one> + <set field="argListName[]" from-field="statusItem.description"/> + <property-to-field resource="ExampleUiLabels" property="ExampleMessageExampleStatusIs" field="messageList" arg-list-name="argListName" /> + </if-compare> + + <!-- Now test if Error message --> + <if-empty field="parameters.exampleTypeId"> + <!-- Error message --> + <property-to-field resource="ExampleUiLabels" property="ExampleMessageExampleTypeCannotBeEmpty" field="errorMessage"/> + <if-empty field="messageList"> + <field-to-result field="errorMessage"/> + <else> + <!-- <set field="errorMessageList[]" from-field="errorMessage"/> it's not necessary to put it because errorMessage will be print too --> + <set field="errorMessageList[]" from-field="messageList"/> + <field-to-result field="errorMessageList"/> + </else> + </if-empty> + + <if-empty field="parameters.description"> + <!-- if there is a success message or messageList put fail, not success. It's should be used if you want to store some entity (so no rollback) + but you want to give a fail(or Warning) message to user --> + <!-- Currently not specifics look for fail, only error or success --> + <set field="responseMessage" value="fail"/> + <field-to-result field="responseMessage"/> + <log level="info" message="fail message"/> + <set field="parameters.exampleTypeId" value="INSPIRED"/> + <else> + <return response-code="error"/> + </else> + </if-empty> + </if-empty> + + <!-- Start of Success Message example --> + <if-compare operator="equals" value="EXST_APPROVED" field="parameters.statusId"> + <!-- return a success message --> + <property-to-field resource="ExampleUiLabels" property="ExampleMessageCreateExampleIsSuccess" field="successMessage"/> + <field-to-result field="successMessage"/> + <else> + <if-not-empty field="messageList"> + <property-to-field resource="ExampleUiLabels" property="ExampleMessageCreateExampleIsSuccess" field="successMessageList[]"/> + <set field="successMessageList[]" from-field="messageList"/> + <field-to-result field="successMessageList"/> + </if-not-empty> + </else> + </if-compare> + + <!-- Now create value --> + <make-value entity-name="Example" value-field="newEntity"/> + <sequenced-id sequence-name="Example" field="exampleId"/> + <log level="info" message="newEntity=${newEntity}"/> + <set field="newEntity.exampleId" from-field="exampleId"/> + <set-nonpk-fields map="parameters" value-field="newEntity"/> + <create-value value-field="newEntity"/> + + + <field-to-result field="exampleId"/> + </simple-method> + <!--#Eam# portletExample --> + <!-- ExampleStatus methods --> <simple-method method-name="createExampleStatus" short-description="create a ExampleItem"> <now-timestamp field="nowTimestamp"/> Modified: ofbiz/branches/20120329_portletWidget/specialpurpose/example/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/specialpurpose/example/servicedef/services.xml?rev=1370454&r1=1370453&r2=1370454&view=diff ============================================================================== --- ofbiz/branches/20120329_portletWidget/specialpurpose/example/servicedef/services.xml (original) +++ ofbiz/branches/20120329_portletWidget/specialpurpose/example/servicedef/services.xml Tue Aug 7 19:23:16 2012 @@ -25,13 +25,15 @@ under the License. <version>1.0</version> <!-- Example & Related Services --> - <service name="createExample" default-entity-name="Example" engine="entity-auto" invoke="create" auth="true"> + <!--#Bam# portletExample change from engine entity-auto to simple to be able to generate some success or error message --> + <service name="createExample" default-entity-name="Example" engine="simple" invoke="createExample" auth="true" + location="component://example/script/org/ofbiz/example/example/ExampleServices.xml"> <description>Create a Example</description> <permission-service service-name="exampleGenericPermission" main-action="CREATE"/> <auto-attributes include="pk" mode="OUT" optional="false"/> <auto-attributes include="nonpk" mode="IN" optional="true"/> - <override name="exampleTypeId" optional="false"/> - <override name="statusId" optional="false"/> + <override name="exampleTypeId" optional="true"/><!--#Bam# portletExample it's mandatory but Test if present will be done in service --> + <override name="statusId" optional="true"/><!--#Bam# portletExample it's mandatory but Test will be done in service --> <override name="exampleName" optional="false"/> </service> <service name="updateExample" default-entity-name="Example" engine="entity-auto" invoke="update" auth="true"> Added: ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller-portlet.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller-portlet.xml?rev=1370454&view=auto ============================================================================== --- ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller-portlet.xml (added) +++ ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller-portlet.xml Tue Aug 7 19:23:16 2012 @@ -0,0 +1,111 @@ +<?xml version="1.0" encoding="UTF-8"?> +<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd"> + <!-- The controller elements that are common to all OFBiz components + can be found in the following xml file. A component can override the + elements found in the common-controller.xml file. --> + + <description>Example portlets common Component Site Configuration File</description> + + <!-- Request Mappings --> + + <!-- Begin Addon modification : portletExample --> + <!-- Example portlets entries --> + <!-- Not use by portlet, screen directly use for area edition --> + <request-map uri="editExamplePortlet"><security https="true" auth="true"/><response name="success" type="view" value="EditExamplePortlet"/></request-map> + <request-map uri="editExampleItemPortlet"><security https="true" auth="true"/><response name="success" type="view" value="EditExampleItemPortlet"/></request-map> + <request-map uri="showExampleDetail"><security https="true" auth="true"/><response name="success" type="view" value="ShowExampleDetail"/></request-map> + + <request-map uri="createExampleJson"> + <security https="true" auth="true"/> + <event type="service" invoke="createExample"/> + <response name="success" type="request" value="json"/> + <response name="fail" type="request" value="json"/> + <response name="error" type="request" value="json"/> + </request-map> + <request-map uri="updateExampleJson"> + <security https="true" auth="true"/> + <event type="service" invoke="updateExample"/> + <response name="success" type="request" value="json"/> + <response name="error" type="request" value="json"/> + </request-map> + <request-map uri="deleteExamplePortlet"> + <security https="true" auth="true"/> + <event type="service" invoke="deleteExample"/> + <response name="success" type="request" value="showPortlet"/> + <response name="error" type="request" value="showPortlet"/> + </request-map> + <request-map uri="createExampleItemJs"> + <security https="true" auth="true"/> + <event type="service" invoke="createExampleItem"/> + <response name="success" type="request" value="json"/> + <response name="error" type="request" value="json"/> + </request-map> + <request-map uri="updateExampleItemJs"> + <security https="true" auth="true"/> + <event type="service" invoke="updateExampleItem"/> + <response name="success" type="request" value="json"/> + <response name="error" type="request" value="json"/> + </request-map> + <request-map uri="deleteExampleItemPortlet"> + <security https="true" auth="true"/> + <event type="service" invoke="deleteExampleItem"/> + <response name="success" type="request" value="showPortlet"/> + <response name="error" type="request" value="showPortlet"/> + </request-map> + + <!-- ExampleFeature portlets entries --> + <request-map uri="editExampleFeatureApplPortlet"><security https="true" auth="true"/><response name="success" type="view" value="EditExampleFeatureApplPortlet"/></request-map> + <request-map uri="createExampleFeatureApplJs"> + <security https="true" auth="true"/> + <event type="service" invoke="createExampleFeatureAppl"/> + <response name="success" type="request" value="json"/> + <response name="error" type="request" value="json"/> + </request-map> + <request-map uri="updateExampleFeatureApplJs"> + <security https="true" auth="true"/> + <event type="service" invoke="updateExampleFeatureAppl"/> + <response name="success" type="request" value="json"/> + <response name="error" type="request" value="json"/> + </request-map> + <request-map uri="deleteExampleFeatApplPortlet"> + <security https="true" auth="true"/> + <event type="service" invoke="deleteExampleFeature"/> + <response name="success" type="request" value="showPortlet"/> + <response name="error" type="request" value="showPortlet"/> + </request-map> + + <!-- ExampleFeatureAppl portlets entries --> + <request-map uri="editExampleFeaturePortlet"><security https="true" auth="true"/><response name="success" type="view" value="EditExampleFeaturePortlet"/></request-map> + <request-map uri="createExampleFeatureJs"> + <security https="true" auth="true"/> + <event type="service" invoke="createExampleFeature"/> + <response name="success" type="request" value="json"/> + <response name="error" type="request" value="json"/> + </request-map> + <request-map uri="updateExampleFeatureJs"> + <security https="true" auth="true"/> + <event type="service" invoke="updateExampleFeature"/> + <response name="success" type="request" value="json"/> + <response name="error" type="request" value="json"/> + </request-map> + <request-map uri="deleteExampleFeaturePortlet"> + <security https="true" auth="true"/> + <event type="service" invoke="deleteExampleFeature"/> + <response name="success" type="request" value="showPortlet"/> + <response name="error" type="request" value="showPortlet"/> + </request-map> + <!-- End Addon modification portletExample Portlet Request --> + + <!-- end of request mappings --> + + <!-- View Mappings --> + <!-- used by portlet for URI edition --> + <view-map name="EditExamplePortlet" type="screen" page="component://example/widget/ExampleScreens.xml#EditExample"/> + <view-map name="EditExampleItemPortlet" type="screen" page="component://example/widget/ExampleScreens.xml#EditExampleItem"/> + <view-map name="ShowExampleDetail" type="screen" page="component://example/widget/ExampleScreens.xml#ShowExampleDetail"/> + <view-map name="EditExampleFeatureApplPortlet" type="screen" page="component://example/widget/ExampleFeatureScreens.xml#EditExampleFeatureAppl"/> + <view-map name="EditExampleFeaturePortlet" type="screen" page="component://example/widget/ExampleFeatureScreens.xml#EditExampleFeature"/> + + <!-- end of view mappings --> +</site-conf> Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller-portlet.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller-portlet.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller-portlet.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller.xml?rev=1370454&r1=1370453&r2=1370454&view=diff ============================================================================== --- ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller.xml (original) +++ ofbiz/branches/20120329_portletWidget/specialpurpose/example/webapp/example/WEB-INF/controller.xml Tue Aug 7 19:23:16 2012 @@ -25,6 +25,7 @@ under the License. elements found in the common-controller.xml file. --> <include location="component://common/webcommon/WEB-INF/common-controller.xml"/> <include location="component://common/webcommon/WEB-INF/portal-controller.xml"/> + <include location="component://example/webapp/example/WEB-INF/controller-portlet.xml"/><!--#Bam# portlet-example--> <description>Example Component Site Configuration File</description> @@ -59,7 +60,7 @@ under the License. <request-map uri="createExample"> <security https="true" auth="true"/> <event type="service" invoke="createExample"/> - <response name="success" type="request-redirect" value="EditExample"> + <response name="success" type="request-redirect" value="FindExample"> <redirect-parameter name="exampleId"/> </response> <response name="error" type="view" value="FindExample"/> @@ -72,12 +73,6 @@ under the License. </response> <response name="error" type="view" value="EditExample"/> </request-map> - <request-map uri="createExampleAjax"> - <security https="true" auth="true"/> - <event type="service" invoke="createExample"/> - <response name="success" type="request" value="json"/> - <response name="error" type="request" value="json"/> - </request-map> <request-map uri="updateExampleAjax"> <security https="true" auth="true"/> <event type="service" invoke="updateExample"/> @@ -152,7 +147,7 @@ under the License. <security https="true" auth="true"/> <event type="service" invoke="updateExampleFeature"/> <response name="success" type="request-redirect" value="EditExampleFeature"> - <redirect-parameter name="exampleFeatureId"/> + <redirect-parameter name="exampleId"/> </response> <response name="error" type="view" value="EditExampleFeature"/> </request-map> @@ -191,7 +186,9 @@ under the License. <request-map uri="FormWidgetExamples"><security https="true" auth="true"/><response name="success" type="view" value="FormWidgetExamples"/></request-map> + <request-map uri="LookupExample"><security https="true" auth="true"/><response name="success" type="view" value="LookupExample"/></request-map> <request-map uri="LookupExampleFeature"><security https="true" auth="true"/><response name="success" type="view" value="LookupExampleFeature"/></request-map> + <request-map uri="LookupPartyName"><security https="true" auth="true"/><response name="success" type="view" value="LookupPartyName"/></request-map> <request-map uri="LookupPartyGroupByName"><security https="true" auth="true"/><response name="success" type="view" value="LookupPartyGroupByName"/></request-map> <request-map uri="ListExampleFormOnly"><security https="true" auth="false"/><response name="success" type="view" value="ListExampleFormOnly"/></request-map> @@ -235,7 +232,9 @@ under the License. <view-map name="FormWidgetExamples" type="screen" page="component://example/widget/example/FormWidgetExampleScreens.xml#FormWidgetExamples"/> + <view-map name="LookupExample" type="screen" page="component://example/widget/example/LookupScreens.xml#LookupExample"/> <view-map name="LookupExampleFeature" type="screen" page="component://example/widget/example/ExampleFeatureScreens.xml#LookupExampleFeature"/> + <view-map name="LookupPartyName" type="screen" page="component://example/widget/example/FormWidgetExampleLookupScreens.xml#LookupPartyName"/> <view-map name="LookupPartyGroupByName" type="screen" page="component://example/widget/example/FormWidgetExampleLookupScreens.xml#LookupPartyGroupByName"/> <!-- ajax view mappings --> |
| Free forum by Nabble | Edit this page |
