[jboss-dev-forums] [Design of JBoss Portal] - Re: Close the portlet programmatically

apemberton do-not-reply at jboss.com
Wed Apr 1 15:54:55 EDT 2009


Benson: there are probably a few ways to implement this feature.

One possible route:
First, add a custom window state:

<portlet-app> 
  |     ... 
  |     <custom-window-state> 
  |         <description>Closes the portlet window</description> 
  |         <name>close</name> 
  |     </custom-window-state>
  |     ... 
  | </portlet-app>

Then, implement a custom WindowRenderer that does not display the portlet if it's in 'close' state.

Good luck,
Andy

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222780#4222780

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222780



More information about the jboss-dev-forums mailing list