This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Portlet Session Scope - Application or Portlet  RSS feed

 
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
Posts: 65897
135
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!