Author: trong.tran
Date: 2010-03-29 13:15:49 -0400 (Mon, 29 Mar 2010)
New Revision: 2385
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestDataStorage.java
Log:
GTNPORTAL-907 Fix the setting of the Portlet decoration to work
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java 2010-03-29
14:49:03 UTC (rev 2384)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java 2010-03-29
17:15:49 UTC (rev 2385)
@@ -79,6 +79,7 @@
/** . */
private static final Set<String> windowPropertiesBlackList =
Tools.set(
+ MappedAttributes.THEME.getName(),
MappedAttributes.TYPE.getName(),
MappedAttributes.ICON.getName(),
MappedAttributes.WIDTH.getName(),
Modified:
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestDataStorage.java
===================================================================
---
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestDataStorage.java 2010-03-29
14:49:03 UTC (rev 2384)
+++
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestDataStorage.java 2010-03-29
17:15:49 UTC (rev 2385)
@@ -227,6 +227,27 @@
assertEquals(0, page2.getChildren().size());
assertEquals(true, page2.isShowMaxWindow());
}
+
+ public void testChangingPortletThemeInPage() throws Exception {
+ Page page;
+ Application<?> app;
+
+ page = storage_.getPage("portal::classic::homepage");
+ app = (Application<?>)page.getChildren().get(0);
+ assertEquals(1, page.getChildren().size());
+ app.setTheme("Theme1");
+ storage_.save(page);
+
+ page = storage_.getPage("portal::classic::homepage");
+ app = (Application<?>)page.getChildren().get(0);
+ assertEquals("Theme1", app.getTheme());
+ app.setTheme("Theme2");
+ storage_.save(page);
+
+ page = storage_.getPage("portal::classic::homepage");
+ app = (Application<?>)page.getChildren().get(0);
+ assertEquals("Theme2", app.getTheme());
+ }
public void testPageRemove() throws Exception
{
Show replies by date