Win a copy of Svelte and Sapper in Action this week in the JavaScript 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

Portlet Session Scope - Application or Portlet

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am new to Portlets and confused about the Portlet Session Scope. Shall appreciate if any one could explain this to me.

Here is my understanding of the Portlet Session Scope.
1. If the Portlet Session Scope is set to "Application Scope", the attributes are visible to all portlets of the same WAR-file. Am I correct?

1.a. Is it visible to all portlet windows of the portlets of the same WAR-file across different pages of the same portal?

2. If set to "Portlet Scope", the attributes are accessible/visible only in the same Portlet?

2.a. Does this hold good for all windows of the same Portlet across pages in the same portal?

Your replies can be in refernce to either JSR-168 based, JSR-286 based or IBM Portlet APIs.

Thank you very much in advance.

Best regards,
NRao
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. If the Portlet Session Scope is set to "Application Scope", the attributes are visible to all portlets of the same WAR-file. Am I correct?
YES--You are correct.
1.a. Is it visible to all portlet windows of the portlets of the same WAR-file across different pages of the same portal?
It is visible across all pages of the portal.
2. If set to "Portlet Scope", the attributes are accessible/visible only in the same Portlet?
Yes-they are only accessible for that portlet.
2.a. Does this hold good for all windows of the same Portlet across pages in the same portal?
Yes.
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"pulijalahari", please check your private mesages.
 
N Rao
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by pulijalahari:
1. If the Portlet Session Scope is set to "Application Scope", the attributes are visible to all portlets of the same WAR-file. Am I correct?
YES--You are correct.
1.a. Is it visible to all portlet windows of the portlets of the same WAR-file across different pages of the same portal?
It is visible across all pages of the portal.
2. If set to "Portlet Scope", the attributes are accessible/visible only in the same Portlet?
Yes-they are only accessible for that portlet.
2.a. Does this hold good for all windows of the same Portlet across pages in the same portal?
Yes.



Dear Hari,
Thank you for your inputs.
They are indeed very helpful.

Best Wishes,
Rao
 
Dinner will be steamed monkey heads with a side of tiny ads.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic