Friday, July 6, 2012
What is Instanceable and Non Instancealble portlet?
if the The portlet’s set of data belongs to community or organization then its non-instanceable portlet. Even if you add that portlet in another page it shows same data.
if the The portlet's set of data belongs to user then its called instanceable.
If Portlet is non-instanceable then we can add same portlet more than once on same page.
if Portlet is instanceable then we can add more than once on same page.
In other words, non-instanceable portlets by default all point to the same instance of data.
For non-instanceable portlets, the data a portlet contains belongs to the community or organization.
we have instanceable attribute in liferay-portlet.xml
Set the instanceable value to true if the portlet can appear multiple times on a page. If set to false, the portlet can only appear once on a page
instanceable portlets have uniquely generated portlet ids.
Subscribe to:
Post Comments (Atom)
Hi Suresh,
ReplyDeleteinteresting article. A question: non-instanceable portlet can be instanced on different page of the same community. Is it possibile, for different pages on which this kind of portlet has instanced, that single portlet can points to different configuration data?
thanks in advance
Pietro