From: adamw <nu...@jb...> - 2005-06-09 21:05:50
|
Right now, in ForumsPortlet.java the decision on what to display is based only on the window state if (req.getWindowState() != WindowState.MAXIMIZED) { display a link } else { display the forum } What I think you could do, is add support for a special property which would cause that the forums portlet displays the forums, not the link, when it is not maximized. Of course it has sense only if the forums portlet is the default one (and thus has all the space to its disposal). This would enable to make portals with pages that have the forums portlet with forums displayed and also some other portlets - in my case navigation portlets (when the forums get maximized, no other portlets are displayed...) As I was doing it with another portlet (but to achieve a similiar effect) is: - in the portal xml descriptor, add a property: < properties > < property > < name >org.jboss.portlet.forums.shownormal< /name > < value >true< /value > < /property > < /properties > - in the portlet code, read the property and if the value is correct do some actions: PortalContext portalCtx = req.getPortalContext(); String showNormalString = portalCtx.getProperty("org.jboss.portlet.forums.shownormal"); boolean showNormal = false; if ((showNormalString != null) && (showNormalString.equals("true")) showNormal = true; Later you check: if ((req.getWindowState() != WindowState.MAXIMIZED) && (!showNormal)) { display a link } else { display the forum } So, how does it look like to you? :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880998#3880998 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880998 |