I have created 2-3 themes and put it in installedapps folder this way I am able to change theme from Administrator of WPS.

But I want to develop one portlet and want to give facility to end user to select theme at runtime.

So, does anyone have idea about how to select theme at runtime from your application (portlet)?? I want to create that portlet using JSR 168.

At the end I want to do it as the same way as some website allows you to select theme like iGoogle allow you to select theme.

Any help would be highly appreciated.