It never fails. Toil with it for a while and get nowhere. Ask the question and instantly find the answer.
For those that suffer from the same problem, use getElement().getStyle().setProperty. On Sep 2, 10:03 am, Jason <[EMAIL PROTECTED]> wrote: > I am trying to rewrite a php app in gwt. > > One of the things the php app does is read in a property from an > existing system that dynamically builds windows forms and attempts to > 'recreate' the windows form in php. > > It does this by dynamically setting style properties based on what is > stored in the tables. For instance, if the background color of a form > is #FF0000, it changes the background color style property in php to > match. The trick is you don't know what the color you're reading in > is until you read it in. > > GWT appears to be locked into the style properties being already > created in order to assign them to widgets. Is there no way to assign > a style property dynamically, without that property already being in a > CSS file? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
