Dims
Dims

Reputation: 51159

How to determine css-class-wrapper programmatically in Liferay?

liferay-portlet.xml file allows <css-class-wrapper> tag inside <portlet> tag.

Is it possible to determine it's content programmatically in portlet class or JSP?

Upvotes: 2

Views: 1149

Answers (1)

Pankaj Kathiriya
Pankaj Kathiriya

Reputation: 4210

You can get it by code below

Portlet portlet = (Portlet)request.getAttribute(WebKeys.RENDER_PORTLET);
String cssClassWrapper=portlet.getCssClassWrapper();

Upvotes: 4

Related Questions