This content has been marked as final.
Show 3 replies
-
1. Re: change portlet titlebar style
kmekme Sep 29, 2008 9:51 AM (in response to kmekme)Anyone?
I'm using JBoss server 4.2.2, Jboss Portal 2.6.4 and JSR-168 portlets.
I didn't see anything about that in JSR-168 spec. -
2. Re: change portlet titlebar style
peterj Sep 29, 2008 2:43 PM (in response to kmekme)The title bar is created in:
org.jboss.portal.theme.impl.render.div.DivDecorationRenderer.render()
which calls
org.jboss.portal.theme.impl.render.div.DivDecorationRenderer.renderTriggerableActions()
which in turn places an icon for every valid action. The valid actions are maintained by the class
org.jboss.portal.theme.page.WindowContext
which in turn is initialized by this statement in the *-object.xml file:<supported-window-states> <window-state>normal</window-state> <window-state>minimized</window-state> <window-state>maximized</window-state> </supported-window-states>
So the first step would appear to be adding to the supported states, and updating the css to reference the icons (example: the "help" state creates an anchor with class "portlet-mode-help", and in the css this class references image images/help.gif ).
If you look at the code I mentioned, you will notice that the states are divided into "mode" and "windowstate" states. I have not dug deep enough to determine how to get a new state mapped to one of these.
Hopefully this will get you far enough to at least know where to look.
Disclaimer: I have not tried this so I do not know if it will even work. -
3. Re: change portlet titlebar style
kmekme Oct 2, 2008 3:26 AM (in response to kmekme)Ok, thank you Peter.
I'll try to look that way.