Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Portlet Session Scope - Application or Portlet

 
N Rao
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
 
pulijala hari
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic