Actually I am trying this but cannot get it working. *Here is the code*
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"> <ui:with field='res' type='myth.social.zomato.client.Mainlist.Images' /> <ui:style src="resources/GlobalStyles.css"> </ui:style> <g:Tree ui:field='tree' resources='res' > <g:TreeItem text='Delhi/NCR' /> <g:TreeItem text='Banglore'/> <g:TreeItem text='Mumbai'/> </g:Tree> </ui:UiBinder> *And the Java File* package myth.social.zomato.client; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.ImageResource; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiFactory; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Tree; import com.google.gwt.user.client.ui.Tree.Resources; import com.google.gwt.user.client.ui.Widget; public class Mainlist extends Composite { interface MainlistUiBinder extends UiBinder<Widget, Mainlist> { } private static MainlistUiBinder uiBinder = GWT .create(MainlistUiBinder.class); public interface Images extends Tree.Resources , ClientBundle { @Source("resources/home.png") ImageResource homeLogo(); } //We are using an overloaded version of Tree constructor @UiField(provided=true) Tree tree; @UiFactory Tree createTree(Resources resources) { return new Tree(resources); } public Mainlist() { initWidget(uiBinder.createAndBindUi(this)); } } Can you point out where am i going wrong? :| -- 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.
