Applying Custom Style for a portlet

Hi

I wanted to apply a custom style to a single portlet without affecting any other portlets present on the same page.

With setTheme() method within Application i was able to apply the theme for the portlet but that gets applied to all the portlets present on the same page.

Is there any other approach for applying style for a portlet.
(I dont see a setStyle() method for portlets which is available for components.)

Thanks
RP

You can add a style name for the root window or layout of the application. Would that be enough (each portlet having a unique style name)?

Thank you for the response

I tried setting style to the main window, but those changes are not getting effected in portlet level.

Thanks
RP

Hmm, that’s odd, and sounds like a bug. Anyhow, adding a style name for the root layout should definitely work.