Author: kien_nguyen
Date: 2010-06-07 03:44:53 -0400 (Mon, 07 Jun 2010)
New Revision: 3235
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java
Log:
GTNPORTAL-1269 Always show skin which selected when add new
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java 2010-06-07
04:43:45 UTC (rev 3234)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java 2010-06-07
07:44:53 UTC (rev 3235)
@@ -216,12 +216,10 @@
for (String skin : skinService.getAvailableSkinNames())
{
SelectItemOption<String> skinOption = new
SelectItemOption<String>(skin, skin);
- if (uiPortal.getSkin().equals(skin))
- {
- skinOption.setSelected(true);
- }
listSkin.add(skinOption);
}
+ listSkin.get(0).setSelected(true);
+
UIFormSelectBox uiSelectBox = new UIFormSelectBox(FIELD_SKIN, FIELD_SKIN,
listSkin);
uiSettingSet.addUIFormInput(uiSelectBox);