But you only can change the value before cssResource.ensureInjected()...
Maybe if you force cssResource "re-injection" (if this is possible) you can
use this dynamically generated css resource, but in any case I think that
use a CSS class to dinamically control the with of a element its a bad idea.

On Fri, Mar 1, 2013 at 2:23 PM, Pablo Nussembaum <[email protected]> wrote:

>  Hi,
> If you use a cssResource you can use runtime substitution:
> https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle?hl=es-#Runtime_substitution
>
> On 03/01/2013 10:18 AM, membersound wrote:
>
> Hi,
>
> how can a css attribute made dynamically read from the java backend class?
>
> <ui:style>
>  .size {
>     width: 100px; //can I get the 100 from java backing and change it
> dynamically?
>  }
> <ui:style>
>
> I know I can set the styles programatically from java code and might
> thereby change the width. But are things like this also possible?
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to