Fórumok

Portlet title and display name

thumbnail
Tonu Sri, módosítva 11 év-val korábban

Portlet title and display name

Regular Member Bejegyzések: 197 Csatlakozás dátuma: 2011.04.15. Legújabb bejegyzések
Hi,

I want to understand difference between:
portlet.xml, <display-name>
portlet.xml, <portlet-info>/<title>

I am not getting exact meaning of these lines:
The display name indicates with what name you want your portlet to be identified in the Add- Application menu.


Please can someone elaborate on this.

Thanks in advance:
thumbnail
Dhandapani S, módosítva 11 év-val korábban

RE: Portlet title and display name

Regular Member Bejegyzések: 176 Csatlakozás dátuma: 2009.03.24. Legújabb bejegyzések
Hi Tonu,


portlet-name - The portlet-name element contains the canonical name of the portlet. Each portlet name is unique within the portlet application.
display-name - The display-name type contains a short name that is intended to be displayed by tools. It is used by display-name elements. The display name need not
be unique.
portlet-class - The portlet-class element contains the fully qualified class name of the portlet.
init-param - The init-param element contains a name/value pair as an initialization param of the portlet.
expiration-cache- Expiration-cache defines expiration-based caching for this portlet. The parameter indicates the time in seconds after which the portlet output expires. -1
indicates that the output never expires.
supports- The supports element contains the supported mime-type. Supports also indicates the portlet modes a portlet supports for a specific content type. All
portlets must support the view mode.
portlet-info - Portlet-info defines portlet information.
security-role-ref - The security-role-ref element contains the declaration of a security role reference in the code of the web application. Specifically in Liferay, the role-name
references which role’s can access the portlet. (A Power User can personalize the portal, whereas a User cannot.)

I hope you will have an idea of portlet.xml all elements now.

Regards
Dhandapani
S
thumbnail
Dhandapani S, módosítva 11 év-val korábban

RE: Portlet title and display name

Regular Member Bejegyzések: 176 Csatlakozás dátuma: 2009.03.24. Legújabb bejegyzések
Hi Tonu,


portlet-name - The portlet-name element contains the canonical name of the portlet. Each portlet name is unique within the portlet application.
display-name - The display-name type contains a short name that is intended to be displayed by tools. It is used by display-name elements. The display name need not
be unique.
portlet-class - The portlet-class element contains the fully qualified class name of the portlet.
init-param - The init-param element contains a name/value pair as an initialization param of the portlet.
expiration-cache- Expiration-cache defines expiration-based caching for this portlet. The parameter indicates the time in seconds after which the portlet output expires. -1
indicates that the output never expires.
supports- The supports element contains the supported mime-type. Supports also indicates the portlet modes a portlet supports for a specific content type. All
portlets must support the view mode.
portlet-info - Portlet-info defines portlet information.
security-role-ref - The security-role-ref element contains the declaration of a security role reference in the code of the web application. Specifically in Liferay, the role-name
references which role’s can access the portlet. (A Power User can personalize the portal, whereas a User cannot.)

I hope you will have an idea of portlet.xml all elements now.

Regards
Dhandapani
S
thumbnail
Hitoshi Ozawa, módosítva 11 év-val korábban

RE: Portlet title and display name

Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
According to the JSR168 specification, <display-name> is the name used only in GUI tools to distinguish portlets.
Value of <title> in <portlet-info> is what appears in the portlet's title bar.
thumbnail
Tonu Sri, módosítva 11 év-val korábban

RE: Portlet title and display name

Regular Member Bejegyzések: 197 Csatlakozás dátuma: 2011.04.15. Legújabb bejegyzések
Thanks to all....