aspose file tools*
The moose likes Portals and Portlets and the fly likes hide a portlet when click on other portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "hide a portlet when click on other portlet" Watch "hide a portlet when click on other portlet" New topic
Author

hide a portlet when click on other portlet

Natt Gonzalez
Ranch Hand

Joined: Apr 28, 2008
Posts: 31
Hi!
I have one portlet with a button. When I click on the button I want to hide the second Portlet.
I'm using IBM websphere portal 6.0.1.3
I have tried to use an application object and a visibility rule with my application object, but my problem with that is I think is not possible to change the value of the property of the application object at runtimme. In my portlet I create a new instance of the application object and set the new value to the property, but the visibilit rule don't change the result of the condition. I think this is because the visibility rule can't access the portlet session at runtimme.
http://groups.google.com/group/ibm.software.websphere.portal-server/browse_thread/thread/213650a82bf52011
https://www6.software.ibm.com/developerworks/education/websphere/0702_brunn2/0702_brunn2-a4.pdf

Another solution I have tried is to use a request attribute instead of application object but this only works If i set the request attribute in the Default.jsp (this is a jsp of the Portal Theme) and here I can't change this value at runtime.

Another solution I have tried is to use s request parameter but it doesn't work I think because there is a bug with my version of portal. I have found a fix named PK60107 http://www-01.ibm.com/support/docview.wss?rs=688&uid=swg27008899#6013 but the lonk doesn't work for the moment.

I have also read this post http://www.ibm.com/developerworks/forums/thread.jspa?threadID=247917 where they talk about cooperative portlets but In my visibility rule the property never appears.

My final solution is to use a white jsp but I think it's better to try with visibility rules, but I don't find the solution.

Thanks in advance.
Natt Gonzalez
Ranch Hand

Joined: Apr 28, 2008
Posts: 31
Natt Gonzalez wrote:Hi!
I have one portlet with a button. When I click on the button I want to hide the second Portlet.
I'm using IBM websphere portal 6.0.1.3
I have tried to use an application object and a visibility rule with my application object, but my problem with that is I think is not possible to change the value of the property of the application object at runtimme. In my portlet I create a new instance of the application object and set the new value to the property, but the visibilit rule don't change the result of the condition. I think this is because the visibility rule can't access the portlet session at runtimme.
http://groups.google.com/group/ibm.software.websphere.portal-server/browse_thread/thread/213650a82bf52011
https://www6.software.ibm.com/developerworks/education/websphere/0702_brunn2/0702_brunn2-a4.pdf

Another solution I have tried is to use a request attribute instead of application object but this only works If i set the request attribute in the Default.jsp (this is a jsp of the Portal Theme) and here I can't change this value at runtime.

Another solution I have tried is to use s request parameter but it doesn't work I think because there is a bug with my version of portal. I have found a fix named PK60107 http://www-01.ibm.com/support/docview.wss?rs=688&uid=swg27008899#6013 but the lonk doesn't work for the moment.

I have also read this post http://www.ibm.com/developerworks/forums/thread.jspa?threadID=247917 where they talk about cooperative portlets but In my visibility rule the property never appears.

My final solution is to use a white jsp but I think it's better to try with visibility rules, but I don't find the solution.

Thanks in advance.


Hi!
I have used another solution. I use cooperative portlets and send a parameter. When the second portlet receives the parameter I set the windowState to Normal o to Minimized, This is the same as to hide or to show the portlet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hide a portlet when click on other portlet