• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

hide a portlet when click on other portlet

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Are we home yet? Wait, did we forget the tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic