This content has been marked as final.
Show 3 replies
-
1. Re: Close the portlet programmatically
apemberton Apr 1, 2009 3:54 PM (in response to bensonfungjava)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 -
2. Re: Close the portlet programmatically
bensonfungjava Apr 2, 2009 2:08 AM (in response to bensonfungjava)Thanks Andy.
I have gone through the documentation of jboss portal. Unfortunatly, it looks like to me that the documentation doesn't mention how to implement the decoration renderer, window renderer. Could you provide me with more information how to implement renderer?
Thanks
Benson -
3. Re: Close the portlet programmatically
apemberton Apr 23, 2009 7:33 PM (in response to bensonfungjava)Benson: no problem. Remember that the portal is open source, so you can always check out the source code. I'd recommend checking out the 'DivWindowRenderer' class and others.
Good luck!