You need to replace LoginScreenWidget.class with MyUiBinder.class in the line that creates the uiBinder:
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class); On Dec 12, 4:23 pm, Ryan Rathsam <rrath...@gmail.com> wrote: > Hi All, > > I've just started looking into UiBinder as a possibility for building > UI's. I've been running through some tutorials and thought I had a > decent understanding of how to implement it in my own project. > Unfortunately that doesn't seem to be the case. My problem is this, > when I load up the GWT project in Eclipse and run it locally I get a: > > Caused by: java.lang.RuntimeException: Deferred binding failed for > 'com.digitsllc.uitest.ui.LoginScreenWidget' (did you forget to inherit > a required module?) > > In all of the tutorials I've read it seems there are a few things that > need to be in the class to make it go > - Extend Composite (Although from the Google Page it looks like you > can extend some others) > - Have these 2 lines in there: > - interface MyUiBinder extends UiBinder<Widget, > LoginScreenWidget> {} > - private static MyUiBinder uiBinder = > GWT.create(LoginScreenWidget.class); > - and then make sure to CreateAndBindUI(this); > > I have the ui.xml file in the same package and have defined the usage > in the entrypoint method as follows: > > LoginScreenWidget lsw = new LoginScreenWidget(); > RootPanel.get().add(lsw); > > Which was the same across all the tutorials / documents I found. > > I've done some looking around but nothing really fits so I figured I > would come to the source. Any and all help / pointing in the right > direction would be much appreciated. > > Thanks all, > > P.S. if code would help just let me know which files and I'll post it > up. > > Ryan -- 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.