Hi!

Say you want to have two templates for a single class.

You can have

@UiTemplate("firstTemplate.ui.xml")
interface Binder1 extends UiBinder<HTMLPanel, yourClass> {}
private static final Binder binder1= GWT.create(Binder1.class);

@UiTemplate("secondTemplate.ui.xml")
interface Binder2 extends UiBinder<HTMLPanel, yourClass> {}
private static final Binder binder2= GWT.create(Binder2.class);

but how do you specify to which template does each @UiField belong? If
you just write

@UiField SomeWidgetClass someWidget

UiBinder will object unless "someWidget" is found on BOTH templates.

Can this be done, or need I create separate classes for each template?

--

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