掲示板

private-request-attributes and private-session-attributes

9年前 に Sadaf Riaz によって更新されました。

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
9年前 に David H Nebinger によって更新されました。

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

Liferay Legend 投稿: 14918 参加年月日: 06/09/02 最新の投稿
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
9年前 に Neil Griffin によって更新されました。

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

Liferay Legend 投稿: 2655 参加年月日: 05/07/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.