Re: Frustrated with GWT
Did you map your servlet in your web.xml file? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/95sWSOEQpS4J. To post to this group, send email to google-web-toolkit@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.
Re: Frustrated with GWT
Yeah, definitely looks like a case-sensitive error. It's got uppercase letters in the mapping of where it's listening on, but all lowercase in the request. On Jul 24, 11:09 pm, Gal Dolber gal.dol...@gmail.com wrote: Maybe the uppercases? try this: url-pattern/timesheettracking/timesheetlogin/url-pattern On Sat, Jul 23, 2011 at 9:16 PM, edprog edwin...@gmail.com wrote: Hello, I like the look and feel of GWT but I can find out why i am getting a Error when invoking the pageable data service :404 html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/ titleError 404 NOT_FOUND/title /head bodyh2HTTP ERROR 404/h2 pProblem accessing /timesheettracking/timesheetlogin. Reason: pre NOT_FOUND/pre/phr /ismallPowered by Jetty:///small I have spent 2 days already trying to figure it out and about to give up. Here is my code WEB.XML ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Servlets -- servlet servlet-nametimesheetLoginServlet/servlet-name servlet- classcom.timesheet.tmproject.server.TimeSheetLoginServiceImpl/ servlet-class /servlet servlet-mapping servlet-nametimesheetLoginServlet/servlet-name url-pattern/TimeSheetTracking/timesheetlogin/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileTimeSheetTracking.html/welcome-file /welcome-file-list /web-app //TIMESHEET LOGIN SERVICE package com.timesheet.tmproject.client; import java.util.List; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; public interface TimeSheetLoginService extends RemoteService { public boolean isAuthenticated(String empID, String password ); } //TIMESHEET LOGIN SERVICE ASYNC package com.timesheet.tmproject.client; import com.google.gwt.user.client.rpc.AsyncCallback; public interface TimeSheetLoginServiceAsync { public void isAuthenticated(String empID, String password ,AsyncCallback callback); } //TIMESHEETTRACK.JAVA package com.timesheet.tmproject.client; import java.util.ArrayList; import java.util.Iterator; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyUpEvent; import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.ServiceDefTarget; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.PasswordTextBox; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.SourcesTabEvents; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.TabListener; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; /** * Entry point classes define codeonModuleLoad()/code. */ public class TimeSheetTracking implements EntryPoint { VerticalPanel vpLogin = new VerticalPanel(); private Label lblLoginEmpID = new Label(Employee ID); private TextBox txtEmpID = new TextBox(); private Label lblLoginPassword = new Label(**Password ); private PasswordTextBox txtPassword = new PasswordTextBox(); private Button btnLogin = new Button(Login); private String _empID; private String _password; final TimeSheetLoginServiceAsync timesheetLoginServlet = (TimeSheetLoginServiceAsync) GWT .create(TimeSheetLoginService.class); @SuppressWarnings(deprecation) public void onModuleLoad() { ServiceDefTarget endpoint = (ServiceDefTarget) timesheetLoginServlet; endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + timesheetlogin); txtEmpID.setStyleName(txtTextbox); txtPassword.setStyleName(txtTextbox); lblLoginEmpID.setStyleName(lblLabels); lblLoginPassword.setStyleName(lblLabels); btnLogin.setStyleName(btnButtons); // Create a tab panel with three items. TabPanel panel = new TabPanel(); HorizontalPanel hpLogin = new HorizontalPanel();
Re: Frustrated with GWT
oops, i missed the web.xml at the top of the post. Yea, I agree with everyone else. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DDvZmZ3QfosJ. To post to this group, send email to google-web-toolkit@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.
Re: Frustrated with GWT
I spent one week trying to connect my GWT Client application to my Servlet throug RPC and I got a similar problem. I gave up testing from Eclipse/GWT plugin against my servlet handling the JDBC connection. It looks like GWT is forcing you to use Jetty and GWT database. I solved the problem with the following solution: I created a Java package (.jar) to handle all JDBC statements only. The Servlet invokes the classes in that .jar files. I deployed the Servlet and the package in Tomcat I wrote a JSP to test the Servlet. It works great. I generated a jar file with my GWT Client application which implements RPC to call the Servlet. I deployed the GWT Client application in Tomcat. I tested the whole thing successfully. You can spent about one hours splitting your application in three pieces, but it'll work. After that I'm very happy using GWT just for UI. I hope this can help you. Greetings, JC On Jul 23, 5:16 pm, edprog edwin...@gmail.com wrote: Hello, I like the look and feel of GWT but I can find out why i am getting a Error when invoking the pageable data service :404 html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/ titleError 404 NOT_FOUND/title /head bodyh2HTTP ERROR 404/h2 pProblem accessing /timesheettracking/timesheetlogin. Reason: pre NOT_FOUND/pre/phr /ismallPowered by Jetty:///small I have spent 2 days already trying to figure it out and about to give up. Here is my code WEB.XML ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Servlets -- servlet servlet-nametimesheetLoginServlet/servlet-name servlet- classcom.timesheet.tmproject.server.TimeSheetLoginServiceImpl/ servlet-class /servlet servlet-mapping servlet-nametimesheetLoginServlet/servlet-name url-pattern/TimeSheetTracking/timesheetlogin/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileTimeSheetTracking.html/welcome-file /welcome-file-list /web-app //TIMESHEET LOGIN SERVICE package com.timesheet.tmproject.client; import java.util.List; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; public interface TimeSheetLoginService extends RemoteService { public boolean isAuthenticated(String empID, String password ); } //TIMESHEET LOGIN SERVICE ASYNC package com.timesheet.tmproject.client; import com.google.gwt.user.client.rpc.AsyncCallback; public interface TimeSheetLoginServiceAsync { public void isAuthenticated(String empID, String password ,AsyncCallback callback); } //TIMESHEETTRACK.JAVA package com.timesheet.tmproject.client; import java.util.ArrayList; import java.util.Iterator; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyUpEvent; import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.ServiceDefTarget; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.PasswordTextBox; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.SourcesTabEvents; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.TabListener; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; /** * Entry point classes define codeonModuleLoad()/code. */ public class TimeSheetTracking implements EntryPoint { VerticalPanel vpLogin = new VerticalPanel(); private Label lblLoginEmpID = new Label(Employee ID); private TextBox txtEmpID = new TextBox(); private Label lblLoginPassword = new Label(**Password ); private PasswordTextBox txtPassword = new PasswordTextBox(); private Button btnLogin = new Button(Login); private String _empID; private String _password; final TimeSheetLoginServiceAsync timesheetLoginServlet = (TimeSheetLoginServiceAsync) GWT .create(TimeSheetLoginService.class); @SuppressWarnings(deprecation) public void onModuleLoad() { ServiceDefTarget endpoint = (ServiceDefTarget) timesheetLoginServlet;
Frustrated with GWT
Hello, I like the look and feel of GWT but I can find out why i am getting a Error when invoking the pageable data service :404 html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/ titleError 404 NOT_FOUND/title /head bodyh2HTTP ERROR 404/h2 pProblem accessing /timesheettracking/timesheetlogin. Reason: preNOT_FOUND/pre/phr /ismallPowered by Jetty:///small I have spent 2 days already trying to figure it out and about to give up. Here is my code WEB.XML ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Servlets -- servlet servlet-nametimesheetLoginServlet/servlet-name servlet- classcom.timesheet.tmproject.server.TimeSheetLoginServiceImpl/ servlet-class /servlet servlet-mapping servlet-nametimesheetLoginServlet/servlet-name url-pattern/TimeSheetTracking/timesheetlogin/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileTimeSheetTracking.html/welcome-file /welcome-file-list /web-app //TIMESHEET LOGIN SERVICE package com.timesheet.tmproject.client; import java.util.List; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; public interface TimeSheetLoginService extends RemoteService { public boolean isAuthenticated(String empID, String password ); } //TIMESHEET LOGIN SERVICE ASYNC package com.timesheet.tmproject.client; import com.google.gwt.user.client.rpc.AsyncCallback; public interface TimeSheetLoginServiceAsync { public void isAuthenticated(String empID, String password ,AsyncCallback callback); } //TIMESHEETTRACK.JAVA package com.timesheet.tmproject.client; import java.util.ArrayList; import java.util.Iterator; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyUpEvent; import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.ServiceDefTarget; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.PasswordTextBox; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.SourcesTabEvents; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.TabListener; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; /** * Entry point classes define codeonModuleLoad()/code. */ public class TimeSheetTracking implements EntryPoint { VerticalPanel vpLogin = new VerticalPanel(); private Label lblLoginEmpID = new Label(Employee ID); private TextBox txtEmpID = new TextBox(); private Label lblLoginPassword = new Label(**Password ); private PasswordTextBox txtPassword = new PasswordTextBox(); private Button btnLogin = new Button(Login); private String _empID; private String _password; final TimeSheetLoginServiceAsync timesheetLoginServlet = (TimeSheetLoginServiceAsync) GWT .create(TimeSheetLoginService.class); @SuppressWarnings(deprecation) public void onModuleLoad() { ServiceDefTarget endpoint = (ServiceDefTarget) timesheetLoginServlet; endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + timesheetlogin); txtEmpID.setStyleName(txtTextbox); txtPassword.setStyleName(txtTextbox); lblLoginEmpID.setStyleName(lblLabels); lblLoginPassword.setStyleName(lblLabels); btnLogin.setStyleName(btnButtons); // Create a tab panel with three items. TabPanel panel = new TabPanel(); HorizontalPanel hpLogin = new HorizontalPanel(); hpLogin.add(lblLoginEmpID); hpLogin.add(txtEmpID); vpLogin.add(hpLogin); HorizontalPanel hpLogin2 = new HorizontalPanel(); hpLogin2.add(lblLoginPassword); hpLogin2.add(txtPassword); hpLogin2.add(btnLogin); vpLogin.add(hpLogin2); panel.add(vpLogin, Login); panel.setWidth(100%); panel.selectTab(0); // Hook up a tab listener to do something when the user selects a tab. panel.addTabListener(new TabListener() {
Re: Frustrated with GWT
Maybe the uppercases? try this: url-pattern/timesheettracking/timesheetlogin/url-pattern On Sat, Jul 23, 2011 at 9:16 PM, edprog edwin...@gmail.com wrote: Hello, I like the look and feel of GWT but I can find out why i am getting a Error when invoking the pageable data service :404 html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/ titleError 404 NOT_FOUND/title /head bodyh2HTTP ERROR 404/h2 pProblem accessing /timesheettracking/timesheetlogin. Reason: preNOT_FOUND/pre/phr /ismallPowered by Jetty:///small I have spent 2 days already trying to figure it out and about to give up. Here is my code WEB.XML ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Servlets -- servlet servlet-nametimesheetLoginServlet/servlet-name servlet- classcom.timesheet.tmproject.server.TimeSheetLoginServiceImpl/ servlet-class /servlet servlet-mapping servlet-nametimesheetLoginServlet/servlet-name url-pattern/TimeSheetTracking/timesheetlogin/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileTimeSheetTracking.html/welcome-file /welcome-file-list /web-app //TIMESHEET LOGIN SERVICE package com.timesheet.tmproject.client; import java.util.List; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; public interface TimeSheetLoginService extends RemoteService { public boolean isAuthenticated(String empID, String password ); } //TIMESHEET LOGIN SERVICE ASYNC package com.timesheet.tmproject.client; import com.google.gwt.user.client.rpc.AsyncCallback; public interface TimeSheetLoginServiceAsync { public void isAuthenticated(String empID, String password ,AsyncCallback callback); } //TIMESHEETTRACK.JAVA package com.timesheet.tmproject.client; import java.util.ArrayList; import java.util.Iterator; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyUpEvent; import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.ServiceDefTarget; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.PasswordTextBox; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.SourcesTabEvents; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.TabListener; import com.google.gwt.user.client.ui.TabPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; /** * Entry point classes define codeonModuleLoad()/code. */ public class TimeSheetTracking implements EntryPoint { VerticalPanel vpLogin = new VerticalPanel(); private Label lblLoginEmpID = new Label(Employee ID); private TextBox txtEmpID = new TextBox(); private Label lblLoginPassword = new Label(**Password ); private PasswordTextBox txtPassword = new PasswordTextBox(); private Button btnLogin = new Button(Login); private String _empID; private String _password; final TimeSheetLoginServiceAsync timesheetLoginServlet = (TimeSheetLoginServiceAsync) GWT .create(TimeSheetLoginService.class); @SuppressWarnings(deprecation) public void onModuleLoad() { ServiceDefTarget endpoint = (ServiceDefTarget) timesheetLoginServlet; endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + timesheetlogin); txtEmpID.setStyleName(txtTextbox); txtPassword.setStyleName(txtTextbox); lblLoginEmpID.setStyleName(lblLabels); lblLoginPassword.setStyleName(lblLabels); btnLogin.setStyleName(btnButtons); // Create a tab panel with three items. TabPanel panel = new TabPanel(); HorizontalPanel hpLogin = new HorizontalPanel(); hpLogin.add(lblLoginEmpID); hpLogin.add(txtEmpID); vpLogin.add(hpLogin); HorizontalPanel hpLogin2 = new HorizontalPanel(); hpLogin2.add(lblLoginPassword); hpLogin2.add(txtPassword); hpLogin2.add(btnLogin); vpLogin.add(hpLogin2); panel.add(vpLogin,
Re: Frustrated with GWT Binder
Paul, Thank you very much On Nov 27, 2:26 am, Paul Stockley pstockl...@gmail.com wrote: You need to add it to the RootLayoutPanel not the RootPanel. On Nov 26, 2:46 am,JeffZhangzjf...@gmail.com wrote: Hi all, I'd like to create a UI like the sample application Mail. But I meet some weird problems. When I run the application, I can only see an empty page with nothing, What's wrong with my code ? The following is my sample code: // widget binder xml !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 xmlns:e=urn:import:zjffdu.tutorial.gwt.uibinder.client ui:style .bolder { font-weight: bolder; } /ui:style g:DockLayoutPanel unit=EM g:center size=40 g:Label text=my label/g:Label /g:center /g:DockLayoutPanel /ui:UiBinder // binder java class public class MyBinderWidget extends Composite { private static MyBinderWidgetUiBinder uiBinder = GWT .create(MyBinderWidgetUiBinder.class); interface MyBinderWidgetUiBinder extends UiBinderWidget, MyBinderWidget { } public MyBinderWidget() { initWidget(uiBinder.createAndBindUi(this)); } } /** * Entry point classes define codeonModuleLoad()/code. */ public class UIBinderExample implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { MyBinderWidget widget=new MyBinderWidget(); RootPanel.get().add(widget); } } -- 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.
Frustrated with GWT Binder
Hi all, I'd like to create a UI like the sample application Mail. But I meet some weird problems. When I run the application, I can only see an empty page with nothing, What's wrong with my code ? The following is my sample code: // widget binder xml !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 xmlns:e=urn:import:zjffdu.tutorial.gwt.uibinder.client ui:style .bolder { font-weight: bolder; } /ui:style g:DockLayoutPanel unit=EM g:center size=40 g:Label text=my label/g:Label /g:center /g:DockLayoutPanel /ui:UiBinder // binder java class public class MyBinderWidget extends Composite { private static MyBinderWidgetUiBinder uiBinder = GWT .create(MyBinderWidgetUiBinder.class); interface MyBinderWidgetUiBinder extends UiBinderWidget, MyBinderWidget { } public MyBinderWidget() { initWidget(uiBinder.createAndBindUi(this)); } } /** * Entry point classes define codeonModuleLoad()/code. */ public class UIBinderExample implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { MyBinderWidget widget=new MyBinderWidget(); RootPanel.get().add(widget); } } -- 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.
Re: Frustrated with GWT Binder
You need to add it to the RootLayoutPanel not the RootPanel. On Nov 26, 2:46 am, Jeff Zhang zjf...@gmail.com wrote: Hi all, I'd like to create a UI like the sample application Mail. But I meet some weird problems. When I run the application, I can only see an empty page with nothing, What's wrong with my code ? The following is my sample code: // widget binder xml !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 xmlns:e=urn:import:zjffdu.tutorial.gwt.uibinder.client ui:style .bolder { font-weight: bolder; } /ui:style g:DockLayoutPanel unit=EM g:center size=40 g:Label text=my label/g:Label /g:center /g:DockLayoutPanel /ui:UiBinder // binder java class public class MyBinderWidget extends Composite { private static MyBinderWidgetUiBinder uiBinder = GWT .create(MyBinderWidgetUiBinder.class); interface MyBinderWidgetUiBinder extends UiBinderWidget, MyBinderWidget { } public MyBinderWidget() { initWidget(uiBinder.createAndBindUi(this)); } } /** * Entry point classes define codeonModuleLoad()/code. */ public class UIBinderExample implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { MyBinderWidget widget=new MyBinderWidget(); RootPanel.get().add(widget); } } -- 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.