[gatein-commits] gatein SVN: r624 - portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Nov 17 04:02:45 EST 2009
Author: liem_nguyen
Date: 2009-11-17 04:02:44 -0500 (Tue, 17 Nov 2009)
New Revision: 624
Modified:
portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIUserProfileInputSet.java
Log:
GTNPORTAL-250 NPE when edit user in user and group management page
Modified: portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIUserProfileInputSet.java
===================================================================
--- portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIUserProfileInputSet.java 2009-11-17 08:26:49 UTC (rev 623)
+++ portal/trunk/webui/eXo/src/main/java/org/exoplatform/webui/organization/UIUserProfileInputSet.java 2009-11-17 09:02:44 UTC (rev 624)
@@ -106,7 +106,7 @@
{
UIFormSelectBox langSelectBox = new UIFormSelectBox(key, key, null);
set.addUIFormInput(langSelectBox);
- initLanguageCombo();
+ initLanguageCombo(langSelectBox);
continue;
}
set.addUIFormInput(new UIFormStringInput(key, null, null));
@@ -119,13 +119,13 @@
@Override
public void processRender(WebuiRequestContext context) throws Exception
{
- initLanguageCombo();
+ UIFormSelectBox langSelectBox = this.findComponentById("user.language");
+ initLanguageCombo(langSelectBox);
super.processRender(context);
}
- private void initLanguageCombo()
- {
- UIFormSelectBox langSelectBox = this.findComponentById("user.language");
+ private void initLanguageCombo(UIFormSelectBox langSelectBox)
+ {
if (langSelectBox == null)
return;
String selectedLang = langSelectBox.getSelectedValues()[0];
More information about the gatein-commits
mailing list