How to set CSS style colors in GWT

Posted by AmaltasCoder on Stack Overflow See other posts from Stack Overflow or by AmaltasCoder
Published on 2010-12-30T13:45:33Z Indexed on 2011/01/01 0:53 UTC
Read the original article Hit count: 152

Filed under:
|
|

I have a GWT + AppEngine application that lets users create online polls. I want to let the poll creator choose from a variety of themes for his poll. We will save the theme a poll creator chose on the server and whenever a poll respondent access the poll he will get the questions with the chosen theme.

A theme for us means a set of 4-5 colors which we will use to style the poll page. Our client side application is a GWT application with styles set inline in UiBinder templates elements, for example:

<ui:style>
.header {
background: color1;
padding: 6px 6px;
}
.anothercssclass {
background: color2;
padding: 6px 6px;
}
</ui:style>

Please suggest how we can set the color1 and color2 from the theme saved on server. Please note this is NOT a GWT module theme question.

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about gwt