On Dec 17, 9:25 am, Itzik Yatom <itzik...@hotmail.com> 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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.