This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

hide a portlet when click on other portlet

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Oh the stink of it! Smell my tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic