You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bu...@apache.org on 2010/10/17 12:37:58 UTC

svn commit: r1023451 - in /ofbiz/trunk/framework/example: config/ExampleUiLabels.xml widget/example/PortletScreens.xml

Author: buscob
Date: Sun Oct 17 10:37:58 2010
New Revision: 1023451

URL: http://svn.apache.org/viewvc?rev=1023451&view=rev
Log:
Slightly improved example portlets.

Modified:
    ofbiz/trunk/framework/example/config/ExampleUiLabels.xml
    ofbiz/trunk/framework/example/widget/example/PortletScreens.xml

Modified: ofbiz/trunk/framework/example/config/ExampleUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/config/ExampleUiLabels.xml?rev=1023451&r1=1023450&r2=1023451&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/config/ExampleUiLabels.xml (original)
+++ ofbiz/trunk/framework/example/config/ExampleUiLabels.xml Sun Oct 17 10:37:58 2010
@@ -512,6 +512,10 @@
         <value xml:lang="th">ลักษณะตัวอย่างใหม่</value>
         <value xml:lang="zh">新建样例特征</value>
     </property>
+    <property key="ExampleNoAttributeSet">
+        <value xml:lang="en">No SpecificTitle attribute set for this portlet. You can use the Portlet attribute editing button to set them.</value>
+        <value xml:lang="it">Non si è specificato nessun valore per l'attributo SpecificTitle in questo Portlet. Utilizza la funzione editing dei parametri per impostarlo.</value>
+    </property>
     <property key="ExampleOriginalExample">
         <value xml:lang="en">Original Example</value>
         <value xml:lang="fr">Exemple original</value>
@@ -533,10 +537,6 @@
         <value xml:lang="en">Geolocation via address</value>
         <value xml:lang="fr">Géolocalisation par l'adresse</value>
     </property>
-    <property key="ExamplePortalPageWidgetExamples">
-        <value xml:lang="en">include-portal-page widget example</value>
-        <value xml:lang="it">Esempio widget include-portal-page</value>
-    </property>
     <property key="ExamplePortletFirst">
         <value xml:lang="en">Hi, this is a first example of portlet</value>
         <value xml:lang="it">Salve, questo è il primo esempio di portlet</value>

Modified: ofbiz/trunk/framework/example/widget/example/PortletScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/PortletScreens.xml?rev=1023451&r1=1023450&r2=1023451&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/PortletScreens.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/PortletScreens.xml Sun Oct 17 10:37:58 2010
@@ -27,8 +27,19 @@ under the License.
                 <property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
             </actions>
             <widgets>
-                <label text="${uiLabelMap.ExamplePortletFirst}"/>
-                <label text="...${SpecificTitle}"/>
+                <screenlet title="${uiLabelMap.ExamplePortletFirst}">
+                    <section>
+                        <condition>
+                            <not><if-empty field="SpecificTitle"/></not>
+                        </condition>
+                        <widgets>
+                            <label style="h2">${SpecificTitle}</label>
+                        </widgets>
+                        <fail-widgets>
+                            <label style="h2">${uiLabelMap.ExampleNoAttributeSet}</label>
+                        </fail-widgets>
+                    </section>
+                </screenlet>
             </widgets>
         </section>
     </screen>
@@ -39,7 +50,8 @@ under the License.
                 <property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
             </actions>
             <widgets>
-                <label text="${uiLabelMap.ExamplePortletSecond}"/>
+                <screenlet title="${uiLabelMap.ExamplePortletSecond}">
+                </screenlet>
             </widgets>
         </section>
     </screen>
@@ -50,15 +62,17 @@ under the License.
                 <property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
             </actions>
             <widgets>
-                <container style="leftclear">
-                    <label style="h1" text="${uiLabelMap.ExamplePortletThird}"/>
-                </container>
-                <container style="leftclear">
-                    <label style="h2" text="${uiLabelMap.ExamplePortletSpecificTitle}: ${SpecificTitle}"/>
-                </container>
-                <container style="leftclear">
-                    <label style="h2" text="${uiLabelMap.ExamplePortletSpecificSubTitle}: ${SpecificSubTitle}"/>
-                </container>
+                <screenlet title="${uiLabelMap.ExamplePortletThird}">
+                    <container style="leftclear">
+                        <label style="h1" text="${uiLabelMap.ExamplePortletThird}"/>
+                    </container>
+                    <container style="leftclear">
+                        <label style="h2" text="${uiLabelMap.ExamplePortletSpecificTitle}: ${SpecificTitle}"/>
+                    </container>
+                    <container style="leftclear">
+                        <label style="h2" text="${uiLabelMap.ExamplePortletSpecificSubTitle}: ${SpecificSubTitle}"/>
+                    </container>
+                </screenlet>
             </widgets>
         </section>
     </screen>