Re: Generated HTML Doesn't Display
Also found that the login page isn't being displayed properly in Firefox (only part of the page is displayed). Pressing the tab key resolves the problem which makes me think there is something weird going on with the way GWT does layout. It is possible this might be related to the image map not showing up. Fix one and it might fix the other. Haven't done any major changes which could be causing these issues. On Sep 12, 9:37 pm, Nick Apperley napper...@gmail.com wrote: Ran the application in Firefox instead of Chrome and found it displays a funny looking blue box. Right clicked on it, selected View Image and found that the image (an ordinary SVG file) isdisplayedjust fine. Talk about bizarre rendering behavior between browsers. Not sure why the image map is no longerdisplayedproperly as it used to work fine in both browsers. -- 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-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: Generated HTML Doesn't Display
Ran the application in Firefox instead of Chrome and found it displays a funny looking blue box. Right clicked on it, selected View Image and found that the image (an ordinary SVG file) is displayed just fine. Talk about bizarre rendering behavior between browsers. Not sure why the image map is no longer displayed properly as it used to work fine in both browsers. On Sep 11, 3:55 pm, Nick Apperley napper...@gmail.com wrote: Correction - Just tried the application using Jetty instead of Glassfish and the same problem occurs. At a complete loss as to why the generated HTML isn't displayed, this is absolutely bizarre. Any possible ideas as to why this is occurring? -- 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-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.
Generated HTML Doesn't Display
Found some strange behavior going on with GWT 2.3 when the application is deployed onto Glassfish 3.1 instead of the built-in Jetty. Normally an image map is displayed on the web page after the user selects some things from some combo boxes which works in Jetty. Under Glassfish 3.1 (via dev mode) the image map isn't displayed despite the fact that the HTML has been updated using the GWT API. Out of curiosity I created an ordinary HTML file containing the generated HTML for the image map (grabbed it via Firebug Lite), ran it in Chrome and discovered that the image map displays just fine. At a complete loss as to why the generated HTML isn't displayed, this is absolutely bizarre. Any possible ideas as to why this is occurring? -- 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-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: Generated HTML Doesn't Display
Correction - Just tried the application using Jetty instead of Glassfish and the same problem occurs. On Sep 11, 3:32 pm, Nick Apperley napper...@gmail.com wrote: Found some strange behavior going on with GWT 2.3 when the application is deployed onto Glassfish 3.1 instead of the built-in Jetty. Normally an image map is displayed on the web page after the user selects some things from some combo boxes which works in Jetty. Under Glassfish 3.1 (via dev mode) the image map isn't displayed despite the fact that the HTML has been updated using the GWT API. Out of curiosity I created an ordinary HTML file containing the generated HTML for the image map (grabbed it via Firebug Lite), ran it in Chrome and discovered that the image map displays just fine. At a complete loss as to why the generated HTML isn't displayed, this is absolutely bizarre. Any possible ideas as to why this is occurring? -- 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-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: Blank Page Using Dev Mode On Glassfish
Discovered what the issue was. An incorrect path was pointing to the nocache JavaScript file in the HTML file, hence the blank page. For some reason the GWT plugin will not create a GWT HTML file after clicking on the Finish button in the wizard. Problem exists for both Google Web and Dynamic Web projects. Can only get a GWT HTML file by grabbing one from a Google Web project (just an ordinary Java project) that is created with samples. On Sep 3, 9:14 pm, Thomas Broyer t.bro...@gmail.com wrote: How about the following?http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee(if you use WTP to run your project) -- 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-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.
Blank Page Using Dev Mode On Glassfish
Followed some instructions on getting dev mode to work on Glassfish (http://groups.google.com/group/google-web-toolkit/browse_thread/ thread/43f62776e0b6f1eb). After running the app in dev mode under Chrome a blank page appears, why does this occur? I noticed in the project's WebContent directory (for a Dynamic Web project) that the generated directory uses the package name as part of its name when the project is compiled. Doing the compile in an ordinary Java project results in a generated directory that does not use the package name as part of its name. Not sure if this has any impact with running an application in dev mode. -- 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-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: Blank Page Using Dev Mode On Glassfish
Don't see anything in Eclipse to indicate that there is an instance of the app running in dev mode. Normally when an app is running under dev mode there would be an app entry under the server entry in the Development Mode tab for Eclipse. Chrome displays a GWT icon only if the gwt.codesvr query string is part of the URL. The applications's current URL has the icon displayed in Chrome's address bar. On Sep 3, 11:24 am, Nick Apperley napper...@gmail.com wrote: Followed some instructions on getting dev mode to work on Glassfish (http://groups.google.com/group/google-web-toolkit/browse_thread/ thread/43f62776e0b6f1eb). After running the app in dev mode under Chrome a blank page appears, why does this occur? I noticed in the project's WebContent directory (for a Dynamic Web project) that the generated directory uses the package name as part of its name when the project is compiled. Doing the compile in an ordinary Java project results in a generated directory that does not use the package name as part of its name. Not sure if this has any impact with running an application in dev mode. -- 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-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.
Application Behaving Differently On Glassfish
Have an application that works just fine if it is deployed to Jetty (the built-in one), however it doesn't work as expected when it is deployed to a remote Glassfish server (as a WAR file). Login page appears just fine and the main page appears when a user has logged in correctly (via an HTTP POST with CORS). What is different though is that a single combo box is not populated (via JSONP), and a status message is not appearing (in a GWT Label) on the main page. Double checked to be sure that the same version of the application is being deployed to both Jetty and Glassfish. Unfortunately I cannot get remote deployment working for Glassfish via the Eclipse plugin (a vague error message appears) for development mode. As a result the deployment process for the GWT application is slow, and lacks proper feedback (can't view any GWT log messages). Not even close to determining what is causing the behavior differences. Right now I am running around in circles trying to isolate the causes of the problems. -- 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-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: Application Behaving Differently On Glassfish
Discovered what the main issue is with the single combo box not being populated, an empty response is coming back from the server. Looked at the Glassfish logs to find that it has handled a request from the application and has returned a single result (expected). For some strange reason the application is getting an empty response, why is this different when deploying the application to Glassfish? A status message is now appearing on the main page after doing a reload of the application and restarting Glassfish. Now debug messages can be seen on the client side. DomainsCallback.java: = package com.darc.autohome.automatortool.client.io; import java.util.ArrayList; import com.darc.autohome.automatortool.client.gui.HeaderPanel; import com.darc.autohome.automatortool.client.model.DomainEntry; import com.darc.autohome.automatortool.client.model.Domains; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; public class DomainsCallback implements AsyncCallbackDomains{ private HeaderPanel headerPanel; private ArrayListDomainEntry domains = new ArrayListDomainEntry(); public DomainsCallback(HeaderPanel headerPanel){ this.headerPanel = headerPanel; } @Override public void onFailure(Throwable ex) { GWT.log(Cannot get domains, ex); headerPanel.updateStatus(Cannot get domains); } @Override public void onSuccess(Domains result) { try{ for(int pos = 0; pos result.getDomains().length(); pos++) { domains.add(result.getDomains().get(pos)); } catch(Exception ex){ domains.add(result.getSingleDomain()); } headerPanel.setDomains(domains.toArray(new DomainEntry[domains.size()])); if(domains.size() 0){ headerPanel.updateStatus(); } else{ headerPanel.updateStatus(No Domains found); } } } = Domains.java: = package com.darc.autohome.automatortool.client.model; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArray; public class Domains extends JavaScriptObject{ protected Domains() {} public final native JsArrayDomainEntry getDomains() /*-{ return this.domain; }-*/; public final native DomainEntry getSingleDomain() /*-{ return this.domain; }-*/; } = DomainEntry.java: = package com.darc.autohome.automatortool.client.model; import com.google.gwt.core.client.JavaScriptObject; public class DomainEntry extends JavaScriptObject{ protected DomainEntry() {} public final native String getDomainid() /*-{ return this.domainid; }-*/; public final native void setDomainid(String domainid) /*-{ this.domainid = domainid; }-*/; public final native String getDomainname() /*-{ return this.domainname; }-*/; public final native void setDomainname(String domainname) /*-{ this.domainname = domainname; }-*/; } = On Aug 26, 12:07 pm, Nick Apperley napper...@gmail.com wrote: Have an application that works just fine if it is deployed to Jetty (the built-in one), however it doesn't work as expected when it is deployed to a remote Glassfish server (as a WAR file). Login page appears just fine and the main page appears when a user has logged in correctly (via an HTTP POST with CORS). What is different though is that a single combo box is not populated (via JSONP), and a status message is not appearing (in a GWT Label) on the main page. -- 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-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: Compile Error - Method Not Implemented
Made a silly mistake of having the interface extend EventListener instead of having the class implement EventListener. In the class the required method was already implemented. With that corrected the compile works without any errors. Would be good if the Console window had more meaningful output on where the error occurred (it did not mention about the interface). On Aug 5, 2:21 am, Jeffrey Chimene jchim...@gmail.com wrote: On 8/3/2011 7:56 PM, Nick Apperley wrote: Is there a way to do a clean build from scratch? You can always delete the compiler output (including .class files). If you're using Eclipse, the clean function will accomplish that task. When a compile is done is any caching involved? I think the answer at the level of problem you're having is no. I qualify the no, because if you are using Gin, and are using development mode, and you change the Gin binding information, then it's wise to recompile (i.e. restart development mode). That doesn't seem to be the case here. I'm fairly sure you will find the problem is some unexplored linkage between the .java and the .ui.xml. I've outlined a resolution path below. I know this can be frustrating. In cases like this, the wisdom to strategically cripple your application is crucial to isolating the failure point. On Aug 3, 2:28 am, Jeffrey Chimene jchim...@gmail.com wrote: I see nothing there either. I'd try a few things: o Simplify the file. Use VerticalPanel or HorizontalPanel or a combination of them to replace the g:grid when laying out the labels. o Focus on getting a clean compilation w/o reference to the ui.xml (obviously, it won't run...) Start commenting out the UiField and UiHandler annotations one by one. Donotcomment out the field references. o Does the Template Editor do anything interesting when invoked on this ui.xml? o Look at the generated javascript and see if you can find the linkage to the Problem Child. -- 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-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: Compile Error - Method Not Implemented
Is there a way to do a clean build from scratch? When a compile is done is any caching involved? On Aug 3, 2:28 am, Jeffrey Chimene jchim...@gmail.com wrote: I see nothing there either. I'd try a few things: o Simplify the file. Use VerticalPanel or HorizontalPanel or a combination of them to replace the g:grid when laying out the labels. o Focus on getting a clean compilation w/o reference to the ui.xml (obviously, it won't run...) Start commenting out the UiField and UiHandler annotations one by one. Donotcomment out the field references. o Does the Template Editor do anything interesting when invoked on this ui.xml? o Look at the generated javascript and see if you can find the linkage to the Problem Child. -- 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-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.
Compile Error - Method Not Implemented
Whenever I try to do a compile the method not implemented error appears. The LoginPage.java file has the required method commented out. This should resolve the problem but the compile error still occurs. Below is the result of the compile: Adding '2' new generated units Validating newly compiled units [ERROR] Errors in 'generated:// 48656C47A1796EF8C5CCC8F2542B4F02/com/darc/autohome/automatortool/ client/gui/LoginPage_LoginPageUiBinderImpl.java' [ERROR] Line 8: The type LoginPage_LoginPageUiBinderImpl must implement the inherited abstract method EventListener.onBrowserEvent(Event) See snapshot: /tmp/ com.darc.autohome.automatortool.client.gui.LoginPage_LoginPageUiBinderImpl4841949816845375900.java [ERROR] Errors in 'generated://48656C47A1796EF8C5CCC8F2542B4F02/com/ darc/autohome/automatortool/client/gui/ LoginPage_LoginPageUiBinderImpl.java' [ERROR] Line 8: The type LoginPage_LoginPageUiBinderImpl must implement the inherited abstract method EventListener.onBrowserEvent(Event) [ERROR] Cannot proceed due to previous errors Is there anything that can be checked which could be causing the error to appear? -- 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-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: Compile Error - Method Not Implemented
Had another look at the UI file (LoginPage.ui.xml) and didn't see anything related to the issue. Below is the contents of that file: = !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 type=com.darc.autohome.automatortool.client.Resources field=res / g:HTMLPanel ui:field=mainLayout addStyleNames={res.loginPageStyle.loginBody} g:VerticalPanel g:Label text=Autohome Automator ui:field=titleLbl addStyleNames={res.loginPageStyle.titleLbl}, {res.loginPageStyle.loginText} / g:Label text=Welcome, please login. ui:field=msgLbl addStyleNames={res.loginPageStyle.msgLbl}, {res.loginPageStyle.loginText} / g:Label text= ui:field=statusLbl addStyleNames={res.loginPageStyle.statusLbl} / g:Grid ui:field=fieldLayout addStyleNames={res.loginPageStyle.fieldLayout} g:row g:customCell g:Label text=User Name: ui:field=userNameLbl / /g:customCell g:customCell g:TextBox ui:field=userNameTxt addStyleNames={res.loginPageStyle.textBox} visibleLength=25 / /g:customCell /g:row g:row g:customCell g:Label text=Password: ui:field=passwordLbl/ /g:customCell g:customCell g:PasswordTextBox ui:field=passwordTxt addStyleNames={res.loginPageStyle.textBox} visibleLength=25 / /g:customCell /g:row /g:Grid g:HorizontalPanel ui:field=btnLayout addStyleNames={res.loginPageStyle.btnLayout} g:Button ui:field=loginBtn text=LoginNew Button/g:Button g:Button ui:field=clearBtn text=Clear addStyleNames={res.loginPageStyle.clearBtn}New Button/g:Button /g:HorizontalPanel /g:VerticalPanel /g:HTMLPanel /ui:UiBinder = On Aug 2, 3:41 pm, Jeffrey Chimene jchim...@gmail.com wrote: There's something in the associated ui.xml not matching the .java -- 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-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.
SplitLayoutPanel Sizing?
In the application (using GWT 2.3) there is a SplitLayoutPanel with a widget on the left (East) and one on the right (West). When viewing the application in both FF 3.6 and FF 4 the combo box in the left side of the SplitLayoutPanel has its end chopped off. No resizing of the SplitLayoutPanel with its divider will show the rest of it. Another issue with the SplitLayoutPanel is that the widget on the right side doesn't display in both FF 3.6 and FF4. Initially I thought it was because the widget was reporting the incorrect width however after fixing the width reporting the issue still occurs. What is the best way to size SplitLayoutPanel so that it will allocate half to one side and half to another anytime its contents changes? What might cause SplitLayoutPanel to not display a Widget on a particular side? Below is the contents of the UIBinder file which are relevant to SplitLayoutPanel: --- g:west size=1.0 g:VerticalPanel ui:field=navLayout g:Label text=Image ui:field=imageLbl/ g:ListBox ui:field=zonesCbo/ g:HTMLPanel ui:field=imageLayout div id=imageDiv /div div id=imageMapDiv /div /g:HTMLPanel /g:VerticalPanel /g:west --- The right side of the SplitLayoutPanel has its contents dynamically added/removed. On the left side imageDiv/imageMapDiv have their contents dynamically change, depending on what has been selected at the time by the user. Since some custom HTML elements is used (ImageElement and MapElement) in the left side it could make sizing the SplitLayoutPanel very tricky. -- 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-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: Setting Up A Login Page To Use SSL
Max - With regards to point 1 I did consider it but it isn't feasible to use SSL for the entire website when large amounts of data is being sent to/from the server. Most of the data being received from the server is in JSON format, which although it is less verbose than XML it does include other pieces of data that hasn't been requested from the website (client). All of the received data comes from a DB as row(s). If a row contains a foreign key then the referred row (by the key) is automatically included instead of the key in a JSON file. This is automatically done by the server, no changes were made to do this. You can imagine just how much data is included if there is more than one foreign key, and this automatically scales up recursively if the included row also contains a foreign key. 1. Have you considered using TLS/SSL for your complete application? Without that a MITM would still be able to sniff the session cookie and act on behalf of the user, sniff users' data, modify data on the way between server and client and so on. 2. If you really really want to use TLS only for login purposes I recommend you redirect users to a simple login page using https and after logging in redirecting them back to the http version fo your app. HTH Max -- 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-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: Setting Up A Login Page To Use SSL
When using CORS with GWT how will I know if an HTTP request is getting through? In the client the RequestBuilder class is being used to send an HTTP POST with the Content-Type header set to text/plain. With the testing of the client it doesn't appear as though anything is occurring after the request is sent. Normally Firefox will display something in the status bar when an HTTP request is being made. On May 23, 5:35 pm, Andi andi.ba...@googlemail.com wrote: you can use cors (cross origin resource sharing). i think its cool, but with that you will have a reduced browsersupport. andi (vom fon) On 23.05.2011, at 05:52, Nick Apperley napper...@gmail.com wrote: -- 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-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: Setting Up A Login Page To Use SSL
It appears as though a request is getting through to the server. Why does RequestBuilder only accept a single String for data with an HTTP request? There are 2 defined REST web services on the server that take one or more parameters (data). How do I send an HTTP POST that contains one or more parameters (data) with GWT? On May 24, 1:08 pm, Nick Apperley napper...@gmail.com wrote: When using CORS with GWT how will I know if an HTTP request is getting through? In the client the RequestBuilder class is being used to send an HTTP POST with the Content-Type header set to text/plain. With the testing of the client it doesn't appear as though anything is occurring after the request is sent. Normally Firefox will display something in the status bar when an HTTP request is being made. On May 23, 5:35 pm, Andi andi.ba...@googlemail.com wrote: -- 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-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.
Setting Up A Login Page To Use SSL
How do I setup a login page to use SSL for the GWT client? I have been looking around the web for a simple way to do this, but surprisingly there is no guide available which contains some example code for doing it. Currently I am trying to figure out how to get the client app to communicate with the Glassfish (ver 3.1) server via REST over SSL for logins/logouts only. With the debilitating SOP establishing communication between the client and server has proven difficult enough to achieve via HTTP (REST) with JSONP since only GETs can be done. Does the entire website (client) have to use HTTPs if it is on the same server where the REST web services reside? What steps need to be done on the server side with Glassfish to enable SSL support that works with the client? -- 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-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: Empty Response From HTTP Request
All web services were returning json but not in a way that is treated as jsonp for the GWT client. Once that was fixed no more timeouts occurred for future requests. However there is now a bizarre issue where the ArrayList that was populated in the defined onSuccess method (for the AsyncCallback object) is now empty outside of the method definition. How can that happen when no items have been removed from the ArrayList? The ArrayList was defined outside of the object. On May 13, 5:34 pm, A. Stevko andy.ste...@gmail.com wrote: Can you at least see the size of the response like in an apache log file? Try using FireBug's Net Panel to see the request/response size/duration. -- 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-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: Empty Response From HTTP Request
As it turns out AsyncCallback doesn't have a way to inform that it is finished. Therefore anything that needs the proper results from the request would need to be done in the AsyncCallback's onSuccess method. On May 13, 6:12 pm, Nick Apperley napper...@gmail.com wrote: All web services were returning json but not in a way that is treated as jsonp for the GWT client. Once that was fixed no more timeouts occurred for future requests. However there is now a bizarre issue where the ArrayList that was populated in the defined onSuccess method (for the AsyncCallback object) is now empty outside of the method definition. How can that happen when no items have been removed from the ArrayList? The ArrayList was defined outside of the object. -- 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-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: Empty Response From HTTP Request
Every time a request is made with RequestBuilder an empty response is returned from the server. If the request is made using just the web browser in an empty tab a non empty response is returned from the server that is displayed directly (in Firefox). With the latter the expected response is returned from the server. After doing some further investigation on the issue it seems as though the empty response could be caused by GWT's Same Origin Policy. The web services are running on a different server from the GWT client. What was suggested was to use JsonpRequestBuilder instead of RequestBuilder to bypass the SOP problem. However that can only be done if one can change the REST web services to return Json instead of XML. I have undertaken the suggestion but now have an entirely new problem to content with. Timeouts are occurring every time a request is made using JsonpRequestBuilder. I have checked to see that the URL is correct, and have extended the timeout duration but still end up with the same problem. What could cause a timeout to occur with doing a request with JsonpRequestBuilder? A. Stevko wrote: Hi Nick, Are you saying that the server response is empty or that RequestBuilder does not recognize the response? If its the former, the server is not recognizing something in the request like the browser code headers. If its the latter, then I would compare the content-type and formatting of the response with a benchmark response from the eclipse dev tool. Either way, you'll need to get below just looking at the browser display to understand diagnose the communication protocols. I suggest using a logging proxy server on your test bench to track what is coming and going. MS Fiddler works well on Windows. ---Stevko -- 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-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: Empty Response From HTTP Request
What is really weird is that the timeouts are occurring with making a request via JsonRequestBuilder yet the Glassfish server has received the request successfully. I have been digging through the Glassfish server logs and found an identical set of entries for 2 requests that were made (one from GWT client, the other from the web browser). What isn't recorded in the logs is if the server has sent back a response, and its content if it was sent. Right now I do not know what is happening with the server responses. Presumably a response is being sent back to the GWT client. At least a response has been sent back for the request made by the web browser. On May 13, 10:15 am, Nick Apperley napper...@gmail.com wrote: I have undertaken the suggestion but now have an entirely new problem to content with. Timeouts are occurring every time a request is made using JsonpRequestBuilder. I have checked to see that the URL is correct, and have extended the timeout duration but still end up with the same problem. What could cause a timeout to occur with doing a request with JsonpRequestBuilder? -- 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-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.
Empty Response From HTTP Request
Using RequestBuilder I can successfully make a request to the Glassfish 3.1 server I have setup. The server delivers REST web services that involve HTTP GET and POST. Currently I am testing to see if I can establish communication between the server and the GWT client. What isn't working is getting the correct response for the particular web service used (a HTTP GET). In Firefox with the same web service used it receives the correct response which is an XML file. This confirms that the web service is working properly. What are the possible causes for an empty response from a HTTP request with GWT? -- 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-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: UI Binder File Not Loaded During Runtime
As it turns out a line was missing in the LoginPage's constructor for properly initializing itself which is required for UIBinder. This would explain why an instance of LoginPage couldn't be added to RootLayoutPanel. initWidget(uiBinder.createAndBindUi(this)); On Feb 16, 10:30 am, Nick Apperley napper...@gmail.com wrote: Something is not being initialized properly (most likely the Composite). Shouldn't the server take care of this? On Feb 16, 10:23 am, Nick Apperley napper...@gmail.com wrote: Based on the exception the problem occurs when the login page (a Composite) is being added to the RootLayoutPanel. -- 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-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: UI Binder File Not Loaded During Runtime
Interestingly enough if I adjust the code to only attach a Label to RootLayoutPanel in the onModuleLoad method no compilation is done, and nothing is displayed on the web page. This is weird since a minor change has been made to the code, even if nothing was displayed Firefox should freeze to indicate that compilation is currently being done. No error messages are being displayed in Eclipse's Console window, absolutely nothing to go by. On Feb 15, 10:51 am, Jeff Larsen larse...@gmail.com wrote: Pop open firebug and start drilling down into the DOM and see if you can find your code in there. I.e. any of your labels, widgets, panels. If they aren't there, then maybe an error is being caught somewhere and not thrown, if they are there but not visible, start mucking around with CSS properties to see if you've attached stuff correctly. Note, if you're using layout panels, you're best case scenario is to use layoutpanels from rootpanel all the way through to your top level panels. doing something like FlowPanel panel = new FlowPanel(); DockLayoutPanel dockPanel = new DockLayoutPanel(); //do stuff with docklayoutpanel RootLayoutPanel.get().add(panel); this will cause nothing to be displayed. If it is done outside of the onModuleLoad method of an EntryPoint. -- 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-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: UI Binder File Not Loaded During Runtime
Not in offline mode. Anyway I have recreated the project as a new Web Application (the Google one) project in Eclipse. Compilation works normally but now I have an exception appearing in development mode, which didn't occur previously with the old project type (GWT Java). --- 10:11:55.193 [ERROR] [autohome_automator] Unable to load module entry point class com.darc.autohome.automatortool.client.AutohomeAutomator (see associated exception for details) java.lang.AssertionError: This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement() at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java: 528) at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:94) at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97) at com.darc.autohome.automatortool.client.Controller.showLoginPage(Controller.java: 28) at com.darc.autohome.automatortool.client.AutohomeAutomator.onModuleLoad(AutohomeAutomator.java: 17) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:619) --- -- 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-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: UI Binder File Not Loaded During Runtime
Based on the exception the problem occurs when the login page (a Composite) is being added to the RootLayoutPanel. On Feb 16, 10:17 am, Nick Apperley napper...@gmail.com wrote: Not in offline mode. Anyway I have recreated the project as a new Web Application (the Google one) project in Eclipse. Compilation works normally but now I have an exception appearing in development mode, which didn't occur previously with the old project type (GWT Java). --- 10:11:55.193 [ERROR] [autohome_automator] Unable to load module entry point class com.darc.autohome.automatortool.client.AutohomeAutomator (see associated exception for details) java.lang.AssertionError: This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement() at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java: 528) at com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:94) at com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:97) at com.darc.autohome.automatortool.client.Controller.showLoginPage(Controller.java: 28) at com.darc.autohome.automatortool.client.AutohomeAutomator.onModuleLoad(AutohomeAutomator.java: 17) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Thread.java:619) --- -- 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-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: UI Binder File Not Loaded During Runtime
Something is not being initialized properly (most likely the Composite). Shouldn't the server take care of this? On Feb 16, 10:23 am, Nick Apperley napper...@gmail.com wrote: Based on the exception the problem occurs when the login page (a Composite) is being added to the RootLayoutPanel. -- 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-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.
UI Binder File Not Loaded During Runtime
Whenever I run the application nothing is displayed on the main page (using the development server). The only thing that is displayed is the page's title. Everything has been checked including adding a widget to the Root Panel when the module is loaded. Is there anything else that is worth checking? -- 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-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: UI Binder File Not Loaded During Runtime
Doc type is set to standards mode and I have switched from RootPanel to RootLayoutPanel, but it has not changed anything with displaying the main page. There doesn't appear to be anything in the DOM related to the application. What should I specifically look for with GWT in the DOM? On Feb 15, 10:15 am, Jeff Larsen larse...@gmail.com wrote: Are you using layout panels? If so, have you set the doctype to standards mode? Also, if you are using layout panels, you need to attach them to RootLayoutPanel, not RootPanel. Another thing to check is to see if the widgets are attached to the DOM with something like firebug. -- 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-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: UI Binder File Not Loaded During Runtime
After looking at a similar application that does something very similar (in code) it displays the main page just fine. In the corresponding DOM the are 3 defined GWT variables (__gwt_SessionID, __gwt_scriptsLoaded, __gwt_stylesLoaded). With the problematic application it doesn't have the defined GWT variables, and it does not compile (no compile error messages appear in Eclipse's Console window). Hence Firefox doesn't freeze when the application is loaded the first time. On Feb 15, 10:51 am, Jeff Larsen larse...@gmail.com wrote: Pop open firebug and start drilling down into the DOM and see if you can find your code in there. I.e. any of your labels, widgets, panels. If they aren't there, then maybe an error is being caught somewhere and not thrown, if they are there but not visible, start mucking around with CSS properties to see if you've attached stuff correctly. Note, if you're using layout panels, you're best case scenario is to use layoutpanels from rootpanel all the way through to your top level panels. doing something like FlowPanel panel = new FlowPanel(); DockLayoutPanel dockPanel = new DockLayoutPanel(); //do stuff with docklayoutpanel RootLayoutPanel.get().add(panel); this will cause nothing to be displayed. For more information,http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html -- 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-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.
CSS Styling With GWT
I am interested in finding out how people do CSS styling with GWT. After making an attempt to go though the Client Bundle route CSS is not being applied to all the UI Binder templates. Google have deprecated the method of referring to CSS via the link tag in a HTML page. Previously I used this method for CSS styling which works, but decided to go with the recommended way (current practice) to do CSS styling in GWT. What is puzzling with UI Binder is that all the GWT widgets don't have a natural mapping to CSS with properties like class and id. In other words one cannot style the widgets without adding a style via a method call. Surely there is a more straightforward way to do this. The id property does exist but conflicts with the ui:field property which isn't ideal when you need to customize a widget in a Java class. It seems as though id is the same as ui:field. All documentation on Client Bundle is not entirely clear on how it maps to classes and ids in CSS. -- 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-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.
Displaying A Single Entry Point
Whenever I run the application the contents of the two entry points are displayed on the same web page even though only one entry point is being displayed. Attempted to fix the problem by removing the old entry point (source file), and adjust the xml file to point to the new entry point but still end up with contents from both entry points being displayed. Why is this occurring? I have even restarted Eclipse (ver 3.6) just in case there was a compilation problem but to no avail. Currently using GWT Designer (ver 8.1.1) with the Google Plugin (ver 1.4.2). -- 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-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.