留言板

private-request-attributes and private-session-attributes

Sadaf Riaz,修改在9 年前。

private-request-attributes and private-session-attributes

New Member 帖子: 9 加入日期: 14-10-20 最近的帖子
Anyone can tell me the use of following two portlet properties with value 'True' and 'False'

<private-request-attributes>true</private-request-attributes>
<private-session-attributes>true</private-session-attributes>

And also their impacts if there are multiple portlets or single portlet deployed on a page.

Best Regards,
Sadaf
thumbnail
David H Nebinger,修改在9 年前。

RE: private-request-attributes and private-session-attributes

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
Whenever you have questions about the XML tags/attributes, your first step should be to go to your Liferay source and go to the definitions folder and find the DTD. They are highly documented and will answer any and all of your questions.

That said, here's what you would have found:

<!--
Set the private-request-attributes value to true if the portlet does not share
request attributes with the portal or any other portlet. The default value is
true. The property "request.shared.attributes" in portal.properties specifies
which request attributes are shared even when the private-request-attributes
value is true.
-->
<!ELEMENT private-request-attributes (#PCDATA)>

<!--
Set the private-session-attributes value to true if the portlet does not share
session attributes with the portal. The default value is true. The property
"session.shared.attributes" in portal.properties specifies which session
attributes are shared even when the private-session-attributes value is true.
-->
<!ELEMENT private-session-attributes (#PCDATA)>
thumbnail
Neil Griffin,修改在9 年前。

RE: private-request-attributes and private-session-attributes

Liferay Legend 帖子: 2655 加入日期: 05-7-27 最近的帖子
It has been my experience that setting <private-request-attributes>false</private-request-attributes> can introduce problems in some circumstances. For more info, see FACES-264 and FACES-280.