Forums Register Login

hide a portlet when click on other portlet

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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 think I'll just lie down here for a second. And ponder this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2800 times.
Similar Threads
829 with 100%
How to use request param attribute in Rules in Webshphere Portal 6.0
Websphere Portal - Test 399
Passed IBM 829
how to open JSP page in new window in IBM RAD in portal application
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:39:34.