Thanks Mike and Kerem for your suggestions. I have various sub-modules, declaring the xml in the java file is more appropriate for my project. It is working like a charm.
-Suresh On Apr 27, 9:57 am, KeremTiryaki <[email protected]> wrote: > And I think that code can help to you. When you want to define them in > your java codes. > > public class HelloWorld extends UIObject { // Could extend Widget > instead > @UiTemplate("widget/resources/HelloWorld.ui.xml") > interface MyUiBinder extendsUiBinder<DivElement, HelloWorld> {} > private static MyUiBinderuiBinder= GWT.create(MyUiBinder.class); > > @UiField SpanElement nameSpan; > > public HelloWorld() { > // createAndBindUi initializes this.nameSpan > setElement(uiBinder.createAndBindUi(this)); > } > > public void setName(String name) { nameSpan.setInnerText(name); } > > } > > -- > 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 > athttp://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.
