[jboss-svn-commits] JBoss Portal SVN: r5173 - in trunk: core/src/bin/portal-core-war/themes/phalanx theme/src/main/org/jboss/portal/theme/impl/render
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Sep 11 16:45:25 EDT 2006
Author: roy.russo at jboss.com
Date: 2006-09-11 16:45:24 -0400 (Mon, 11 Sep 2006)
New Revision: 5173
Modified:
trunk/core/src/bin/portal-core-war/themes/phalanx/portal_style.css
trunk/theme/src/main/org/jboss/portal/theme/impl/render/DivRegionRenderer.java
Log:
JBPORTAL-1030 - Fixed classloader method.
- added color style to phalanx theme for utility div
Modified: trunk/core/src/bin/portal-core-war/themes/phalanx/portal_style.css
===================================================================
--- trunk/core/src/bin/portal-core-war/themes/phalanx/portal_style.css 2006-09-11 20:42:47 UTC (rev 5172)
+++ trunk/core/src/bin/portal-core-war/themes/phalanx/portal_style.css 2006-09-11 20:45:24 UTC (rev 5173)
@@ -358,7 +358,7 @@
}
#utilitynavigation a {
- color: yellow;
+ color: #336699;
}
#utilitynavigation .addcontent {
Modified: trunk/theme/src/main/org/jboss/portal/theme/impl/render/DivRegionRenderer.java
===================================================================
--- trunk/theme/src/main/org/jboss/portal/theme/impl/render/DivRegionRenderer.java 2006-09-11 20:42:47 UTC (rev 5172)
+++ trunk/theme/src/main/org/jboss/portal/theme/impl/render/DivRegionRenderer.java 2006-09-11 20:45:24 UTC (rev 5173)
@@ -21,13 +21,13 @@
*/
package org.jboss.portal.theme.impl.render;
+import org.jboss.logging.Logger;
import org.jboss.portal.theme.page.Region;
import org.jboss.portal.theme.page.WindowContext;
import org.jboss.portal.theme.page.WindowResult;
import org.jboss.portal.theme.render.RegionRenderer;
import org.jboss.portal.theme.render.RenderContext;
import org.jboss.portal.theme.render.RenderException;
-import org.apache.log4j.Logger;
import java.lang.reflect.Method;
import java.util.Iterator;
@@ -71,10 +71,10 @@
{
try
{
- Class regionClass = Class.forName("org.jboss.portal.theme.render.region." + region.getId(), true, Thread.currentThread().getContextClassLoader());
+ Class regionClass = Thread.currentThread().getContextClassLoader().loadClass("org.jboss.portal.theme.render.region." + region.getId());
Class[] argTypes = {String.class};
Method m = regionClass.getMethod("render", argTypes);
- String fragment = (String)m.invoke(regionClass.newInstance(), new Object[]{null});
+ String fragment = (String) m.invoke(regionClass.newInstance(), new Object[]{null});
markup.append(fragment);
}
catch(Exception e)
More information about the jboss-svn-commits
mailing list