Author: liem_nguyen
Date: 2009-12-16 02:16:17 -0500 (Wed, 16 Dec 2009)
New Revision: 1025
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIRegisterForm.java
Log:
GTNPORTAL-333 Nothing changes when check Search User function with new account's user
name does not exist in Register New Accout portlet
Modified:
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIRegisterForm.java
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIRegisterForm.java 2009-12-16
06:45:42 UTC (rev 1024)
+++
portal/trunk/portlet/exoadmin/src/main/java/org/exoplatform/account/webui/component/UIRegisterForm.java 2009-12-16
07:16:17 UTC (rev 1025)
@@ -19,9 +19,6 @@
package org.exoplatform.account.webui.component;
-import java.util.ArrayList;
-import java.util.List;
-
import org.exoplatform.services.organization.OrganizationService;
import org.exoplatform.services.organization.UserHandler;
import org.exoplatform.web.application.ApplicationMessage;
@@ -40,6 +37,9 @@
import org.exoplatform.webui.form.UIFormInputWithActions.ActionData;
import org.exoplatform.webui.form.validator.MandatoryValidator;
+import java.util.ArrayList;
+import java.util.List;
+
/**
*
* @author <a href="mailto:hoang281283@gmail.com">Minh Hoang
TO</a>
@@ -122,13 +122,17 @@
}
String typedUsername = userNameInput.getValue();
+ WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
+ UIApplication uiApp = context.getUIApplication();
if (usernameIsUsed(typedUsername, orgService))
{
- WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
- UIApplication uiApp = context.getUIApplication();
-
- uiApp.addMessage(new
ApplicationMessage("UIAccountInputSet.msg.user-exist", new
String[]{typedUsername}));
+ uiApp.addMessage(new
ApplicationMessage("UIAccountInputSet.msg.user-exist", new
String[]{typedUsername},
+ ApplicationMessage.WARNING));
}
+ else
+ {
+ uiApp.addMessage(new
ApplicationMessage("UIAccountInputSet.msg.user-not-exist", new
String[]{typedUsername}));
+ }
}
private boolean usernameIsUsed(String username, OrganizationService orgService)
Show replies by date