The obvious reason that i can see here is:
JBoss portal ThemeService will show all the themes as available themes that you have mentioned in your portal-themes.xml.
So, I guess you are having same entries in 2 different portal-themes.xml, placed in 2 different application in your deploy directroy(One could be the JBOSS-portal.sar/portal-core.war and the other is your custom one). Give different names in your portal-themes.xml, for your custom themes.
Hello, thanks for the response!
Inside my custom portal-themes.xml (inside the war), I only have this:
<themes> <theme> <name>kelly_theme</name> <link rel="stylesheet" id="main_css" href="/portal_style.css" type="text/css"/> <link rel="shortcut icon" href="/images/favicon.ico"/> </theme> </themes>
So I'm not sure where the double entries are coming from.... =/
Also, only "maple" "industrial" "renewal" and "renaissance" are appearing twice on the list.. "default" is still the same.
The name of my custom theme isn't appearing at all..
Also, I had previously tried creating a directory inside
that contained images folder and a stylesheet
and adding defining the theme inside "jboss-portal.sar/portal-core.war/WEB-INF/portal-themes.xml"
but this appeared to create no results either
I'll assume you already tried restarting the app server. So try this: stop the app server, move your theme war file to the server/xxx/deploy/jboss-portal.sar directory. Then start the app server.
If that doesn't work, go into the server/xxx/deploy/jboss-portal.sar/conf/data/default-object.xml file and change the theme.id property value to your theme and restart the app server.
Looks like you were typing the same time I was. I'm really surprised that editing the global portal-themes.xml did not do anything, especially since that is where the themes that ship with the portal are declared. (Oh, you are restarting the app server after each of these changes, right?)
IT WORKS! :)
Changed around a few things, restarted and now the theme is showing up :) Thank you!