gatein SVN: r1943 - components/pc/trunk/api/src/main/java/org/gatein/pc/api/info.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2010-03-03 10:07:51 -0500 (Wed, 03 Mar 2010)
New Revision: 1943
Modified:
components/pc/trunk/api/src/main/java/org/gatein/pc/api/info/RuntimeOptionInfo.java
Log:
- Renamed ORG_JBOSS_PORTLETCONTAINER_REMOTABLE to REMOTABLE_RUNTIME_OPTION so that the name of the constant doesn't depend on the value and changed value to org.gatein.pc.remotable.
Modified: components/pc/trunk/api/src/main/java/org/gatein/pc/api/info/RuntimeOptionInfo.java
===================================================================
--- components/pc/trunk/api/src/main/java/org/gatein/pc/api/info/RuntimeOptionInfo.java 2010-03-03 14:45:45 UTC (rev 1942)
+++ components/pc/trunk/api/src/main/java/org/gatein/pc/api/info/RuntimeOptionInfo.java 2010-03-03 15:07:51 UTC (rev 1943)
@@ -1,24 +1,25 @@
/*
-* JBoss, a division of Red Hat
-* Copyright 2008, Red Hat Middleware, LLC, and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
+ * JBoss, a division of Red Hat
+ * Copyright 2010, Red Hat Middleware, LLC, and individual
+ * contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of
+ * individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.gatein.pc.api.info;
@@ -39,13 +40,13 @@
String JAVAX_PORTLET_ESCAPE_XML = "javax.portlet.escapeXml";
String JAVAX_PORTLET_SERVLET_DEFAULT_SESSION_SCOPE = "javax.portlet.servletDefaultSessionScope";
- String ORG_JBOSS_PORTLETCONTAINER_REMOTABLE = "org.jboss.portletcontainer.remotable";
+ String REMOTABLE_RUNTIME_OPTION = "org.gatein.pc.remotable";
Set<String> SUPPORTED_OPTIONS = Collections.unmodifiableSet(Tools.toSet(
JAVAX_PORTLET_ACTION_SCOPED_REQUEST_ATTRIBUTES,
JAVAX_PORTLET_ESCAPE_XML,
JAVAX_PORTLET_SERVLET_DEFAULT_SESSION_SCOPE,
- ORG_JBOSS_PORTLETCONTAINER_REMOTABLE));
+ REMOTABLE_RUNTIME_OPTION));
String getName();
14 years, 10 months
gatein SVN: r1942 - portal/trunk/component/web/src/main/java/org/exoplatform/web/login.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-03-03 09:45:45 -0500 (Wed, 03 Mar 2010)
New Revision: 1942
Modified:
portal/trunk/component/web/src/main/java/org/exoplatform/web/login/PortalLoginController.java
Log:
handle case were initialURI is null in portal login controller
Modified: portal/trunk/component/web/src/main/java/org/exoplatform/web/login/PortalLoginController.java
===================================================================
--- portal/trunk/component/web/src/main/java/org/exoplatform/web/login/PortalLoginController.java 2010-03-03 14:24:08 UTC (rev 1941)
+++ portal/trunk/component/web/src/main/java/org/exoplatform/web/login/PortalLoginController.java 2010-03-03 14:45:45 UTC (rev 1942)
@@ -54,7 +54,12 @@
String uri = (String)req.getSession().getAttribute("initialURI");
if (uri == null || uri.length() == 0)
{
- uri = req.getContextPath() + "/private" + req.getPathInfo();
+ String pathInfo = req.getPathInfo();
+ if (pathInfo == null)
+ {
+ pathInfo = "/";
+ }
+ uri = req.getContextPath() + "/private" + pathInfo;
}
//
14 years, 10 months
gatein SVN: r1941 - in portal/trunk/docs/user-guide/en/modules: language and 1 other directory.
by do-not-reply@jboss.org
Author: luc.texier(a)jboss.com
Date: 2010-03-03 09:24:08 -0500 (Wed, 03 Mar 2010)
New Revision: 1941
Modified:
portal/trunk/docs/user-guide/en/modules/gadgetsAdmin/Import_Portlets_and_Gadgets.xml
portal/trunk/docs/user-guide/en/modules/gadgetsAdmin/Manage_Portlets_and_Gadgets.xml
portal/trunk/docs/user-guide/en/modules/language/Change_Interface_Language.xml
portal/trunk/docs/user-guide/en/modules/language/Multi-Language_Navigation_Nodes.xml
Log:
GTNPORTAL-721: Luc's review is finished, hand over to ScottM
Modified: portal/trunk/docs/user-guide/en/modules/gadgetsAdmin/Import_Portlets_and_Gadgets.xml
===================================================================
--- portal/trunk/docs/user-guide/en/modules/gadgetsAdmin/Import_Portlets_and_Gadgets.xml 2010-03-03 11:07:30 UTC (rev 1940)
+++ portal/trunk/docs/user-guide/en/modules/gadgetsAdmin/Import_Portlets_and_Gadgets.xml 2010-03-03 14:24:08 UTC (rev 1941)
@@ -6,19 +6,26 @@
<section id="sect-User_Guide-Import_Portlets_and_Gadgets">
<title>Import Portlets and Gadgets</title>
<para>
- This convenient feature that helps you import default portlets/gadgets automatically in different categories and these portlets/gadgets will be listed on the left pane.
+ This feature imports portlets/gadgets found in web applications on your server
</para>
<note>
- <title>Technical Information about the Portlet Import</title>
+ <!--<title>Technical Information about the Portlet Import</title>-->
<para>
- The Application Registry looks in all webapps of your application server for a file located at WEB-INF/portlet.xml and registers the portlets found there. When the user clicks on "Auto Import" the portlets of all webapps are imported. If there is a portlet.xml file in a webapp a new category is created whose name is the webapp war name (or the webapp folder name). All the portlets that are configured in the portlet.xml file are added to the new category.")
+ The Application Registry looks in all webapps of your application server for a file located at WEB-INF/portlet.xml and registers the portlets found there. When the user clicks on "Auto Import" the portlets of all webapps are imported. If there is a portlet.xml file in a webapp a new category is created whose name is the webapp war name (or the webapp folder name). All the portlets that are configured in the portlet.xml file are added to the new category.
</para>
</note>
<procedure>
<step>
<para>
- Go to <emphasis role="bold">Group</emphasis>-> <emphasis role="bold">Administration</emphasis>-> <emphasis role="bold">Application Registry</emphasis> on the navigation bar. A form for organizing portlets/gadgets will be displayed:
+ In the <emphasis role="bold">Group</emphasis> menu, select <emphasis role="bold">Administration</emphasis> -> <emphasis role="bold">Application Registry</emphasis>:
</para>
+<note>
+<title>DOC TODO</title>
+<para>
+redo screenshot
+</para>
+</note>
+
<mediaobject>
<imageobject>
<imagedata fileref="images/Org1.png" format="PNG" width="444" />
@@ -27,7 +34,7 @@
</step>
<step>
<para>
- Click the <emphasis role="bold">Auto Import</emphasis> button at upper right corner on the action bar. A pop up will be shown:
+ Click <emphasis role="bold">Import Applications</emphasis> on the right hand side. A confirmation message should appear as such:
</para>
<mediaobject>
<imageobject>
@@ -35,12 +42,9 @@
</imageobject>
</mediaobject>
</step>
- <step>
- <para>
- Click the <emphasis role="bold">OK</emphasis> button to accept importing gadgets automatically. All portlets/gadgets categories will be imported and listed on the left pane.
- </para>
- </step>
</procedure>
+
+
</section>
Modified: portal/trunk/docs/user-guide/en/modules/gadgetsAdmin/Manage_Portlets_and_Gadgets.xml
===================================================================
--- portal/trunk/docs/user-guide/en/modules/gadgetsAdmin/Manage_Portlets_and_Gadgets.xml 2010-03-03 11:07:30 UTC (rev 1940)
+++ portal/trunk/docs/user-guide/en/modules/gadgetsAdmin/Manage_Portlets_and_Gadgets.xml 2010-03-03 14:24:08 UTC (rev 1941)
@@ -41,19 +41,22 @@
<section id="sect-User_Guide-Manage_Portlets_and_Gadgets-Add_a_new_Category">
<title>Add a new Category</title>
- <para>
- You easily add a new category by following these guides:
- </para>
<procedure>
<step>
<para>
- Go to <emphasis role="bold">Administration</emphasis> -> <emphasis role="bold">Application Registry</emphasis> page -> <emphasis role="bold">Organize</emphasis> item.
+ In the <emphasis role="bold">Group</emphasis> menu, select <emphasis role="bold">Administration</emphasis> -> <emphasis role="bold">Application Registry</emphasis>.
</para>
</step>
<step>
<para>
- Open a form to add a new category on the right pane by clicking the <emphasis role="bold">Add Category</emphasis> button on the action bar:
+ Click the <emphasis role="bold">Add Category</emphasis> button on the action bar:
</para>
+<note>
+<title>DOC TODO</title>
+<para>
+redo screenshot with mouse pointer
+</para>
+</note>
<mediaobject>
<imageobject>
<imagedata fileref="images/AddCategory1.png" format="PNG" width="444" />
@@ -68,7 +71,7 @@
<term>Category name</term>
<listitem>
<para>
- The name of the category which you want to add. This field is required and its length must be between 3 and 30 characters.
+ The name of the category. This field is required and its length must be between 3 and 30 characters. Only alpha, digit, dash and underscore characters are allowed.
</para>
</listitem>
</varlistentry>
@@ -76,7 +79,7 @@
<term>Display name</term>
<listitem>
<para>
- The display name of the category in list and its length must be between 3 and 30 characters.
+ The display name of the category and its length must be between 3 and 30 characters.
</para>
</listitem>
</varlistentry>
@@ -90,9 +93,9 @@
</varlistentry>
</variablelist>
<para>
- The <emphasis role="bold">Permission Setting</emphasis> tab: used to set the access permission for a category.
+ The <emphasis role="bold">Permission Setting</emphasis> tab provides access to the Permission manager.
</para>
- <para>This access permission enters the game whenever a user creates or modifies a page. In that moment the user only can see and use portlets in those categories on which he or she has access permission (defined by groups and memberships).
+ <para>The permission criteria are used whenever a user creates or modifies a page. In that case the user can only see and use portlets in those categories on which he or she has access to (as defined by groups and memberships).
</para>
<mediaobject>
<imageobject>
@@ -100,6 +103,7 @@
</imageobject>
</mediaobject>
</step>
+<!--
<step>
<para>
Enter values for required fields in this form.
@@ -110,28 +114,26 @@
Click the <emphasis role="bold">Save</emphasis> button to accept adding a new category into a category list. The new category will be added into a list on the left pane.
</para>
</step>
+-->
</procedure>
</section>
<section id="sect-User_Guide-Manage_Portlets_and_Gadgets-Edit_a_Category">
<title>Edit a Category</title>
- <para>
- You can edit a category in list by following:
- </para>
<procedure>
<step>
<para>
- Click the edit icon on the title bar of a category that you want to edit.
+ Click the Edit icon located next to the title bar.
</para>
</step>
<step>
<para>
- Change the information of the selected category.
+ Update the category information.
</para>
</step>
<step>
<para>
- Click the <emphasis role="bold">Save</emphasis> button to accept changes.
+ Click the <emphasis role="bold">Save</emphasis> button to apply changes.
</para>
</step>
</procedure>
@@ -139,33 +141,33 @@
<section id="sect-User_Guide-Manage_Portlets_and_Gadgets-Delete_a_Category">
<title>Delete a Category</title>
- <para>
- You also easily remove a category from a list:
- </para>
<procedure>
<step>
<para>
- Click the trash can icon on the Title bar of the category that you want to delete.
+ Click the Trash can icon located next to the title bar.
</para>
</step>
<step>
<para>
- Click on the <emphasis role="bold">OK</emphasis> button on the message to accept deleting or click on the <emphasis role="bold">Cancel</emphasis> button to quit.
+ Accept the deletion by clicking <emphasis role="bold">OK</emphasis>
</para>
</step>
</procedure>
</section>
<section id="sect-User_Guide-Manage_Portlets_and_Gadgets-Add_PortletsGadgets_to_the_specific_Category">
- <title>Add Portlets/Gadgets to the specific Category</title>
- <para>
- You can follow these steps to add a portlet/gadget to your prefered category :
- </para>
+ <title>Add Portlets/Gadgets to a Category</title>
<procedure>
<step>
<para>
- Click the "add" icon on the title bar of a category to which you want to add portlets. An interface will appear in the right pane as you can see below:
+ Click the "Plus" icon located next to the category name to which you want to add portlets/gadgets.
</para>
+<note>
+<title>DOC TODO</title>
+<para>
+redo screenshot
+</para>
+</note>
<mediaobject>
<imageobject>
<imagedata fileref="images/AddPortlet2.png" format="PNG" width="444" />
@@ -176,7 +178,7 @@
<term>Display name</term>
<listitem>
<para>
- The display name of a portlet/gadget that you want to add to a category.
+ The display name of a portlet/gadget.
</para>
</listitem>
</varlistentry>
@@ -184,7 +186,7 @@
<term>Application Type</term>
<listitem>
<para>
- the type of selected object.
+ Either Portlet or Gadget.
</para>
</listitem>
</varlistentry>
@@ -192,7 +194,7 @@
</step>
<step>
<para>
- Enter the display name and select a type for the selected portlet/gadget.
+ Enter the display name and select a type
</para>
</step>
<step>
@@ -202,7 +204,7 @@
</step>
<step>
<para>
- Click the <emphasis role="bold">Save</emphasis> button to accept adding a portlet/gadget to a category.
+ Click the <emphasis role="bold">Save</emphasis> button to add the selected portlet/gadget to the category.
</para>
</step>
</procedure>
@@ -210,23 +212,27 @@
<section id="sect-User_Guide-Manage_Portlets_and_Gadgets-Set_Access_Permission_on_Portlets">
<title>Set Access Permission on Portlets</title>
- <para>
- You easily set an access permission on a portlet by following these guides:
- </para>
+
<procedure>
<step>
<para>
- Go to <emphasis role="bold">Group</emphasis> in the Toolbar, highlight <emphasis role="bold">Administration</emphasis> and then click on <emphasis role="bold">Application Registry</emphasis>.
+ In the <emphasis role="bold">Group</emphasis> menu, select <emphasis role="bold">Administration</emphasis> -> <emphasis role="bold">Application Registry</emphasis>.
</para>
+<note>
+<title>DOC TODO</title>
+<para>
+redo screenshot
+</para>
+</note>
<mediaobject>
<imageobject>
- <imagedata fileref="images/PortletPermission.png" format="PNG" width="444" />
+ <imagedata fileref="images/PortletPermission.png" format="PNG" />
</imageobject>
</mediaobject>
</step>
<step>
<para>
- Select a category on the left pane that includes the portlet you want to set right. Then all portlets of the selected category are listed immediately and detail information of each portlet is displayed on the right pane.
+ Select a category in the Category pane that includes the portlet you want to set permissions on. All portlets of that category will be listed underneath.
</para>
</step>
<step>
@@ -241,38 +247,46 @@
</listitem>
<listitem>
<para>
- Or check the <emphasis role="bold">Make it public</emphasis> check box to allow everyone to access.
+ Or check <emphasis role="bold">Make it public</emphasis> to allow everyone to access.
</para>
</listitem>
</itemizedlist>
<para>
- Whenever the user creates or modifies a page he or she can only see and use portlets that fulfill two conditions: the portlet is in a <emphasis role="bold">category</emphasis> on which the user has access permission (see category section above) and the user has access permission on the <emphasis role="bold">portlet</emphasis>
+ Whenever the user creates or modifies a page, he or she can only see and use gadgets/portlets that fulfill two conditions: the portlet is in a <emphasis role="bold">category</emphasis> which the user has access permission too and the user has access permission on the <emphasis role="bold">portlet</emphasis>
</para>
</step>
</procedure>
</section>
<section id="sect-User_Guide-Manage_Portlets_and_Gadgets-View_detail_information_of_the_specific_Portlets">
- <title>View detail information of the specific Portlets</title>
- <para>
- You easily view detail information of all specific portlets by following these guides:
- </para>
+ <title>View/Edit portlet/gadget information</title>
<procedure>
<step>
<para>
- Go to <emphasis role="bold">Group</emphasis> in the Toolbar, highlight <emphasis role="bold">Administration</emphasis> and then click <emphasis role="bold">Application Registry</emphasis>. On the <emphasis role="bold">Application Registry</emphasis> page, click the <emphasis role="bold">Portlet</emphasis> item. A form to view all portlets will appear:
+ In the <emphasis role="bold">Group</emphasis> menu, select <emphasis role="bold">Administration</emphasis> -> <emphasis role="bold">Application Registry</emphasis>.
</para>
- <mediaobject>
+
+<note>
+<title>DOC TODO</title>
+<para>
+redo screenshot
+</para>
+</note> <mediaobject>
<imageobject>
<imagedata fileref="images/Portlet.png" format="PNG" width="444" />
</imageobject>
</mediaobject>
- <variablelist>
+<note>
+<title>DOC TODO</title>
+<para>
+add screenshot with a gadget/portlet in Edit mode ("Edit application information")
+</para>
+</note> <variablelist>
<varlistentry>
<term>Left pane</term>
<listitem>
<para>
- lists all portlets in two parts: Local and Remote
+ All portlets and gadgets grouped by categories
</para>
</listitem>
</varlistentry>
@@ -286,35 +300,33 @@
</varlistentry>
</variablelist>
</step>
- <step>
- <para>
- Select one portlet in the list on the left pane. The detail information of that portlet appears on the right pane.
- </para>
- </step>
</procedure>
</section>
<section id="sect-User_Guide-Manage_Portlets_and_Gadgets-Add_a_Gadget">
<title>Add a Gadget</title>
<para>
- You can follow these steps to add a gadget to the gadget list :
+ In the <emphasis role="bold">Group</emphasis> menu, select <emphasis role="bold">Administration</emphasis> -> <emphasis role="bold">Application Registry</emphasis>. Then click on the <emphasis role="bold">Gadget</emphasis> icon.
</para>
- <para>
- Go to <emphasis role="bold">Group</emphasis> in the Toolbar, highlight <emphasis role="bold">Administration</emphasis> and then click <emphasis role="bold">Application Registry</emphasis>. On the <emphasis role="bold">Application Registry</emphasis> page, click the <emphasis role="bold">Gadget</emphasis> item
- </para>
+<note>
+<title>DOC TODO</title>
+<para>
+redo screenshot
+</para>
+</note>
<mediaobject>
<imageobject>
<imagedata fileref="images/Gadgetnew.png" format="PNG" width="444" />
</imageobject>
</mediaobject>
<para>
- There are two ways to add gadgets:
+ You may add a remote gadget using its URL or create a brand-new one:
</para>
- <procedure id="proc-User_Guide-Manage_Portlets_and_Gadgets-Add_a_remote_Gadget">
+ <section id="sect-User_Guide-Manage_Portlets_and_Gadgets-Add_a_remote_Gadget">
<title>Add a remote Gadget</title>
<step>
<para>
- Open the form to add a remote gadget by clicking <emphasis role="bold">Add a remote gadget</emphasis> :
+ Click on <emphasis role="bold">Add a remote gadget</emphasis>:
</para>
<mediaobject>
<imageobject>
@@ -324,21 +336,21 @@
</step>
<step>
<para>
- Enter a link to an .xml file in the <emphasis role="bold">URL</emphasis> field.
+ Enter the url of the remote gadget in the <emphasis role="bold">URL</emphasis> field.
</para>
</step>
<step>
<para>
- Click on the <emphasis role="bold">Add</emphasis> button to accept the entered URL or on the <emphasis role="bold">Cancel</emphasis> button to quit. The added gadget will be added into gadget list on left pane of the Dashboard portlet.
+ Click <emphasis role="bold">Add</emphasis>. The new remote gadget will be appear in gadget list on left pane of the Dashboard portlet.
</para>
</step>
- </procedure>
+ </section>
- <procedure id="sect-User_Guide-Manage_Portlets_and_Gadgets-Create_a_new_Gadget">
+ <section id="sect-User_Guide-Manage_Portlets_and_Gadgets-Create_a_new_Gadget">
<title>Create a new Gadget</title>
<step>
<para>
- Show the form to add a new gadget by clicking <emphasis role="bold">Create a new gadget</emphasis> :
+ Click on <emphasis role="bold">Create a new gadget</emphasis>:
</para>
<mediaobject>
<imageobject>
@@ -350,25 +362,15 @@
<term>Source</term>
<listitem>
<para>
- The source code to create a new gadget. This source will be a .xml file.
+ The xml descriptor of the gadget.
</para>
</listitem>
</varlistentry>
</variablelist>
</step>
- <step>
- <para>
- Enter a value for the <emphasis role="bold">Source</emphasis> field in this form.
- </para>
- </step>
- <step>
- <para>
- Click the <emphasis role="bold">Save</emphasis> button to create a new gadget. The created gadget will be added to the gadget list on the left pane of the Dashboard Portlet.
- </para>
- </step>
- </procedure>
+ </section>
<para>
- You also edit, refresh and delete a local gadget as well as a remote gadget:
+ You may also edit, refresh and delete a local gadget as well as a remote gadget:
</para>
<mediaobject>
<imageobject>
@@ -380,13 +382,19 @@
<section id="sect-User_Guide-Manage_Portlets_and_Gadgets-Add_a_new_Gadget_to_the_Dashboard_Portlet">
<title>Add a new Gadget to the Dashboard Portlet</title>
<para>
- You can add a new gadget to the gadget list in the Dashboard portlet :
+ You can add new gadgets to the Dashboard portlet:
</para>
<procedure>
<step>
<para>
- Go to the Dashboard on the navigation bar. Click on the <emphasis role="bold">Add Gadgets</emphasis> link :
+ Click <emphasis role="bold">Dashboard</emphasis> on the navigation bar. Click on the <emphasis role="bold">Add Gadgets</emphasis> link :
</para>
+<note>
+<title>DOC TODO</title>
+<para>
+redo screenshot
+</para>
+</note>
<mediaobject>
<imageobject>
<imagedata fileref="images/Add.png" format="PNG" width="444" />
@@ -395,6 +403,12 @@
<para>
The dialog to add a new gadget will appear :
</para>
+<note>
+<title>DOC TODO</title>
+<para>
+redo screenshot
+</para>
+</note>
<mediaobject>
<imageobject>
<imagedata fileref="images/Add3.png" format="PNG" width="444" />
@@ -403,42 +417,21 @@
</step>
<step>
<para>
- Enter a link (a .xml file or RSS) in the text box on the left pane.
+ Either enter a valid link (XML or RSS) to a gadget and click the "+" icon
+or pick an existing gadget in the categories listed below
</para>
</step>
- <step>
- <para>
- Click on the icon!images/PlusIcon.png! to add a new gadget to the gadget list beneath.
- </para>
- </step>
</procedure>
</section>
<section id="sect-User_Guide-Manage_Portlets_and_Gadgets-Manage_Gadgets">
<title>Manage Gadgets</title>
- <itemizedlist>
- <listitem>
- <para>
- <xref linkend="proc-User_Guide-Manage_Gadgets-Edit_a_Gadget"/>
- </para>
- </listitem>
- <listitem>
- <para>
- <xref linkend="proc-User_Guide-Manage_Gadgets-Refresh_a_Gadget"/>
- </para>
- </listitem>
- <listitem>
- <para>
- <xref linkend="proc-User_Guide-Manage_Gadgets-Delete_a_Gadget"/>
- </para>
- </listitem>
- </itemizedlist>
- <procedure id="proc-User_Guide-Manage_Gadgets-Edit_a_Gadget">
+ <section id="sect-User_Guide-Manage_Gadgets-Edit_a_Gadget">
<title>Edit a Gadget</title>
<step>
<para>
- Click the edit icon. This will display a dialog:
+ Click the <emphasis role="bold">Edit Gadget</emphasis> icon located in the header of the <emphasis role="bold">Gadget Details</emphasis> page to display the following window:
</para>
<mediaobject>
<imageobject>
@@ -446,37 +439,23 @@
</imageobject>
</mediaobject>
</step>
- <step>
- <para>
- After editing , click the <emphasis role="bold">Save</emphasis> button to accept changing or <emphasis role="bold">Cancel</emphasis> button to quit.
- </para>
- </step>
- </procedure>
+
+ </section>
- <procedure id="proc-User_Guide-Manage_Gadgets-Refresh_a_Gadget">
+ <section id="sect-User_Guide-Manage_Gadgets-Refresh_a_Gadget">
<title>Refresh a Gadget</title>
<step>
- <formalpara>
- <title>Local gadget</title>
- <para>
- After editing information about the gadget that you want to, click the icon!images/Refresh.png! to refresh all information of that gadget.
- </para>
- </formalpara>
-
- <formalpara>
- <title>Remote gadget</title>
- <para>
- When information of a remote gadget has been changed by another server, click the icon!images/Refresh.png! means it will update information of a remote gadget from that server.
- </para>
- </formalpara>
+ <para>
+ Click the <emphasis role="bold">Refresh information</emphasis> icon located in the header of the <emphasis role="bold">Gadget Details</emphasis> page to display the following window:
+ </para>
</step>
- </procedure>
+ </section>
- <procedure id="proc-User_Guide-Manage_Gadgets-Delete_a_Gadget">
+ <section id="sect-User_Guide-Manage_Gadgets-Delete_a_Gadget">
<title>Delete a Gadget</title>
<step>
<para>
- Click the trash can icon on the row of the gadget that you want to delete. this will prompt an alert message :
+ Click the trash can icon located next to the name of the gadget. An alert message should pop up asking for confirmation:
</para>
<mediaobject>
<imageobject>
@@ -484,12 +463,7 @@
</imageobject>
</mediaobject>
</step>
- <step>
- <para>
- Click the <emphasis role="bold">OK</emphasis> button to accept deleting or <emphasis role="bold">Cancel</emphasis> button to quit without deleting.
- </para>
- </step>
- </procedure>
+ </section>
</section>
Modified: portal/trunk/docs/user-guide/en/modules/language/Change_Interface_Language.xml
===================================================================
--- portal/trunk/docs/user-guide/en/modules/language/Change_Interface_Language.xml 2010-03-03 11:07:30 UTC (rev 1940)
+++ portal/trunk/docs/user-guide/en/modules/language/Change_Interface_Language.xml 2010-03-03 14:24:08 UTC (rev 1941)
@@ -6,7 +6,7 @@
<section id="sect-User_Guide-Change_Interface_Language">
<title>Change Interface Language</title>
<para>
- &PRODUCT; allows users to choose their interface language to work with.
+ &PRODUCT; allows users to pick the language of the user interface.
</para>
<para>
The priority of the interface language setting is:
@@ -29,14 +29,60 @@
</listitem>
</orderedlist>
<para>
- Users should pay attention to this order to change the language type appropriately.
+ Note that users should pay attention to this order in order to change the language type appropriately.
</para>
<para>
- You can change the interface language permanently in three ways :
+ You may switch the interface language in various places as follows:
</para>
- <section id="sect-User_Guide-Change_Interface_Language-The_1st_way">
- <title>Method One</title>
+ <section id="sect-User_Guide-Change_Interface_Language_User">
+ <title>Language for the user</title>
+ <para>
+ You may set the interface language for your account alone and not for the entire Portal as follows:
+ </para>
+ <procedure>
+ <step>
+ <para>
+ Open up the Start menu and click on <emphasis role="bold">Change Language</emphasis> :
+ </para>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/StarPortlet.png" format="PNG" />
+ </imageobject>
+ </mediaobject>
+ </step>
+ <step>
+ <para>
+ The <emphasis role="bold">Interface Language Setting</emphasis> window lists all available languages installed in the Portal:
+ </para>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/InterfaceLanguage.png" format="PNG" width="444" />
+ </imageobject>
+ </mediaobject>
+ </step>
+ <step>
+ <para>
+ Click on the desired language. The associated native word is highlighted.
+ </para>
+ </step>
+ <step>
+ <para>
+ Click <emphasis role="bold">Apply</emphasis> to save your change. The site should refresh and display its attributes in the language you've just chosen.
+ </para>
+ </step>
+ </procedure>
+ </section>
+
+ <section id="sect-User_Guide-Change_Interface_Language-Portal">
+ <title>Language of the Portal</title>
+
+<note>
+<title>DOC TODO</title>
+<para>
+This feature does not seem to exist anymore. Please investigate.
+</para>
+</note>
<para>
This methods allows you to change the interface language of the current Portal.
</para>
@@ -71,7 +117,7 @@
<procedure>
<step>
<para>
- Go to <emphasis role="bold">Editor</emphasis> on the Toolbar and click <emphasis role="bold">Edit Page</emphasis>. The <emphasis role="bold">Edit Inline Composer</emphasis> popup will appear:
+ Open up the <emphasis role="bold">Site Editor</emphasis> menu on the Toolbar and choose <emphasis role="bold">Edit Page</emphasis>. The <emphasis role="bold">Edit Inline Composer</emphasis> popup will appear:
</para>
<mediaobject>
<imageobject>
@@ -99,6 +145,15 @@
<section id="sect-User_Guide-Change_Interface_Language-The_2nd_way">
<title>Method Two</title>
+
+<note>
+<title>DOC TODO</title>
+<para>
+This section seems to be identical to section <xref linkend="sect-User_Guide-Change_Interface_Language_User" />. Please investigate.
+</para>
+</note>
+
+
<!-- <para>
If you can access &PRODUCT; Start, you can do this way to set interface language for yourself, not for interface language of Portal by these following steps:
</para>
@@ -162,44 +217,7 @@
</procedure>
</section>
- <section id="sect-User_Guide-Change_Interface_Language-The_3rd_way">
- <title>Method Three</title>
- <para>
- You can also set the interface language for yourself alone (and not for the entire Portal) this way:
- </para>
- <procedure>
- <step>
- <para>
- Click on the GateIn Logo on the left corner to show the <emphasis role="bold">Interface Language Setting</emphasis> form:
- </para>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/StarPortlet.png" format="PNG" />
- </imageobject>
- </mediaobject>
- </step>
- <step>
- <para>
- The <emphasis role="bold">Interface Language Setting</emphasis> form will appear:
- </para>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/InterfaceLanguage.png" format="PNG" width="444" />
- </imageobject>
- </mediaobject>
- </step>
- <step>
- <para>
- Select another language in list. The selected language will be marked with an icon.
- </para>
- </step>
- <step>
- <para>
- Click the <emphasis role="bold">Apply</emphasis> button to change the interface language or click the <emphasis role="bold">Cancel</emphasis> button to quit without changes.
- </para>
- </step>
- </procedure>
- </section>
+
<section id="sect-User_Guide-Change_Interface_Language-Set_language_for_a_user">
<title>Set language for a user</title>
Modified: portal/trunk/docs/user-guide/en/modules/language/Multi-Language_Navigation_Nodes.xml
===================================================================
--- portal/trunk/docs/user-guide/en/modules/language/Multi-Language_Navigation_Nodes.xml 2010-03-03 11:07:30 UTC (rev 1940)
+++ portal/trunk/docs/user-guide/en/modules/language/Multi-Language_Navigation_Nodes.xml 2010-03-03 14:24:08 UTC (rev 1941)
@@ -21,7 +21,7 @@
The resource key format is: <emphasis role="bold">#{key}</emphasis>
</para>
<para>
- The resource key can contain any text that you consider to be reasonable. It should, however, be human-readable and must not contain spaces.
+ The resource key can contain any text that you consider appropriate to satisfy your business needs. It should, however, be human-readable and must not contain spaces.
</para>
</section>
@@ -51,19 +51,17 @@
</section>
<section id="sect-User_Guide-Multi_Language_Navigation_Nodes-Creating_Keys_using_the_Create_Page_Wizard">
- <title>Creating Keys using the <emphasis role="bold">Create Page Wizard</emphasis></title>
- <para>
- To use a guided wizard to create keys, follow these steps:
- </para>
+ <title>Creating Keys using <emphasis role="bold">Create Page Wizard</emphasis></title>
+
<procedure>
<step>
<para>
- Go to <emphasis role="bold">Group</emphasis> and click on <emphasis role="bold">Add New Page</emphasis>. This will activate the <emphasis role="bold">Create Page Wizard</emphasis>.
+ Open the <emphasis role="bold">Site Editor</emphasis> menu and pick <emphasis role="bold">Add New Page</emphasis>.
</para>
</step>
<step>
<para>
- Click the <emphasis role="bold">Next</emphasis> button.
+ Enter a name for this new page
</para>
</step>
<step>
@@ -78,15 +76,28 @@
</step>
<step>
<para>
- Click on the <emphasis role="bold">Next</emphasis> button to continue and click on the <emphasis role="bold">Save</emphasis> button.
+ Click <emphasis role="bold">Next</emphasis> to get on the next screen where you may define a page layout out of existing templates.
</para>
</step>
+ <step>
+ <para>
+ Click <emphasis role="bold">Next</emphasis> to finalize the page creation with portlets for instance.
+ </para>
+ </step>
</procedure>
</section>
<section id="sect-User_Guide-Multi_Language_Navigation_Nodes-CreatingEditing_Keys_by_Edit_Page_Wizard">
- <title>Creating/Editing Keys by <emphasis role="bold">Edit Page Wizard</emphasis></title>
+ <title>Creating/Editing Keys using <emphasis role="bold">Edit Page Wizard</emphasis></title>
+
+<note>
+<title>DOC TODO</title>
+<para>
+broken right now
+https://jira.jboss.org/jira/browse/GTNPORTAL-787
+</para>
+</note>
<procedure>
<step>
<para>
@@ -107,27 +118,45 @@
</section>
<section id="sect-User_Guide-Multi_Language_Navigation_Nodes-CreatingEditing_Keys_using_the_Edit_Page_and_Navigation">
- <title>Creating/Editing Keys using the <emphasis role="bold">Edit Page and Navigation</emphasis></title>
+ <title>Creating/Editing Keys using <emphasis role="bold">Navigation MAnagement</emphasis></title>
<procedure>
<step>
<para>
- Go to <emphasis role="bold">GateIn Start</emphasis> -> <emphasis role="bold">Administration</emphasis> -> <emphasis role="bold">Advanced</emphasis> --> <emphasis role="bold">Edit Page and Navigation</emphasis>.
+ Click on <emphasis role="bold">Site</emphasis> in the Toolbar then <emphasis role="bold">Edit Navigation</emphasis>
</para>
</step>
+<note>
+<title>DOC TODO</title>
+<para>
+we need a screenshot here with the Navigation Management window
+</para>
+</note>
<step>
<para>
- There are two alternatives:
+ Two alternatives are available at this point:
</para>
<orderedlist numeration="arabic">
<listitem>
<para>
- Create a new node: Select the parent path, right click and click on <emphasis role="bold">Add new node</emphasis> option .
+ Create a new node: Select the parent path, right click and click on <emphasis role="bold">Add new Node</emphasis> option .
</para>
- </listitem>
+<note>
+<title>DOC TODO</title>
+<para>
+missing screenshot
+</para>
+</note>
+ </listitem>
<listitem>
<para>
- Edit an existing node: Right click on the node you want to create/edit key and click on <emphasis role="bold">Edit this node</emphasis> in the pop-up menu.
+ Edit an existing node: Right-click on the node you want to create/edit and pick <emphasis role="bold">Edit this Node</emphasis> in the pop-up menu.
</para>
+<note>
+<title>DOC TODO</title>
+<para>
+missing screenshot
+</para>
+</note>
</listitem>
</orderedlist>
</step>
14 years, 10 months
gatein SVN: r1940 - in portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui: portal and 1 other directory.
by do-not-reply@jboss.org
Author: tan_pham_dinh
Date: 2010-03-03 06:07:30 -0500 (Wed, 03 Mar 2010)
New Revision: 1940
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java
Log:
GTNPORTAL-791: Action in webui based portlets does not work correctly after editing layout
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java 2010-03-03 10:40:53 UTC (rev 1939)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java 2010-03-03 11:07:30 UTC (rev 1940)
@@ -383,6 +383,7 @@
}
uiPortalApp.setModeState(UIPortalApplication.NORMAL_MODE);
uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
+ Util.getPortalRequestContext().setFullRender(true);
uiWizard.saveData();
UIPortalToolPanel toolPanel = uiWorkingWS.findFirstComponentOfType(UIPortalToolPanel.class);
toolPanel.setUIComponent(null);
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java 2010-03-03 10:40:53 UTC (rev 1939)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java 2010-03-03 11:07:30 UTC (rev 1940)
@@ -358,6 +358,7 @@
uiEditWS.getComposer().setEditted(false);
uiEditWS.setRendered(false);
uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
+ prContext.setFullRender(true);
UISiteBody siteBody = uiWorkingWS.findFirstComponentOfType(UISiteBody.class);
UIPortal uiPortal = uiWorkingWS.getBackupUIPortal();
@@ -412,6 +413,7 @@
}
uiPortalApp.setModeState(UIPortalApplication.NORMAL_MODE);
uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
+ prContext.setFullRender(true);
if (uri == null)
{
@@ -592,6 +594,7 @@
UIPortalApplication uiPortalApp = Util.getUIPortalApplication();
uiPortalApp.setModeState(UIPortalApplication.NORMAL_MODE);
uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
+ Util.getPortalRequestContext().setFullRender(true);
UIPortal uiPortal = uiPortalApp.getShowedUIPortal();
uiPortal.setRenderSibling(UIPortal.class);
@@ -630,6 +633,7 @@
uiPortalApp.addMessage(new ApplicationMessage("UIPageBrowser.msg.PageNotExist", new String[]{pageId}, 1));
uiPortalApp.setModeState(UIPortalApplication.NORMAL_MODE);
uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
+ Util.getPortalRequestContext().setFullRender(true);
PageNodeEvent<UIPortal> pnevent =
new PageNodeEvent<UIPortal>(uiPortal, PageNodeEvent.CHANGE_PAGE_NODE,
(uiPortal.getSelectedNode() != null ? uiPortal.getSelectedNode().getUri() : null));
@@ -676,6 +680,7 @@
}
uiPortalApp.setModeState(UIPortalApplication.NORMAL_MODE);
uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
+ Util.getPortalRequestContext().setFullRender(true);
PageNodeEvent<UIPortal> pnevent =
new PageNodeEvent<UIPortal>(uiPortal, PageNodeEvent.CHANGE_PAGE_NODE, (uiPortal.getSelectedNode() != null
? uiPortal.getSelectedNode().getUri() : null));
14 years, 10 months
gatein SVN: r1939 - in portal/trunk/component/portal/src: test/java/org/exoplatform/portal/config and 1 other directory.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-03-03 05:40:53 -0500 (Wed, 03 Mar 2010)
New Revision: 1939
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/spi/portlet/PortletState.java
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/spi/portlet/Preference.java
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestPortletPreferences.java
Log:
GTNPORTAL-707 : Cannot save portlet preference with null value
Modified: portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/spi/portlet/PortletState.java
===================================================================
--- portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/spi/portlet/PortletState.java 2010-03-03 10:16:54 UTC (rev 1938)
+++ portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/spi/portlet/PortletState.java 2010-03-03 10:40:53 UTC (rev 1939)
@@ -23,6 +23,8 @@
import org.gatein.mop.core.api.MOPFormatter;
import org.gatein.mop.core.api.workspace.content.AbstractCustomizationState;
+import java.util.ArrayList;
+import java.util.List;
import java.util.Map;
/**
@@ -45,19 +47,36 @@
public void setPayload(Portlet payload)
{
- this.payload = payload;
-
- //
Map<String, PreferenceState> entries = getChildren();
entries.clear();
for (Preference pref : payload)
{
PreferenceState prefState = create();
+
+ //
entries.put(pref.getName(), prefState);
- prefState.setValue(pref.getValues());
+
+ // Compute values
+ List<String> toCopyValues = pref.getValues();
+ ArrayList<String> copiedValues = new ArrayList<String>(toCopyValues.size());
+ for (int i = 0;i < toCopyValues.size();i++)
+ {
+ String value = toCopyValues.get(i);
+ if (value == null)
+ {
+ value = "";
+ }
+ copiedValues.add(value);
+ }
+
+ //
+ prefState.setValue(copiedValues);
prefState.setReadOnly(pref.isReadOnly());
}
+
+ // Invalidate payload that will be reloaded next time
+ payload = null;
}
public Portlet getPayload()
Modified: portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/spi/portlet/Preference.java
===================================================================
--- portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/spi/portlet/Preference.java 2010-03-03 10:16:54 UTC (rev 1938)
+++ portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/spi/portlet/Preference.java 2010-03-03 10:40:53 UTC (rev 1939)
@@ -56,13 +56,6 @@
{
throw new IllegalArgumentException();
}
- for (String value : values)
- {
- if (value == null)
- {
- throw new IllegalArgumentException();
- }
- }
//
this.name = name;
@@ -76,10 +69,6 @@
{
throw new NullPointerException();
}
- if (value == null)
- {
- throw new NullPointerException();
- }
//
this.name = name;
Modified: portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestPortletPreferences.java
===================================================================
--- portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestPortletPreferences.java 2010-03-03 10:16:54 UTC (rev 1938)
+++ portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestPortletPreferences.java 2010-03-03 10:40:53 UTC (rev 1939)
@@ -87,4 +87,23 @@
assertNotNull(prefs);
assertEquals(new PortletBuilder().add("template", "someanothervalue").build(), prefs);
}
+
+ public void testNullPreferenceValue() throws Exception
+ {
+ Page page = storage_.getPage("portal::test::test4");
+ Application<Portlet> app = (Application<Portlet>)page.getChildren().get(0);
+ PersistentApplicationState<Portlet> state = (PersistentApplicationState)app.getState();
+
+ //
+ Portlet prefs = storage_.load(state, ApplicationType.PORTLET);
+
+ //
+ prefs.setValue("template", null);
+ storage_.save(state, prefs);
+
+ //
+ prefs = storage_.load(state, ApplicationType.PORTLET);
+ assertNotNull(prefs);
+ assertEquals(new PortletBuilder().add("template", "").build(), prefs);
+ }
}
14 years, 10 months
gatein SVN: r1938 - in portal/trunk: testsuite and 1 other directories.
by do-not-reply@jboss.org
Author: trong.tran
Date: 2010-03-03 05:16:54 -0500 (Wed, 03 Mar 2010)
New Revision: 1938
Added:
portal/trunk/testsuite/webuibasedsamples/
Removed:
portal/trunk/examples/portlets/webuibasedsamples/
Modified:
portal/trunk/examples/portlets/pom.xml
portal/trunk/testsuite/pom.xml
portal/trunk/testsuite/webuibasedsamples/pom.xml
Log:
Move the webui based samples to better place
Modified: portal/trunk/examples/portlets/pom.xml
===================================================================
--- portal/trunk/examples/portlets/pom.xml 2010-03-03 08:34:26 UTC (rev 1937)
+++ portal/trunk/examples/portlets/pom.xml 2010-03-03 10:16:54 UTC (rev 1938)
@@ -17,7 +17,6 @@
<module>jsfhellouser</module>
<module>jsphellouser</module>
<module>simplesthelloworld</module>
- <module>webuibasedsamples</module>
</modules>
</project>
Modified: portal/trunk/testsuite/pom.xml
===================================================================
--- portal/trunk/testsuite/pom.xml 2010-03-03 08:34:26 UTC (rev 1937)
+++ portal/trunk/testsuite/pom.xml 2010-03-03 10:16:54 UTC (rev 1938)
@@ -13,6 +13,7 @@
<modules>
<module>selenium-snifftests</module>
+ <module>webuibasedsamples</module>
</modules>
</project>
Copied: portal/trunk/testsuite/webuibasedsamples (from rev 1937, portal/trunk/examples/portlets/webuibasedsamples)
Modified: portal/trunk/testsuite/webuibasedsamples/pom.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/pom.xml 2010-03-03 08:34:26 UTC (rev 1937)
+++ portal/trunk/testsuite/webuibasedsamples/pom.xml 2010-03-03 10:16:54 UTC (rev 1938)
@@ -1,14 +1,13 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
- <groupId>org.gatein.portal.examples.portlets</groupId>
- <artifactId>parent</artifactId>
+ <groupId>org.exoplatform.portal</groupId>
+ <artifactId>exo.portal.testsuite</artifactId>
<version>3.0.0-CR02-SNAPSHOT</version>
</parent>
- <artifactId>gatein-webui-based-samples</artifactId>
+ <artifactId>exo.webui.based.samples</artifactId>
<packaging>war</packaging>
-
<name>GateIn Portal Examples - WebUI based samples</name>
<dependencies>
14 years, 10 months
gatein SVN: r1937 - portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget.
by do-not-reply@jboss.org
Author: hoang_to
Date: 2010-03-03 03:34:26 -0500 (Wed, 03 Mar 2010)
New Revision: 1937
Modified:
portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/Gadgets.js
Log:
GTNPORTAL-626: Temporarily remove the noCache and Debug checkboxes from gadget preference
Modified: portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/Gadgets.js
===================================================================
--- portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/Gadgets.js 2010-03-03 06:36:50 UTC (rev 1936)
+++ portal/trunk/web/eXoResources/src/main/webapp/javascript/eXo/gadget/Gadgets.js 2010-03-03 08:34:26 UTC (rev 1937)
@@ -691,6 +691,8 @@
this.id +').handleSaveUserPrefs()"> <input type="button" value="'+eXo.gadget.UIGadget.CancelTitle+'" onclick="gadgets.container.getGadget(' +
this.id +').handleCancelUserPrefs()">';
parentEl.appendChild(saveEl);
+
+ /** Minh Hoang TO: Instantly remove the noCache and Debug boxes
if(gadget.isdev) {
//Are we in a portlet ? if not, we don't had this code because we can't save the value
var gadgetEl = document.getElementById("gadget_" + gadget.id) ;
@@ -706,6 +708,7 @@
parentEl.appendChild(devEl);
}
}
+ */
};
14 years, 10 months
gatein SVN: r1936 - in portal/trunk: web/portal/src/main/webapp/groovy/portal/webui/page and 1 other directories.
by do-not-reply@jboss.org
Author: tan_pham_dinh
Date: 2010-03-03 01:36:50 -0500 (Wed, 03 Mar 2010)
New Revision: 1936
Removed:
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/page/UIPageCreateDescription.gtmpl
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreateDescription.java
Modified:
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ar.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_de.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_en.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_es.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_fr.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_it.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ja.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ko.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ne.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_nl.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ru.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_uk.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_vi.properties
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_zh.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_zh_TW.xml
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java
Log:
- GTNPORTAL-786: Apply to save function of PageCreationWizard \n - Remove unnecessary PageCreateDescription
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ar.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ar.xml 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ar.xml 2010-03-03 06:36:50 UTC (rev 1936)
@@ -1144,12 +1144,6 @@
<pageReference>مراجع الصفحة</pageReference>
</label>
</UIPageNodeWizardPreview>
- <UIPageCreateDescription>
- <title>
- <create>معالج إنشاء الصحف</create>
- <edit>معالج تحرير الصحف</edit>
- </title>
- </UIPageCreateDescription>
<UIPageTemplateOptions>
<UIDropDown>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_de.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_de.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_de.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -660,8 +660,6 @@
UIPageNodeWizardPreview.label.accessPermission=Zugriffsberechtigung
UIPageNodeWizardPreview.label.editPermission=Bearbeitungsberechtigung
UIPageNodeWizardPreview.label.pageReference=Seitenreferenz
-UIPageCreateDescription.title.create=#{UIPageCreationWizard.label.pageCreateWizard}
-UIPageCreateDescription.title.edit=Seitenbearbeitungsassistent
UIPageTemplateOptions.UIDropDown.title=Seitenlayouts
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=Standard-Layouts
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=Spalten-Layout
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_en.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_en.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_en.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -664,8 +664,6 @@
UIPageNodeWizardPreview.label.accessPermission=Access Permission
UIPageNodeWizardPreview.label.editPermission=Edit Permission
UIPageNodeWizardPreview.label.pageReference=Page Reference
-UIPageCreateDescription.title.create=Page Creation Wizard
-UIPageCreateDescription.title.edit=Page Edit Wizard
UIPageTemplateOptions.UIDropDown.title=Page Configs
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=Page Configs
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=Column Page Configs
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_es.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_es.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_es.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -658,8 +658,6 @@
UIPageNodeWizardPreview.label.accessPermission=Permisos de Acceso
UIPageNodeWizardPreview.label.editPermission=Editar Permisos
UIPageNodeWizardPreview.label.pageReference=Referencia de la P\u00e1gina
-UIPageCreateDescription.title.create=Asistente Creaci\u00f3n de P\u00e1gina
-UIPageCreateDescription.title.edit=Asistente Edici\u00f3n de P\u00e1gina
UIPageTemplateOptions.UIDropDown.title=Configuraciones de la P\u00e1gina
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=Configuraciones de la P\u00e1gina
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=Configuraciones de las Columnas de la P\u00e1gina
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_fr.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_fr.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_fr.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -634,8 +634,6 @@
UIPageNodeWizardPreview.label.accessPermission=Droit d'accès
UIPageNodeWizardPreview.label.editPermission=Droit d'édition
UIPageNodeWizardPreview.label.pageReference=Référence de la page
-UIPageCreateDescription.title.create=Assistant de création de page
-UIPageCreateDescription.title.edit=Assistant de modification de page
UIPageTemplateOptions.UIDropDown.title=Configurations de page
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=Configurations de page
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=En colonne
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_it.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_it.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_it.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -659,8 +659,6 @@
UIPageNodeWizardPreview.label.accessPermission=Permesso di Accesso
UIPageNodeWizardPreview.label.editPermission=Modifica il Permesso
UIPageNodeWizardPreview.label.pageReference=Collegamento alla Pagina
-UIPageCreateDescription.title.create=Wizard della Pagina di Creazione
-UIPageCreateDescription.title.edit=Wizard della Pagina di Modifica
UIPageTemplateOptions.UIDropDown.title=Configurazioni della Pagina
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=Configurazioni della Pagina
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=Configurazioni della Colonna della Pagina
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ja.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ja.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ja.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -660,8 +660,6 @@
UIPageNodeWizardPreview.label.accessPermission=\u30a2\u30af\u30bb\u30b9\u30d1\u30fc\u30df\u30b7\u30e7\u30f3
UIPageNodeWizardPreview.label.editPermission=\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u7de8\u96c6
UIPageNodeWizardPreview.label.pageReference=\u30da\u30fc\u30b8\u53c2\u7167
-UIPageCreateDescription.title.create=\u30da\u30fc\u30b8\u4f5c\u6210\u30a6\u30a4\u30b6\u30fc\u30c9
-UIPageCreateDescription.title.edit=\u30da\u30fc\u30b8\u7de8\u96c6\u30a6\u30a4\u30b6\u30fc\u30c9
UIPageTemplateOptions.UIDropDown.title=\u30da\u30fc\u30b8\u69cb\u6210
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=\u30da\u30fc\u30b8\u69cb\u6210
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=\u30ab\u30e9\u30e0\u30da\u30fc\u30b8\u69cb\u6210
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ko.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ko.xml 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ko.xml 2010-03-03 06:36:50 UTC (rev 1936)
@@ -1025,12 +1025,6 @@
<pageReference>페이지 레퍼런스</pageReference>
</label>
</UIPageNodeWizardPreview>
- <UIPageCreateDescription>
- <title>
- <create>페이지 생성 마법사</create>
- <edit>페이지 편집 마법사</edit>
- </title>
- </UIPageCreateDescription>
<UIPageTemplateOptions>
<UIDropDown>
<title>페이지 배치</title>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ne.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ne.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ne.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -659,8 +659,6 @@
UIPageNodeWizardPreview.label.accessPermission=\u092a\u094d\u0930\u092c\u0947\u0936 \u0905\u0928\u0941\u092e\u0924\u0940
UIPageNodeWizardPreview.label.editPermission=\u0938\u092e\u094d\u092a\u093e\u0926\u0928 \u0905\u0928\u0941\u092e\u0924\u0940
UIPageNodeWizardPreview.label.pageReference=\u092a\u0947\u091c \u0930\u093f\u092b\u0947\u0930\u0947\u0928\u094d\u0938
-UIPageCreateDescription.title.create=\u092a\u0947\u091c \u092c\u0928\u093e\u0909\u0928\u0947 \u0935\u093f\u091c\u093e\u0930\u094d\u0921
-UIPageCreateDescription.title.edit=\u092a\u0947\u091c \u0938\u092e\u094d\u092a\u093e\u0926\u0928 \u0917\u0930\u094d\u0928\u0947 \u0935\u093f\u091c\u093e\u0930\u094d\u0921
UIPageTemplateOptions.UIDropDown.title=\u092a\u0947\u091c \u0915\u0928\u094d\u092b\u093f\u0917\u094d\u0938
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=\u092a\u0947\u091c \u0915\u0928\u094d\u092b\u093f\u0917\u094d\u0938
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=\u0915\u094b\u0932\u0941\u092e \u092a\u0947\u091c \u0915\u0928\u094d\u092b\u093f\u0917\u094d\u0938
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_nl.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_nl.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_nl.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -660,8 +660,6 @@
UIPageNodeWizardPreview.label.accessPermission=Toegangsrechten
UIPageNodeWizardPreview.label.editPermission=Permissie om te wijzigen
UIPageNodeWizardPreview.label.pageReference=Pagina referentie
-UIPageCreateDescription.title.create=Pagina creatie wizard
-UIPageCreateDescription.title.edit=Pagina wijzigen wizard
UIPageTemplateOptions.UIDropDown.title=Pagina configuratie
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=Pagina configuratie
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=In kolommen
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ru.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ru.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_ru.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -648,8 +648,6 @@
UIPageNodeWizardPreview.label.accessPermission=Права доступа
UIPageNodeWizardPreview.label.editPermission=Изменить права
UIPageNodeWizardPreview.label.pageReference=Параметры страницы
-UIPageCreateDescription.title.create=Мастер создания страницы
-UIPageCreateDescription.title.edit=Мастер редактирования страницы
UIPageTemplateOptions.UIDropDown.title=Конфигурация страницы
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=Общие
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=Колонки
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_uk.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_uk.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_uk.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -639,8 +639,6 @@
UIPageNodeWizardPreview.label.accessPermission=Дозвіл на доступ
UIPageNodeWizardPreview.label.editPermission=Редагувати права доступу
UIPageNodeWizardPreview.label.pageReference=Сторінкове посилання
-UIPageCreateDescription.title.create=Wizard-створювач сторінок
-UIPageCreateDescription.title.edit=Wizard-редагувач сторінок
UIPageTemplateOptions.UIDropDown.title=Конфігурація сторінки
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=Конфігурація сторінки
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=Конфігурація стовпчиків
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_vi.properties
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_vi.properties 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_vi.properties 2010-03-03 06:36:50 UTC (rev 1936)
@@ -642,8 +642,6 @@
UIPageNodeWizardPreview.label.accessPermission=Phân quyền truy cập
UIPageNodeWizardPreview.label.editPermission=Phân quyền Chỉnh sửa
UIPageNodeWizardPreview.label.pageReference=Trang liên quan
-UIPageCreateDescription.title.create=Trang tạo bằng Wizard
-UIPageCreateDescription.title.edit=Trang chỉnh sửa bằng Wizard
UIPageTemplateOptions.UIDropDown.title=Định hình trang
UIPageTemplateOptions.UIDropDown.label.normalPageConfigs=Định hình trang
UIPageTemplateOptions.UIDropDown.label.columnPageConfigs=Định hình trang dạng cột
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_zh.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_zh.xml 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_zh.xml 2010-03-03 06:36:50 UTC (rev 1936)
@@ -981,12 +981,6 @@
<pageReference>页面选项</pageReference>
</label>
</UIPageNodeWizardPreview>
- <UIPageCreateDescription>
- <title>
- <create>页面创建向导</create>
- <edit>页面编辑向导</edit>
- </title>
- </UIPageCreateDescription>
<UIPageTemplateOptions>
<UIDropDown>
<title>页面配置</title>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_zh_TW.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_zh_TW.xml 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/classes/locale/portal/webui_zh_TW.xml 2010-03-03 06:36:50 UTC (rev 1936)
@@ -1129,12 +1129,6 @@
<pageReference>頁面選項</pageReference>
</label>
</UIPageNodeWizardPreview>
- <UIPageCreateDescription>
- <title>
- <create>頁面建立導覽器</create>
- <edit>頁面編輯導覽器</edit>
- </title>
- </UIPageCreateDescription>
<UIPageTemplateOptions>
<UIDropDown>
<title>頁面配置</title>
Deleted: portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/page/UIPageCreateDescription.gtmpl
===================================================================
--- portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/page/UIPageCreateDescription.gtmpl 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/page/UIPageCreateDescription.gtmpl 2010-03-03 06:36:50 UTC (rev 1936)
@@ -1,24 +0,0 @@
-<div class="TopTitleBar">
- <div class="DecoratorBox">
- <div class="BarDecorator">
- <div class="TopLeftBar">
- <div class="TopRightBar">
- <div class="TopCenterBar"><span></span></div>
- </div>
- </div>
- <div class="MiddleLeftBar">
- <div class="MiddleRightBar">
- <div class="MiddleCenterBar"><%=_ctx.appRes(uicomponent.getTitleKey())%></div>
- </div>
- </div>
- <div class="BottomLeftBar">
- <div class="BottomRightBar">
- <div class="BottomCenterBar"><span></span></div>
- </div>
- </div>
- </div>
- </div>
-</div>
-
-<div><%uicomponent.renderChildren();%></div>
-
Deleted: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreateDescription.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreateDescription.java 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreateDescription.java 2010-03-03 06:36:50 UTC (rev 1936)
@@ -1,61 +0,0 @@
-/**
- * Copyright (C) 2009 eXo Platform SAS.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.exoplatform.portal.webui.page;
-
-import org.exoplatform.webui.config.annotation.ComponentConfig;
-import org.exoplatform.webui.core.UIContainer;
-
-/**
- * Created by The eXo Platform SARL
- * Author : lxchiati
- * lebienthuy(a)gmail.com
- * Jul 11, 2006
- */
-@ComponentConfig(template = "system:/groovy/portal/webui/page/UIPageCreateDescription.gtmpl")
-public class UIPageCreateDescription extends UIContainer
-{
-
- private String titleKey_;
-
- // private String title_ ;
-
- public UIPageCreateDescription() throws Exception
- {
- }
-
- public String getTitleKey()
- {
- return titleKey_;
- }
-
- public void setTitleKey(String titleKey_)
- {
- this.titleKey_ = titleKey_;
- }
-
- // public void setTitle(String key){
- // WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
- // ResourceBundle res = context.getApplicationResourceBundle();
- // title_ = res.getString(key);
- // }
- //
- // public String getTitle(){ return title_; }
-
-}
\ No newline at end of file
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java 2010-03-03 04:55:58 UTC (rev 1935)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java 2010-03-03 06:36:50 UTC (rev 1936)
@@ -382,6 +382,7 @@
return;
}
uiPortalApp.setModeState(UIPortalApplication.NORMAL_MODE);
+ uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
uiWizard.saveData();
UIPortalToolPanel toolPanel = uiWorkingWS.findFirstComponentOfType(UIPortalToolPanel.class);
toolPanel.setUIComponent(null);
14 years, 10 months
gatein SVN: r1935 - in portal/trunk/examples/portlets: webuibasedsamples and 34 other directories.
by do-not-reply@jboss.org
Author: trong.tran
Date: 2010-03-02 23:55:58 -0500 (Tue, 02 Mar 2010)
New Revision: 1935
Added:
portal/trunk/examples/portlets/webuibasedsamples/
portal/trunk/examples/portlets/webuibasedsamples/pom.xml
portal/trunk/examples/portlets/webuibasedsamples/src/
portal/trunk/examples/portlets/webuibasedsamples/src/main/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/fck/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/fck/webui/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/fck/webui/component/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/fck/webui/component/UIFCKEditorPortlet.java
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/forminput/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/forminput/webui/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/forminput/webui/UICSInputPortlet.java
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/forminput/webui/UIDownloadUploadPortlet.java
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPaneInputSet1.java
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPaneInputSet2.java
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPanePortlet.java
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/virtuallist/
portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/virtuallist/UIVirtualListPortlet.java
portal/trunk/examples/portlets/webuibasedsamples/src/main/resources/
portal/trunk/examples/portlets/webuibasedsamples/src/main/resources/suppressions.xml
portal/trunk/examples/portlets/webuibasedsamples/src/main/resources/tomcat/
portal/trunk/examples/portlets/webuibasedsamples/src/main/resources/tomcat/portlets.xml
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/csinput/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/csinput/webui/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/csinput/webui/configuration.xml
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/downloadupload/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/downloadupload/webui/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/downloadupload/webui/configuration.xml
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/fck/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/fck/FCKPortlet/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/fck/FCKPortlet/webui/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/fck/FCKPortlet/webui/configuration.xml
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/lazytabpane/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/lazytabpane/webui/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/lazytabpane/webui/configuration.xml
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/virtuallist/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/virtuallist/webui/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/virtuallist/webui/configuration.xml
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/portlet.xml
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/web.xml
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UICSInputForm.gtmpl
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UIDownloadUpload.gtmpl
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UILazyTabPaneInputSet.gtmpl
portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UISampleResourcesBrowser.gtmpl
Modified:
portal/trunk/examples/portlets/pom.xml
Log:
Add samples to show usage of WebUI based components
Modified: portal/trunk/examples/portlets/pom.xml
===================================================================
--- portal/trunk/examples/portlets/pom.xml 2010-03-03 04:46:56 UTC (rev 1934)
+++ portal/trunk/examples/portlets/pom.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -17,6 +17,7 @@
<module>jsfhellouser</module>
<module>jsphellouser</module>
<module>simplesthelloworld</module>
+ <module>webuibasedsamples</module>
</modules>
</project>
Added: portal/trunk/examples/portlets/webuibasedsamples/pom.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/pom.xml (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/pom.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,28 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.gatein.portal.examples.portlets</groupId>
+ <artifactId>parent</artifactId>
+ <version>3.0.0-CR02-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>gatein-webui-based-samples</artifactId>
+ <packaging>war</packaging>
+
+ <name>GateIn Portal Examples - WebUI based samples</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.exoplatform.portal</groupId>
+ <artifactId>exo.portal.webui.portal</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.exoplatform.portal</groupId>
+ <artifactId>exo.portal.webui.eXo</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/fck/webui/component/UIFCKEditorPortlet.java
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/fck/webui/component/UIFCKEditorPortlet.java (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/fck/webui/component/UIFCKEditorPortlet.java 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2003-2008 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.samples.fck.webui.component;
+
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.core.UIPortletApplication;
+import org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle;
+import org.exoplatform.webui.core.lifecycle.UIFormLifecycle;
+import org.exoplatform.webui.form.UIForm;
+import org.exoplatform.webui.form.wysiwyg.UIFormWYSIWYGInput;
+
+/**
+ * Created by The eXo Platform SAS
+ * Author : Pham Thanh Tung
+ * thanhtungty(a)gmail.com
+ * Dec 8, 2008
+ */
+
+@ComponentConfig(
+ lifecycle = UIApplicationLifecycle.class
+)
+public class UIFCKEditorPortlet extends UIPortletApplication{
+
+ public UIFCKEditorPortlet() throws Exception {
+ addChild(UIEditor.class, null, null);
+ }
+
+ @ComponentConfig(
+ lifecycle = UIFormLifecycle.class
+ )
+ static public class UIEditor extends UIForm {
+
+ static final public String TEXT_FIELD = "text";
+ public UIEditor() throws Exception {
+ UIFormWYSIWYGInput uiInputFCKEditor = new UIFormWYSIWYGInput(TEXT_FIELD, null, null);
+ uiInputFCKEditor.setWidth("99%");
+ addUIFormInput(uiInputFCKEditor);
+ }
+ }
+
+}
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/forminput/webui/UICSInputPortlet.java
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/forminput/webui/UICSInputPortlet.java (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/forminput/webui/UICSInputPortlet.java 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,82 @@
+/*
+ * Copyright (C) 2003-2009 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.samples.forminput.webui;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.config.annotation.EventConfig;
+import org.exoplatform.webui.core.UIPortletApplication;
+import org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle;
+import org.exoplatform.webui.core.lifecycle.UIFormLifecycle;
+import org.exoplatform.webui.core.model.SelectItemOption;
+import org.exoplatform.webui.event.Event;
+import org.exoplatform.webui.event.EventListener;
+import org.exoplatform.webui.form.UIForm;
+import org.exoplatform.webui.form.ext.UIFormColorPicker;
+import org.exoplatform.webui.form.ext.UIFormComboBox;
+
+/**
+ * Created by The eXo Platform SAS
+ * Author : Pham Thanh Tung
+ * thanhtungty(a)gmail.com
+ * Apr 14, 2009
+ */
+@ComponentConfig(
+ lifecycle = UIApplicationLifecycle.class
+)
+public class UICSInputPortlet extends UIPortletApplication {
+
+ public UICSInputPortlet() throws Exception {
+ addChild(UITestForm.class, null, null);
+ }
+
+ @ComponentConfig(
+ lifecycle = UIFormLifecycle.class,
+ template = "app:/groovy/webui/component/UICSInputForm.gtmpl",
+ events = {
+ @EventConfig(listeners = UITestForm.SubmitActionListener.class)
+ }
+ )
+ static public class UITestForm extends UIForm {
+
+ Map<String, String> data = new HashMap<String, String>();
+
+ public UITestForm() throws Exception {
+ ArrayList<SelectItemOption<String>> options = new ArrayList<SelectItemOption<String>>();
+ options.add(new SelectItemOption<String>("option 1", "option 1"));
+ options.add(new SelectItemOption<String>("option 2", "option 2"));
+ options.add(new SelectItemOption<String>("option 3", "option 3"));
+ options.add(new SelectItemOption<String>("option 4", "option 4"));
+ addUIFormInput(new UIFormComboBox("UICombobox", "UICombobox", options));
+ addUIFormInput(new UIFormColorPicker("UIColorPicker", "UIColorPicker", (String) null));
+ }
+ static public class SubmitActionListener extends EventListener<UITestForm> {
+
+ public void execute(Event<UITestForm> event) throws Exception {
+ UITestForm uiForm = event.getSource();
+ UIFormComboBox uiComboBox = uiForm.getChild(UIFormComboBox.class);
+ uiForm.data.put(uiComboBox.getId(), uiComboBox.getValue());
+ UIFormColorPicker uiColorPicker = uiForm.getChild(UIFormColorPicker.class);
+ uiForm.data.put(uiColorPicker.getId(), uiColorPicker.getValue());
+ }
+
+ }
+ }
+}
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/forminput/webui/UIDownloadUploadPortlet.java
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/forminput/webui/UIDownloadUploadPortlet.java (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/forminput/webui/UIDownloadUploadPortlet.java 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,120 @@
+/*
+ * Copyright (C) 2003-2009 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.samples.forminput.webui;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.exoplatform.download.DownloadResource;
+import org.exoplatform.download.DownloadService;
+import org.exoplatform.download.InputStreamDownloadResource;
+import org.exoplatform.portal.application.PortalRequestContext;
+import org.exoplatform.portal.webui.util.Util;
+import org.exoplatform.upload.UploadResource;
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.config.annotation.EventConfig;
+import org.exoplatform.webui.core.UIPortletApplication;
+import org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle;
+import org.exoplatform.webui.core.lifecycle.UIFormLifecycle;
+import org.exoplatform.webui.event.Event;
+import org.exoplatform.webui.event.EventListener;
+import org.exoplatform.webui.form.UIForm;
+import org.exoplatform.webui.form.UIFormUploadInput;
+
+/**
+ * Created by The eXo Platform SAS
+ * Author : Pham Thanh Tung
+ * thanhtungty(a)gmail.com
+ * Apr 14, 2009
+ */
+@ComponentConfig(
+ lifecycle = UIApplicationLifecycle.class
+)
+public class UIDownloadUploadPortlet extends UIPortletApplication {
+
+ public UIDownloadUploadPortlet() throws Exception {
+ addChild(UIDownloadUpload.class, null, null);
+ }
+
+ @ComponentConfig(
+ lifecycle = UIFormLifecycle.class,
+ template = "app:/groovy/webui/component/UIDownloadUpload.gtmpl",
+ events = {
+ @EventConfig(listeners = UIDownloadUpload.SubmitActionListener.class)
+ }
+ )
+ static public class UIDownloadUpload extends UIForm {
+
+ Map<String, String> data = new HashMap<String, String>();
+
+ private String[] downloadLink;
+ private String[] fileName;
+ private String[] inputName;
+
+ public UIDownloadUpload() throws Exception {
+ addUIFormInput(new UIFormUploadInput("name0","value0"));
+ addUIFormInput(new UIFormUploadInput("name1","value1"));
+ addUIFormInput(new UIFormUploadInput("name2","value2"));
+ }
+ public void setDownloadLink(String[] downloadLink) {
+ this.downloadLink = downloadLink;
+ }
+ public String[] getDownloadLink() {
+ return downloadLink;
+ }
+ public void setFileName(String[] fileName) {
+ this.fileName = fileName;
+ }
+ public String[] getFileName() {
+ return fileName;
+ }
+ public void setInputName(String[] inputName) {
+ this.inputName = inputName;
+ }
+ public String[] getInputName() {
+ return inputName;
+ }
+ static public class SubmitActionListener extends EventListener<UIDownloadUpload> {
+
+ public void execute(Event<UIDownloadUpload> event) throws Exception {
+ UIDownloadUpload uiForm = event.getSource();
+ DownloadService dservice = uiForm.getApplicationComponent(DownloadService.class);
+ String[] downloadLink = new String[3];
+ String[] fileName = new String[3];
+ String[] inputName = new String[3];
+ for (int index = 0; index <=2; index++ ) {
+ UIFormUploadInput input = uiForm.getChildById("name"+index);
+ UploadResource uploadResource = input.getUploadResource() ;
+ if (uploadResource != null) {
+ DownloadResource dresource = new InputStreamDownloadResource(input.getUploadDataAsStream(), uploadResource.getMimeType());
+ dresource.setDownloadName(uploadResource.getFileName());
+ downloadLink[index] = dservice.getDownloadLink(dservice.addDownloadResource(dresource));
+ fileName[index] = uploadResource.getFileName();
+ inputName[index] = "name" + index;
+ }
+ }
+
+ uiForm.setDownloadLink(downloadLink);
+ uiForm.setFileName(fileName);
+ uiForm.setInputName(inputName);
+
+ event.getRequestContext().addUIComponentToUpdateByAjax(uiForm.getParent());
+ }
+
+ }
+ }
+}
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPaneInputSet1.java
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPaneInputSet1.java (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPaneInputSet1.java 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2003-2007 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.samples.lazytabpane;
+
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.core.lifecycle.UIFormLifecycle;
+import org.exoplatform.webui.form.UIForm;
+import org.exoplatform.webui.form.UIFormStringInput;
+import org.exoplatform.webui.form.validator.ExpressionValidator;
+import org.exoplatform.webui.form.validator.MandatoryValidator;
+import org.exoplatform.webui.form.validator.ResourceValidator;
+import org.exoplatform.webui.form.validator.StringLengthValidator;
+
+/**
+ * Created by The eXo Platform SARL
+ * Author : tam.nguyen
+ * tamndrok(a)gmail.com
+ * July 21, 2009
+ */
+@ComponentConfig(
+ lifecycle = UIFormLifecycle.class
+)
+public class UILazyTabPaneInputSet1 extends UIForm {
+
+
+ public UILazyTabPaneInputSet1() throws Exception {
+ addUIFormInput(new UIFormStringInput("userName", "userName", "Name").
+ addValidator(MandatoryValidator.class).
+ addValidator(StringLengthValidator.class, 3, 30).
+ addValidator(ResourceValidator.class).
+ addValidator(ExpressionValidator.class, "^[\\p{L}][\\p{L}._\\-\\d]+$", "ResourceValidator.msg.Invalid-char"));
+ }
+
+}
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPaneInputSet2.java
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPaneInputSet2.java (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPaneInputSet2.java 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2003-2007 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.samples.lazytabpane;
+
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.core.lifecycle.UIFormLifecycle;
+import org.exoplatform.webui.form.UIForm;
+import org.exoplatform.webui.form.UIFormStringInput;
+import org.exoplatform.webui.form.validator.ExpressionValidator;
+import org.exoplatform.webui.form.validator.MandatoryValidator;
+import org.exoplatform.webui.form.validator.PasswordStringLengthValidator;
+import org.exoplatform.webui.form.validator.ResourceValidator;
+import org.exoplatform.webui.form.validator.StringLengthValidator;
+
+/**
+ * Created by The eXo Platform SARL
+ * Author : tam.nguyen
+ * tamndrok(a)gmail.com
+ * July 21, 2009
+ */
+@ComponentConfig(
+ lifecycle = UIFormLifecycle.class,
+ template = "app:/groovy/webui/component/UILazyTabPaneInputSet.gtmpl"
+)
+public class UILazyTabPaneInputSet2 extends UIForm {
+
+
+ public UILazyTabPaneInputSet2() throws Exception {
+ addUIFormInput(new UIFormStringInput("newUserName", "userName", null).
+ addValidator(MandatoryValidator.class).
+ addValidator(StringLengthValidator.class, 3, 30).
+ addValidator(ResourceValidator.class).
+ addValidator(ExpressionValidator.class, "^[\\p{L}][\\p{L}._\\-\\d]+$", "ResourceValidator.msg.Invalid-char"));
+ addUIFormInput(new UIFormStringInput("newPassword", "password", null).
+ setType(UIFormStringInput.PASSWORD_TYPE).
+ addValidator(MandatoryValidator.class).
+ addValidator(PasswordStringLengthValidator.class, 6, 30)) ;
+ addUIFormInput(new UIFormStringInput("newConfirmPassword", "password", null).
+ setType(UIFormStringInput.PASSWORD_TYPE).
+ addValidator(MandatoryValidator.class).
+ addValidator(PasswordStringLengthValidator.class, 6, 30));
+ }
+
+}
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPanePortlet.java
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPanePortlet.java (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/lazytabpane/UILazyTabPanePortlet.java 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2003-2009 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.samples.lazytabpane;
+
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.core.UILazyTabPane;
+import org.exoplatform.webui.core.UIPortletApplication;
+import org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle;
+
+/**
+ * Created by The eXo Platform SAS Author : tam.nguyen tamndrok(a)gmail.com Aug 2, 2009
+ */
+@ComponentConfig(lifecycle = UIApplicationLifecycle.class)
+public class UILazyTabPanePortlet extends UIPortletApplication {
+
+ public UILazyTabPanePortlet() throws Exception {
+ UILazyTabPane uiLazyTabPane = addChild(UILazyTabPane.class, null, null);
+ uiLazyTabPane.addChild(UILazyTabPaneInputSet1.class, null, null).setRendered(true);
+ uiLazyTabPane.addChild(UILazyTabPaneInputSet2.class, null, null);
+ uiLazyTabPane.setSelectedTab(1);
+ }
+}
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/virtuallist/UIVirtualListPortlet.java
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/virtuallist/UIVirtualListPortlet.java (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/java/org/exoplatform/samples/virtuallist/UIVirtualListPortlet.java 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,77 @@
+/*
+ * Copyright (C) 2003-2009 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see<http://www.gnu.org/licenses/>.
+ */
+package org.exoplatform.samples.virtuallist;
+
+import org.exoplatform.commons.utils.PageList;
+import org.exoplatform.portal.webui.util.Util;
+import org.exoplatform.services.resources.ResourceBundleService;
+import org.exoplatform.web.application.ApplicationMessage;
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.core.UIApplication;
+import org.exoplatform.webui.core.UIContainer;
+import org.exoplatform.webui.core.UIPortletApplication;
+import org.exoplatform.webui.core.UIRepeater;
+import org.exoplatform.webui.core.UIVirtualList;
+import org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle;
+
+/**
+ * Created by The eXo Platform SAS Author : LiemNC ncliam(a)gmail.com Aug 2, 2009
+ */
+@ComponentConfig(lifecycle = UIApplicationLifecycle.class)
+public class UIVirtualListPortlet extends UIPortletApplication {
+
+ public UIVirtualListPortlet() throws Exception {
+ addChild(UISampleResourcesBrowser.class, null, null);
+ }
+
+ @ComponentConfig(template = "app:/groovy/webui/component/UISampleResourcesBrowser.gtmpl")
+ static public class UISampleResourcesBrowser extends UIContainer {
+
+ private static String[] RESOURCE_LIST = { "name", "language" };
+
+ private static String[] RESOURCE_ACTION = { "View", "Delete" };
+
+ public UISampleResourcesBrowser() throws Exception {
+ UIRepeater uiRepeater = createUIComponent(UIRepeater.class, null, null);
+ uiRepeater.configure("id", RESOURCE_LIST, RESOURCE_ACTION);
+
+ UIVirtualList virtualList = addChild(UIVirtualList.class, null, null);
+ virtualList.setPageSize(10);
+ virtualList.setUIComponent(uiRepeater);
+ }
+
+ public String event(String name, String beanId) throws Exception {
+ if (Util.getUIPortal().getName().equals(beanId))
+ return super.url(name, beanId);
+ return super.event(name, beanId);
+ }
+
+ public void loadResources() throws Exception {
+ try {
+ ResourceBundleService resBundleServ = getApplicationComponent(ResourceBundleService.class);
+ org.exoplatform.services.resources.Query lastQuery_ = new org.exoplatform.services.resources.Query(null,
+ null);
+ PageList pageList = resBundleServ.findResourceDescriptions(lastQuery_);
+ UIVirtualList virtualList = getChild(UIVirtualList.class);
+ virtualList.dataBind(pageList);
+ } catch (Exception e) {
+ UIApplication uiApp = Util.getPortalRequestContext().getUIApplication();
+ uiApp.addMessage(new ApplicationMessage("UISearchForm.msg.empty", null));
+ }
+ }
+ }
+}
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/resources/suppressions.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/resources/suppressions.xml (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/resources/suppressions.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+
+<!DOCTYPE suppressions PUBLIC
+ "-//Puppy Crawl//DTD Suppressions 1.1//EN"
+ "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
+
+<suppressions>
+ <suppress checks="JavadocMethod" files=".java"/>
+ <suppress checks="JavadocType" files=".java"/>
+ <suppress checks="JavadocVariable" files=".java"/>
+ <suppress checks="JavadocStyle" files=".java"/>
+ <suppress checks="TodoComment" files=".java"/>
+</suppressions>
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/resources/tomcat/portlets.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/resources/tomcat/portlets.xml (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/resources/tomcat/portlets.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,2 @@
+<Context path="/portlets" docBase="../../../eXoProjects/portal/trunk/sample/portlets/src/main/webapp"
+ debug="0" reloadable="true" />
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/csinput/webui/configuration.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/csinput/webui/configuration.xml (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/csinput/webui/configuration.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,6 @@
+<webui-configuration>
+ <application>
+ <ui-component-root>org.exoplatform.samples.forminput.webui.UICSInputPortlet</ui-component-root>
+ <state-manager>org.exoplatform.webui.application.portlet.ParentAppStateManager</state-manager>
+ </application>
+</webui-configuration>
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/downloadupload/webui/configuration.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/downloadupload/webui/configuration.xml (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/downloadupload/webui/configuration.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,6 @@
+<webui-configuration>
+ <application>
+ <ui-component-root>org.exoplatform.samples.forminput.webui.UIDownloadUploadPortlet</ui-component-root>
+ <state-manager>org.exoplatform.webui.application.portlet.ParentAppStateManager</state-manager>
+ </application>
+</webui-configuration>
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/fck/FCKPortlet/webui/configuration.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/fck/FCKPortlet/webui/configuration.xml (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/fck/FCKPortlet/webui/configuration.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,6 @@
+<webui-configuration>
+ <application>
+ <ui-component-root>org.exoplatform.samples.fck.webui.component.UIFCKEditorPortlet</ui-component-root>
+ <state-manager>org.exoplatform.webui.application.portlet.ParentAppStateManager</state-manager>
+ </application>
+</webui-configuration>
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/lazytabpane/webui/configuration.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/lazytabpane/webui/configuration.xml (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/lazytabpane/webui/configuration.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,6 @@
+<webui-configuration>
+ <application>
+ <ui-component-root>org.exoplatform.samples.lazytabpane.UILazyTabPanePortlet</ui-component-root>
+ <state-manager>org.exoplatform.webui.application.portlet.ParentAppStateManager</state-manager>
+ </application>
+</webui-configuration>
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/virtuallist/webui/configuration.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/virtuallist/webui/configuration.xml (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/conf/portlet/sample/virtuallist/webui/configuration.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,6 @@
+<webui-configuration>
+ <application>
+ <ui-component-root>org.exoplatform.samples.virtuallist.UIVirtualListPortlet</ui-component-root>
+ <state-manager>org.exoplatform.webui.application.portlet.ParentAppStateManager</state-manager>
+ </application>
+</webui-configuration>
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/portlet.xml (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/portlet.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app version="1.0" xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
+ <portlet>
+ <description xml:lang="EN">Sample FCK Editor Portlet</description>
+ <portlet-name>SampleFCKPortlet</portlet-name>
+ <display-name>Sample FCK Portlet</display-name>
+ <portlet-class>org.exoplatform.webui.application.portlet.PortletApplicationController</portlet-class>
+ <init-param>
+ <name>webui.configuration</name>
+ <value>/WEB-INF/conf/portlet/sample/fck/FCKPortlet/webui/configuration.xml</value>
+ </init-param>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>edit</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <resource-bundle>locale.portal.webui</resource-bundle>
+ <portlet-info>
+ <title>Sample FCK Editor Portlet</title>
+ <short-title>FCK Editor Portlet</short-title>
+ <keywords>Sample</keywords>
+ </portlet-info>
+ <security-role-ref>
+ <role-name>admin</role-name>
+ <role-link>admin</role-link>
+ </security-role-ref>
+ </portlet>
+
+ <portlet>
+ <description xml:lang="EN">Sample Lazy Tab Pane Portlet</description>
+ <portlet-name>LazyTabPanePortlet</portlet-name>
+ <display-name>LazyTabPanePortlet</display-name>
+ <portlet-class>org.exoplatform.webui.application.portlet.PortletApplicationController</portlet-class>
+ <init-param>
+ <name>webui.configuration</name>
+ <value>/WEB-INF/conf/portlet/sample/lazytabpane/webui/configuration.xml</value>
+ </init-param>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>edit</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <resource-bundle>locale.portal.webui</resource-bundle>
+ <portlet-info>
+ <title>Sample Lazy Tab Pane Portlet</title>
+ <short-title>Lazy Tab Pane Portlet</short-title>
+ <keywords>Sample</keywords>
+ </portlet-info>
+ <security-role-ref>
+ <role-name>admin</role-name>
+ <role-link>admin</role-link>
+ </security-role-ref>
+ </portlet>
+
+ <portlet>
+ <description xml:lang="EN">Sample CS Input Portlet</description>
+ <portlet-name>UICSInputPortlet</portlet-name>
+ <display-name>CS Input Portlet</display-name>
+ <portlet-class>org.exoplatform.webui.application.portlet.PortletApplicationController</portlet-class>
+ <init-param>
+ <name>webui.configuration</name>
+ <value>/WEB-INF/conf/portlet/sample/csinput/webui/configuration.xml</value>
+ </init-param>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>edit</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <resource-bundle>locale.portal.webui</resource-bundle>
+ <portlet-info>
+ <title>CS Input Portlet</title>
+ <short-title>CS Input Portlet</short-title>
+ <keywords>Sample</keywords>
+ </portlet-info>
+ <security-role-ref>
+ <role-name>admin</role-name>
+ <role-link>admin</role-link>
+ </security-role-ref>
+ </portlet>
+
+ <portlet>
+ <description xml:lang="EN">Sample Virtual List Portlet</description>
+ <portlet-name>UIVirtualListPortlet</portlet-name>
+ <display-name>Sample Virtual List Portlet</display-name>
+ <portlet-class>org.exoplatform.webui.application.portlet.PortletApplicationController</portlet-class>
+ <init-param>
+ <name>webui.configuration</name>
+ <value>/WEB-INF/conf/portlet/sample/virtuallist/webui/configuration.xml</value>
+ </init-param>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>edit</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <resource-bundle>locale.portal.webui</resource-bundle>
+ <portlet-info>
+ <title>Sample Virtual List Portlet</title>
+ <short-title>Sample Virtual List Portlet</short-title>
+ <keywords>Sample</keywords>
+ </portlet-info>
+ <security-role-ref>
+ <role-name>admin</role-name>
+ <role-link>admin</role-link>
+ </security-role-ref>
+ </portlet>
+
+ <portlet>
+ <description xml:lang="EN">Sample Download Upload Portlet</description>
+ <portlet-name>UIDownloadUploadPortlet</portlet-name>
+ <display-name>Sample Download Upload Portlet</display-name>
+ <portlet-class>org.exoplatform.webui.application.portlet.PortletApplicationController</portlet-class>
+ <init-param>
+ <name>webui.configuration</name>
+ <value>/WEB-INF/conf/portlet/sample/downloadupload/webui/configuration.xml</value>
+ </init-param>
+ <expiration-cache>0</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>edit</portlet-mode>
+ </supports>
+ <supported-locale>en</supported-locale>
+ <resource-bundle>locale.portal.webui</resource-bundle>
+ <portlet-info>
+ <title>Sample Download Upload Portlet</title>
+ <short-title>Sample Download Upload Portlet</short-title>
+ <keywords>Sample</keywords>
+ </portlet-info>
+ <security-role-ref>
+ <role-name>admin</role-name>
+ <role-link>admin</role-link>
+ </security-role-ref>
+ </portlet>
+</portlet-app>
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/web.xml
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/WEB-INF/web.xml 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+ <!--If define the Portlet Application name MUST end with .par-->
+ <display-name>samplePortlets</display-name>
+
+ <description>
+ This application is a portlet. It can not be used outside a portal.
+ This web.xml file is mandatory in each .par archive file.
+ </description>
+
+
+ <filter>
+ <filter-name>ResourceRequestFilter</filter-name>
+ <filter-class>org.exoplatform.portal.application.ResourceRequestFilter</filter-class>
+ </filter>
+
+ <filter-mapping>
+ <filter-name>ResourceRequestFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <servlet>
+ <servlet-name>GateInServlet</servlet-name>
+ <servlet-class>org.gatein.wci.api.GateInServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>GateInServlet</servlet-name>
+ <url-pattern>/gateinservlet</url-pattern>
+ <load-on-startup>0</load-on-startup>
+ </servlet-mapping>
+
+ <security-role>
+ <description>a simple user role</description>
+ <role-name>user</role-name>
+ </security-role>
+
+ <security-role>
+ <description>the admin role</description>
+ <role-name>admin</role-name>
+ </security-role>
+</web-app>
\ No newline at end of file
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UICSInputForm.gtmpl
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UICSInputForm.gtmpl (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UICSInputForm.gtmpl 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,78 @@
+<%
+import java.util.Iterator;
+import java.util.Map.Entry
+String fieldName;
+%>
+<div class="UIForm $uicomponent.id">
+ <%uiform.begin()%>
+ <div class="HorizontalLayout">
+ <div class="FormContainer">
+ <table class="UIFormGrid">
+ <%
+ for(field in uiform.getChildren()) {
+ if(field.isRendered()) {
+ %>
+ <tr>
+ <%fieldName = uicomponent.getLabel(field.getName());%>
+ <%//TODO: Tung.Pham modified
+ //if(!fieldName.equals(uicomponent.getId())) {
+ if(fieldName != null && fieldName.length() > 0 && !fieldName.equals(uicomponent.getId())) {
+ %>
+ <td class="FieldLabel">
+ <%/*if(fieldName != null && fieldName.length() > 0) {*/%>
+ <%=uicomponent.getLabel(field.getName()) %>
+ <%/*}*/%>
+ </td>
+ <td class="FieldComponent"><% uiform.renderField(field) %></td>
+ <%} else {%>
+ <td class="FieldComponent" colspan="2"><% uiform.renderField(field) %></td>
+ <%}%>
+ </tr>
+ <%
+ }
+ }
+ %>
+ </table>
+ <div class="UIAction">
+ <table class="ActionContainer">
+ <tr>
+ <td>
+ <% for(action in uicomponent.getActions()) {
+ String actionLabel = _ctx.appRes(uicomponent.getName() + ".action." + action) ;
+ String link = uicomponent.event(action) ;
+ %>
+ <div onclick="$link" class="ActionButton LightBlueStyle" onmouseover="this.style.color = '#058ee6'" onmouseout="this.style.color='black'">
+ <div class="ButtonLeft">
+ <div class="ButtonRight">
+ <div class="ButtonMiddle">
+ <a href="javascript:void(0);">$actionLabel</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ <%}%>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+ </div>
+ <%uiform.end()%>
+ <div class="Preferences" style="border: 1px solid #b7b7b7; padding: 10px; margin: 10px; background: #f7f7f7">
+ <table class="UIGrid" style="width: 99%">
+ <tr>
+ <th colspan="2">Results</th>
+ </tr>
+ <%
+ Iterator<Entry<String, String>> itr = uiform.data.entrySet().iterator();
+ while(itr.hasNext()) {
+ Entry<String, String> entry = itr.next();
+ %>
+ <tr>
+ <td width="30%"><%= entry.getKey() %></td>
+ <td width="30%"><%= entry.getValue() %></td>
+ </tr>
+ <%}%>
+ </table>
+ </div>
+</div>
\ No newline at end of file
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UIDownloadUpload.gtmpl
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UIDownloadUpload.gtmpl (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UIDownloadUpload.gtmpl 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,76 @@
+<%
+String fieldName;
+downloadLink = uicomponent.getDownloadLink();
+fileName = uicomponent.getFileName();
+inputName = uicomponent.getInputName();
+%>
+<div id="UIDownloadUpload">
+ <div class="UIForm $uicomponent.id">
+ <%uiform.begin()%>
+ <div class="HorizontalLayout">
+ <div class="FormContainer">
+ <table class="UIFormGrid">
+ <%
+ for(field in uiform.getChildren()) {
+ if(field.isRendered()) {
+ %>
+ <tr>
+ <%fieldName = uicomponent.getLabel(field.getName());%>
+ <%
+ if(fieldName != null && fieldName.length() > 0 && !fieldName.equals(uicomponent.getId())) {
+ %>
+ <td class="FieldLabel">
+ <%/*if(fieldName != null && fieldName.length() > 0) {*/%>
+ <%=uicomponent.getLabel(field.getName()) %>
+ <%/*}*/%>
+ </td>
+ <td class="FieldComponent"><% uiform.renderField(field) %></td>
+ <%} else {%>
+ <td class="FieldComponent" colspan="2"><% uiform.renderField(field) %></td>
+ <%}%>
+ </tr>
+
+ <%
+ }
+ }
+ %>
+ <%if (downloadLink != null){ %>
+ <%for(index=0;index<=2;index++) { %>
+ <%if (downloadLink[index] != null){ %>
+ <tr>
+ <td>
+ Download from [<%= inputName[index] %>] upload input:<a href="<%= downloadLink[index] %>" style="color:red"><%= fileName[index] %></a>
+ </td>
+ </tr>
+ <% }
+ }
+ } %>
+ <tr>
+ <td>
+ <div class="UIAction">
+ <table class="ActionContainer">
+ <tr>
+ <td>
+
+ <div onclick="<%=uicomponent.event("Submit")%>" class="ActionButton LightBlueStyle" onmouseover="this.style.color = '#058ee6'" onmouseout="this.style.color='black'">
+ <div class="ButtonLeft">
+ <div class="ButtonRight">
+ <div class="ButtonMiddle">
+ <a href="javascript:void(0);">Save</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </td>
+ </tr>
+ </table>
+
+ </div>
+ </div>
+ <%uiform.end()%>
+ </div>
+</div>
\ No newline at end of file
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UILazyTabPaneInputSet.gtmpl
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UILazyTabPaneInputSet.gtmpl (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UILazyTabPaneInputSet.gtmpl 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,38 @@
+<%
+String fieldName;
+%>
+<div class="UIForm $uicomponent.id">
+ <%uiform.begin()%>
+ <div class="HorizontalLayout">
+ <div class="FormContainer">
+ <table class="UIFormGrid">
+ <%
+ for(field in uiform.getChildren()) {
+ if(field.isRendered()) {
+ %>
+ <tr>
+ <%fieldName = uicomponent.getLabel(field.getName());%>
+ <%
+ if(fieldName != null && fieldName.length() > 0 && !fieldName.equals(uicomponent.getId())) {
+ %>
+ <td class="FieldLabel">
+ <%/*if(fieldName != null && fieldName.length() > 0) {*/%>
+ <%=uicomponent.getLabel(field.getName()) %>
+ <%/*}*/%>
+ </td>
+ <td class="FieldComponent"><% uiform.renderField(field) %></td>
+ <%} else {%>
+ <td class="FieldComponent" colspan="2"><% uiform.renderField(field) %></td>
+ <%}%>
+ </tr>
+ <%
+ }
+ }
+ %>
+ </table>
+ </div>
+ </div>
+ <%uiform.end()%>
+
+ </div>
+</div>
\ No newline at end of file
Added: portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UISampleResourcesBrowser.gtmpl
===================================================================
--- portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UISampleResourcesBrowser.gtmpl (rev 0)
+++ portal/trunk/examples/portlets/webuibasedsamples/src/main/webapp/groovy/webui/component/UISampleResourcesBrowser.gtmpl 2010-03-03 04:55:58 UTC (rev 1935)
@@ -0,0 +1,4 @@
+<div id="<%=uicomponent.getId();%>">
+ <% uicomponent.loadResources();
+ uicomponent.renderChildren(); %>
+</div>
\ No newline at end of file
14 years, 10 months
gatein SVN: r1934 - in portal/trunk: webui/portal/src/main/java/org/exoplatform/portal/webui/page and 2 other directories.
by do-not-reply@jboss.org
Author: hoang_to
Date: 2010-03-02 23:46:56 -0500 (Tue, 02 Mar 2010)
New Revision: 1934
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/config/UserPortalConfig.java
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageActionListener.java
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIPortalApplication.java
Log:
GTNPORTAL-781: Edit Inline does not take effect on UI in special case
Modified: portal/trunk/component/portal/src/main/java/org/exoplatform/portal/config/UserPortalConfig.java
===================================================================
--- portal/trunk/component/portal/src/main/java/org/exoplatform/portal/config/UserPortalConfig.java 2010-03-03 03:32:24 UTC (rev 1933)
+++ portal/trunk/component/portal/src/main/java/org/exoplatform/portal/config/UserPortalConfig.java 2010-03-03 04:46:56 UTC (rev 1934)
@@ -61,6 +61,25 @@
this.selectedNavigation = _selectedNavigation;
}
+ /** Fetch navigation (specified by ownerType, ownerId) from the list of all navigations and set it as selected navigation **/
+ public void updateSelectedNavigation(String ownerType, String ownerId)
+ {
+ PageNavigation targetNavigation = null;
+ for (PageNavigation nav : navigations)
+ {
+ if (nav.getOwnerType().equals(ownerType) && nav.getOwnerId().equals(ownerId))
+ {
+ targetNavigation = nav;
+ break;
+ }
+ }
+
+ if (targetNavigation != null)
+ {
+ this.setSelectedNavigation(targetNavigation);
+ }
+ }
+
public PageNavigation getSelectedNavigation()
{
if(this.selectedNavigation != null)
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageActionListener.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageActionListener.java 2010-03-03 03:32:24 UTC (rev 1933)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageActionListener.java 2010-03-03 04:46:56 UTC (rev 1934)
@@ -131,8 +131,15 @@
//Temporary solution to fix edit inline error while switching between navigations
DataStorage storageService = uiPortalApp.getApplicationComponent(DataStorage.class);
PortalConfig associatedPortalConfig = storageService.getPortalConfig(newNavType, newNavId);
- uiPortalApp.getUserPortalConfig().setPortal(associatedPortalConfig);
+ UserPortalConfig userPortalConfig = uiPortalApp.getUserPortalConfig();
+
+ //Update layout-related data on UserPortalConfig
+ userPortalConfig.setPortal(associatedPortalConfig);
+ //Update selected navigation on UserPortalConfig, that is mandatory as at the moment the PortalConfig
+ //does not hold any navigation data.
+ userPortalConfig.updateSelectedNavigation(newNavType, newNavId);
+
cachedUIPortal.refreshUIPage();
return;
}
@@ -146,7 +153,7 @@
newUIPortal.setSelectedNode(targetPageNode);
newUIPortal.setSelectedPath(targetedPathNodes);
uiPortalApp.setShowedUIPortal(newUIPortal);
- uiPortalApp.addUIPortal(newUIPortal);
+ uiPortalApp.addCachedUIPortal(newUIPortal);
newUIPortal.refreshUIPage();
return;
}
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java 2010-03-03 03:32:24 UTC (rev 1933)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalComposer.java 2010-03-03 04:46:56 UTC (rev 1934)
@@ -432,6 +432,9 @@
uiPortal.getChildren().clear();
PortalDataMapper.toUIPortal(uiPortal, uiPortalApp.getUserPortalConfig());
+ //Update the cache of UIPortal from UIPortalApplication
+ uiPortalApp.updateCachedUIPortal(uiPortal);
+
//To init the UIPage, that fixed a bug on AdminToolbarPortlet when edit the layout. Here is only a
//temporal solution. Complete solution is to avoid mapping UIPortal -- model, that requires
//multiple UIPortal (already available) and concept of SiteConfig
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIPortalApplication.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIPortalApplication.java 2010-03-03 03:32:24 UTC (rev 1933)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIPortalApplication.java 2010-03-03 04:46:56 UTC (rev 1934)
@@ -217,7 +217,7 @@
return this.all_UIPortals.get(new UIPortalKey(ownerType, ownerId));
}
- public void addUIPortal(UIPortal uiPortal)
+ public void addCachedUIPortal(UIPortal uiPortal)
{
String ownerType = uiPortal.getOwnerType();
String ownerId = uiPortal.getOwner();
@@ -228,7 +228,7 @@
}
}
- public void removeUIPortal(String ownerType, String ownerId)
+ public void removeCachedUIPortal(String ownerType, String ownerId)
{
if(ownerType == null || ownerId == null)
{
@@ -237,6 +237,19 @@
this.all_UIPortals.remove(new UIPortalKey(ownerType, ownerId));
}
+ /** Update the UIPortal in the cache **/
+ public void updateCachedUIPortal(UIPortal uiPortal)
+ {
+ String ownerType = uiPortal.getOwnerType();
+ String ownerId = uiPortal.getOwner();
+
+ if(ownerType != null && ownerId != null)
+ {
+ this.all_UIPortals.put(new UIPortalKey(ownerType, ownerId), uiPortal);
+ }
+ }
+
+
public boolean isSessionOpen()
{
return isSessionOpen;
@@ -459,7 +472,7 @@
UIPortal uiPortal = createUIComponent(UIPortal.class, null, null);
PortalDataMapper.toUIPortal(uiPortal, userPortalConfig_);
- this.addUIPortal(uiPortal);
+ this.addCachedUIPortal(uiPortal);
this.showedUIPortal = uiPortal;
uiWorkingWorkspace.addChild(UIEditInlineWorkspace.class, null, UI_EDITTING_WS_ID).setRendered(false);
14 years, 10 months