Foros de discusión

Programmatically create a new portlet instance

thumbnail
Raymond Gardner, modificado hace 12 años.

Programmatically create a new portlet instance

Regular Member Mensajes: 118 Fecha de incorporación: 15/07/11 Mensajes recientes
Can I programmatically create a new portlet instance, of an instanceable portlet, and place it on a page for display to the user?

I want to have portlets be displayed or not be displayed based on data in a backend system.
I'm wondering if I need to enumerate all possible portlets ahead of time, and then control which ones get display
by using roles, and modify the roles based on the data from the backend system? Or, is there an easier way
to control it by using the Liferay built-in services/utilities?
Tony Rad, modificado hace 12 años.

RE: Programmatically create a new portlet instance

Junior Member Mensajes: 29 Fecha de incorporación: 25/02/11 Mensajes recientes