Author: julien_viet
Date: 2010-01-19 10:54:47 -0500 (Tue, 19 Jan 2010)
New Revision: 1378
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIAccountPortlet.java
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormInputWithActions.java
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIAccountForm.java
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIAccountInputSet.java
Log:
GTNPORTAL-538 : New account application replication
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIAccountPortlet.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIAccountPortlet.java 2010-01-19
15:53:42 UTC (rev 1377)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIAccountPortlet.java 2010-01-19
15:54:47 UTC (rev 1378)
@@ -19,12 +19,14 @@
package org.exoplatform.account.webui.component;
+import org.exoplatform.webui.application.replication.api.annotations.Serialized;
import org.exoplatform.webui.config.annotation.ComponentConfig;
import org.exoplatform.webui.core.UIPortletApplication;
import org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle;
import org.exoplatform.webui.organization.UIAccountForm;
@ComponentConfig(lifecycle = UIApplicationLifecycle.class)
+@Serialized
public class UIAccountPortlet extends UIPortletApplication
{
public UIAccountPortlet() throws Exception
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormInputWithActions.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormInputWithActions.java 2010-01-19
15:53:42 UTC (rev 1377)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormInputWithActions.java 2010-01-19
15:54:47 UTC (rev 1378)
@@ -20,8 +20,12 @@
package org.exoplatform.webui.form;
import org.exoplatform.webui.application.WebuiRequestContext;
+import org.exoplatform.webui.application.replication.api.annotations.Serialized;
import org.exoplatform.webui.core.UIComponent;
+import org.gatein.common.logging.Logger;
+import org.gatein.common.logging.LoggerFactory;
+import java.io.Serializable;
import java.io.Writer;
import java.util.HashMap;
import java.util.List;
@@ -35,12 +39,20 @@
* minh.dang(a)exoplatform.com
* Sep 20, 2006
*/
-
+@Serialized
public class UIFormInputWithActions extends UIFormInputSet
{
+
+ /** . */
+ private static final Logger log =
LoggerFactory.getLogger(UIFormInputWithActions.class);
+
Map<String, List<ActionData>> actionField = new HashMap<String,
List<ActionData>>();
+ public UIFormInputWithActions()
+ {
+ }
+
public UIFormInputWithActions(String id)
{
super.setId(id);
@@ -76,7 +88,7 @@
catch (MissingResourceException ex)
{
label = inputEntry.getId();
- System.err.println("\n " + uiForm.getId() + ".label." +
inputEntry.getId() + " not found value");
+ log.error("\n " + uiForm.getId() + ".label." +
inputEntry.getId() + " not found value");
}
w.write("<tr>");
w.write("<td class=\"FieldLabel\">");
@@ -135,7 +147,7 @@
w.write("</div>");
}
- static public class ActionData
+ static public class ActionData implements Serializable
{
final public static int TYPE_ICON = 0;
Modified:
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIAccountForm.java
===================================================================
---
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIAccountForm.java 2010-01-19
15:53:42 UTC (rev 1377)
+++
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIAccountForm.java 2010-01-19
15:54:47 UTC (rev 1378)
@@ -22,6 +22,7 @@
import org.exoplatform.services.organization.OrganizationService;
import org.exoplatform.web.application.ApplicationMessage;
import org.exoplatform.webui.application.WebuiRequestContext;
+import org.exoplatform.webui.application.replication.api.annotations.Serialized;
import org.exoplatform.webui.config.InitParams;
import org.exoplatform.webui.config.annotation.ComponentConfig;
import org.exoplatform.webui.config.annotation.EventConfig;
@@ -54,6 +55,7 @@
@EventConfig(listeners = UIAccountForm.SaveActionListener.class),
@EventConfig(listeners = UIAccountForm.ResetActionListener.class, phase =
Phase.DECODE),
@EventConfig(listeners = UIAccountForm.SearchUserActionListener.class, phase =
Phase.DECODE)})
+@Serialized
public class UIAccountForm extends UIFormTabPane
{
Modified:
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIAccountInputSet.java
===================================================================
---
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIAccountInputSet.java 2010-01-19
15:53:42 UTC (rev 1377)
+++
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIAccountInputSet.java 2010-01-19
15:54:47 UTC (rev 1378)
@@ -25,6 +25,7 @@
import org.exoplatform.services.organization.User;
import org.exoplatform.web.application.ApplicationMessage;
import org.exoplatform.webui.application.WebuiRequestContext;
+import org.exoplatform.webui.application.replication.api.annotations.Serialized;
import org.exoplatform.webui.core.UIApplication;
import org.exoplatform.webui.form.UIFormInputWithActions;
import org.exoplatform.webui.form.UIFormStringInput;
@@ -41,6 +42,7 @@
* minhdv81(a)yahoo.com
* Jun 28, 2006
*/
+@Serialized
public class UIAccountInputSet extends UIFormInputWithActions
{
@@ -50,6 +52,10 @@
final static String PASSWORD2X = "Confirmpassword";
+ public UIAccountInputSet()
+ {
+ }
+
public UIAccountInputSet(String name) throws Exception
{
super(name);
Show replies by date