Thanks for clearing that up Thomas, I didn't know you could do that
with uibinder!

--
Arthur Kalmenson



On Thu, Dec 17, 2009 at 12:51 PM, Thomas Broyer <[email protected]> wrote:
>
>
> On Dec 17, 9:25 am, Itzik Yatom <[email protected]> wrote:
>> When adding the attribute styleName to an UiBinder XML element, GWT
>> translates it to setStyleName method call.
>> The problem is when using a custom Composite class that already has
>> called to setStyleName method, UiBinder supersedes the Composite
>> style.
>> I wish that UIBinder would call to addStyleName instead but I
>> understand that it's based on the entity bean approach.
>> Is there a way to overcome that?
>
> UiBinder can call addStyleName, just use addStyleNames="" (with a
> whitespace or comma-separated list of style names to be passed, in
> turn to addStyleName:
>
> <my:Composite addStyleNames="some-other-style-name
> {style.andAnotherOneFromACssResource}" />
>
> --
>
> 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.
>
>
>

--

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.


Reply via email to