Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change themes in Vaadin 7 via code

Tags:

themes

vaadin

I am doing a project in Vaadin 7. In that I need to change the theme of a page.

In Vaadin 6, there is a function called 'setTheme()'. so that I can change the theme using that function wherever I want in my code.

But, In Vaadin 7, I couldn't find any like that.

I know there will be a way to do it.

And also how to apply changes on the UI when I change a theme?

Will it be changed automatically? (or)

ICEPush gonna help me?

like image 897
Gugan Avatar asked Apr 22 '13 07:04

Gugan


1 Answers

setTheme functionality has been introduced in Vaadin 7.3.0: https://vaadin.com/wiki/-/wiki/Main/Changing+theme+on+the+fly

like image 168
Leif Åstrand Avatar answered Oct 01 '22 07:10

Leif Åstrand