Menu Item and MVP
Just sharing some thoughts Would the MenuItem class need to implement HasClickHandler so that when a MenuItem is clicked, the action can be handled in the presenter. At this time, the MenuItem needs an object that implements the Command interface, so the view seems to know about the presenter. I would like to know what others think about this. - mic. -- 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.
Extending widget built by UIBinder
I have a class UIPopup which is coded with UIBinder. public class UIPopup extends DecoratedPopupPanel { private static PopupUiBinder uiBinder = GWT.create(PopupUiBinder.class); interface PopupUiBinder extends UiBinderWidget, UIPopup{} @UiFactory public UIPopup getThis(){ return this; } . . } Then I extended UIPopup and called the class PopupWin. public class PopupWin extends UIPopup { public PopupWin(MaineWin maine){ this.maine = maine; } final public MaineWin maine; } However, GWT compilation complained of errors: PopupWin has no default (zero args) constructor. To fix this, you can define a @UiFactory method on the UiBinder's owner, or annotate a constructor of PopupFrame with @UiConstructor. There are two possibilities to my getting the error: 1. There is a mistake in my code. 2. Any class extended from UIBinder must provide a zero arg constructor. 3. There is an undocumented UIBinder directive/annotation that can be used to instruct that UIBinder features should not be passed on to subclasses. I believe the case is due to possibility #2. If so, this is bad design on part of GWT architects. Because a programmer using my widget library should be blind to whether is was built using UIBinder or plain old java source coding. There also are valid reasons when I deliberately do not want the user of the library to have access to a zero arg constructor. Either way it is wrong and bad practice to have the user of my library to expect to be constrained by UIBinder. I would like to know if the error is due to case #1, #2 or #3. If case #2, I request such bad design policy be corrected. If case #3, does the GWT team need my help in writing the documentation. I am willing to donate my time because it is bad if GWT (and other Google products) features seem to follow the early days of Microsoft's practice of undocumented features, and you have to ask for them in forums or insiders. -- 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: Entry Points -- can you replace them in module.xml?
you have to set default value for supported_browser property. set-property name=supported_browser value=true / -p- On 30. Mar., 21:21 h., Skyfort skyf...@gmail.com wrote: Hey all, I am trying to do something like this: define-property name=supported_browser values=true,false / replace-with class=com.test.client.UnsupportedBrowserEntryPoint when-type-is class=com.test.client.EntryPoint/ when-property-is name=supported_browser value=false/ /replace-with entry-point class='com.test.client.EntryPoint' / but it gives an ugly error. Is this even a possible thing to do? Here is the error -- thanks! [ERROR] Unable to load module entry point class com.test.client.EntryPoint (see associated exception for details) java.lang.NullPointerException: null at java.util.TreeMap.getEntry(Unknown Source) at java.util.TreeMap.containsKey(Unknown Source) at java.util.TreeSet.contains(Unknown Source) at com.google.gwt.dev.cfg.BindingProperty.isAllowedValue(BindingProperty.java: 63) at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.computePropertyValue(ModuleSpacePropertyOracle.java: 120) at com.google.gwt.dev.shell.ModuleSpacePropertyOracle.getPropertyValue(ModuleSpacePropertyOracle.java: 65) at com.google.gwt.dev.cfg.ConditionWhenPropertyIs.doEval(ConditionWhenPropertyIs.java: 48) at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36) at com.google.gwt.dev.cfg.ConditionAll.doEval(ConditionAll.java:37) at com.google.gwt.dev.cfg.Condition.isTrue(Condition.java:36) at com.google.gwt.dev.cfg.Rule.isApplicable(Rule.java:35) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.tryRebind(StandardRebindOracle.java:103) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:62) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 172) at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java: 114) at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:474) at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java: 365) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318) at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java: 343) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access $300(BrowserWidgetIE6.java:37) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java: 77) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java: 161) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java: 294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java: 194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java: 117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java: 235) at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java: 558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) -- 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: New GWT widget resource, of sorts: vaadin.com/directory
Hi, this is the demo behavior or vaadin behavior which every widget will need to retrieve some data from server? It depends, as is often the case... Vaadin is server-driven, so most components communicate with the server _at some point_. But: - There is the concept of immediateness: e.g. if you have a bunch of non-immediate textfields, nothing will be sent until you press the save button (that would obviously be immediate). Almost all of the demos are immediate and provide some extra feedback, for the sake of the demo, so it will almost always send some extra stuff back and forth. Otherwise, if the state was just pushed to the server but nothing changed, only a short acknowledgement message will be returned. - You _can_ make customized client-side composites and components that communicate with each other but not with the server - this is done in plain GWT. But the main benefit with Vaadin is the server integration, so usually you would only do this if you have some very specific needs. I hope this cleared things up a little. I would recommend trying it out to see what I'm actually talking about; a small example with some buttons and textfields is really easy to make, especially with eclipse and the vaadin plugin. Anyway, questions are always welcome. Best Regards, Marc -- 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: New GWT widget resource, of sorts: vaadin.com/directory
Vaadin is not GWT. Vaadin makes use of GWT as the browser presentation component. There is a lot more within vaadin that is not GWT. Vaadin is a web application framework which presents and integrated perception to the programmer unifying the server and client components. Vaadin is architected with a subset of web application possibilities in mind and it is very good when used within that subset. There are too many other web applications whose architecture cannot fit into vaadin's constraints. Therefore, listing vaadin directory elements as generally useable GWT widgets would be misleading because to use vaadin widgets, you would have to use them in a vaadin application, which in turn locks you from the freedom to control your presentation and how the server communicates with the browser. Once you start with Vaadin, it is very difficult to escape out of the bounds of Vaadin's integrated server-client constraints. To many, this is an advantage, because such programmers want to see a unified picture between server and browser. However, for many who are too aware of the differences between the server and client and wish to control them separately by acquiring control of the communication process between server client, vaadin presents too many obstacles. It is difficult to use vaadin to construct a mashed application set. It is difficult to use vaadin to construct a site mashed from facebook, twitter, youtube, yahoo elements as well as under GAE constraints. It is difficult to access the http request and response objects and under GAE such is a rather painful constraint. Which means, I do not have full control of the presentation layer. Because I have to accept that the presentation layer is due to both client and server components, I have no control over the responsiveness of the presentation elements on the browser. I have been using smart-gwt with vanilla GWT as long as I ensure a clear dichotomy between smart-gwt and vanilla gwt widgets, and even succeeded in extending some smart-gwt widgets to be used within UIBinder. However, I found it really difficult in using other frameworks to work with vaadin and the process of writing wrappers did not work very well for me. -- 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: Incorrect XML escaping of semicolon
This seems to be a long known bug in GWT (reported with high priority in 2007) that somehow never got fixed: http://code.google.com/p/google-web-toolkit/issues/detail?id=1011 On Mar 24, 5:09 pm, Jeff Chimene jchim...@gmail.com wrote: Does this happen in all browsers, or just one? GWT uses the browser to perform the XML document/node manipulation. On Wed, Mar 24, 2010 at 3:34 AM, googelybear googelyb...@gmail.com wrote: Hi, It seems that GWT DOES escape the semicolon character but actually this is a valid XML character and should not be escaped according to http://www.w3.org/TR/REC-xml/#sec-referencesand http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_re... Here's a snippet of how this error can be reproduced: code public static String escapeXml(String xml) { Document document= XMLParser.createDocument(); Text textNode= document.createTextNode(xml); return textNode.toString(); } /code calling this method with ; yields semi;. Semi is not defined as a standard entity and thus produces errors in my backend. Is this really a bug in the GWT XML parser or is my escaping method wrong? thanks for any feedback, Dennis -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: Safari Windows takes 100% on example page
I haven't found an existing issue about this problem, anybody wants to create one ? On Tue, Mar 30, 2010 at 1:20 AM, Brendan Kenny bcke...@gmail.com wrote: Also worth noting that the showcase will cease with the loading if you just open the rich text area under text input on the left. Other projects I have that have the same problem don't have rich text areas or code splitting, though. On Mar 29, 5:47 pm, Brendan Kenny bcke...@gmail.com wrote: hmm, I get the same thing. Some of my own GWT projects do it as well, whether local or remote, but not all of them. this is in safari 4.0.4 on Windows 7. does anyone know the specifics of the logic of the loading... wheel and what would cause it not to cease? -profiling of my projects within safari shows all the execution time (100% on one core) is taking place within program and not user js code -a good way to crash safari (mine at least): have the web inspector open and set to the resources tab, then navigate to one of these forever-loading GWT pages that last point is clearly a problem with safari, but could indicate a root cause. is there safari-specific loading code that works around some *mac-only* safari-specific shenanigans? chrome has no problem with it... On Mar 29, 1:21 pm, Ian Bambury ianbamb...@gmail.com wrote: Yep, does the same for me on 4 - I was on 3.x before because I get fed up with Apple trying to take over my PC every time you load anything - iTunes, Apple Update and so on - Netscape used to do that and look what happened to them. Anyway, I installed 4.something and it does the same for me. [sigh Off to clean all the crap out of the system, then...] Ian http://examples.roughian.com On 29 March 2010 13:33, Francois MASUREL f.masu...@gmail.com wrote: Hi Ian, thanx for your answer. I'm running Safari for Windows v4.0.5 on Windows XP SP3 (I have the same pb at home on Vista). The page loads fine, but the wheel on the right of the address bar keeps running and CPU goes up to 100%. Some javascript seems to be looping indefinitely, I can pause it in the WebInspector. François On Mon, Mar 29, 2010 at 2:18 PM, Ian Bambury ianbamb...@gmail.com wrote: It's OK on my machine What versions are you running? Ian http://examples.roughian.com On 29 March 2010 11:44, mably fm2...@mably.com wrote: Hi everybody, Does anyone know why Safari on Windows takes 100% CPU when displaying this simpe example page : http://gwt.google.com/samples/Showcase/Showcase.html I've the same problem on my GWT 2.0 application, it's quite annoying for my Safari users. Is Safari on Windows not fully compatible with GWT ? Thanx for your help. François Bordeaux, FRANCE -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 google-web-tool...@googlegroups.com.
Re: Dynamic Module Loading
Hi, I don't know if I'll answer your question but we working on a main GWT- module with pluggable sub-modules. Each sub-modules is an ui- independant part of the whole application. To avoid interferences, each module loads into its own iframe. I wrote a messaging system that allow each module to communicate with each other (JSON serialization, auto-discovery of other modules...). Olivier On 31 mar, 03:10, lineman78 linema...@gmail.com wrote: I know this is a common request of people trying to make pluggable applications. It seems that every time someone comes up with a solution to this problem the GWT team changes the way the core linkers work and break the solution. I was wondering if anyone knows a way to dynamically load a module either with a new linker, or a different method than the traditional appending a new script element to the end of the body. I try to append a script element to the end of the body and it completely blows the document away and freezes the page in a loading mode. I found an email exchange between members of the GWT contributors group in December where they discuss new methods for the default linkers using dynamic iframes. I have been exploring this capability since 1.5 and every time I revisit it the method(hack job) I used the last time will not work. I would really like a more consistent method. Every forum I have seen where someone asks this someone inevitably asks why, so let me head off this question by explaining. I have run into this in a few different situations, one when trying to integrate GWT portlets into Liferay(Java portlet). The second situation is in trying to create a dynamic binding of sorts. I have been trying to figure out a way to create a GWT portal where you could install modules and they could be added and removed dynamically without having to recompile the core, creating something similar to iGoogle or Liferay in a GWT/J2EE implementation. -- 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: New GWT widget resource, of sorts: vaadin.com/directory
HI, On Mar 31, 10:15 am, Blessed Geek blessedg...@gmail.com wrote: [...] Therefore, listing vaadin directory elements as generally useable GWT widgets would be misleading because to use vaadin widgets, you would have to use them in a vaadin application As I stated previously, the client side of the component (which is the GWT part), is for many add-ons specifically made to be usable in plain GWT without Vaadin (and even if it's not, it's still GWT and can be usable, although it depends on the component how hard this is). No one is trying to 'list' all the stuff in directory as general GWT components, though. On the other hand, with only a few exceptions so far, the _core_ components of Vaadin are not of any use in a plain GWT project. Perhaps this is what you were thinking about? (especially considering the Directory was opened only yesterday) [...] It is difficult to use vaadin to construct a mashed application set. It is difficult to use vaadin to construct a site mashed from facebook, twitter, youtube, yahoo elements as well as under GAE constraints. I don't actually find these particularly difficult, and the Directory will make this sort of thing even easier (ready-made components for specific tasks), but you should certainly make that call yourself - whether or not tool X or tool Y is better suited for you and your task at hand. I would use Vaadin for some project, for others plain GWT would be my choice, and for yet other tasks, I might choose jQuery. This recent designbygravity blog post presents some views on where Vaadin excels, it might shed some light on what Vaadin is all about: http://designbygravity.wordpress.com/2010/03/21/for-the-love-of-vaadin-rias-done-right/ I'll also point out something that is quite often misunderstood: Vaadin is not competing with GWT, and is not built on top of - instead Vaadin is using GWT, embracing it, and loving it. Vaadin has a different target, providing a server-driven programming model with a tight client/server integration. Those who have not done so already, might want to try both (actually, don't limit yourself to these two), so that you know which tool to apply to which problem. Best Regards, Marc -- 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: Extending widget built by UIBinder
It appears more likely that case#1 is the possibility. I had a parameter reference in UIPopup,ui.xml which I intended to define in UIPopup.java. Unfortunately, the same variable has been defined in the subclass and UIBinder intelligently assumed I wanted to use the variable in the subclass. I renamed the variables and the problems was solved. -- 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: RequestBuilder and compressed xml file
You don't have to set the Accept-Encoding header yourself. The browser will automatically be set the header if it understands gzip. Your client code doesn't have to change at all to handle gzip. On the server side, you do the following - 1. Check if the browser understands gzip 2. If yes, actually compress the response and set the appropriate header to indicate its a compressed stream 3. If no, send uncompressed header See GWTs Server code that does this logic - 1. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/server/rpc/RemoteServiceServlet.java?spec=svn5731r=5731#306 2. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/server/rpc/RPCServletUtils.java?r=1538#178 --Sri On 31 March 2010 06:50, bradrover brk...@gmail.com wrote: Well forget that error message... I'm just trying to figure out now why my RequestBuilder Accept-Enc0ding header is not being used. I add this code: requestBuilder.setHeader(Accept-Encoding, gzip, deflate); and I get this result in chrome for request headers: Referer:http://localhost:8080/SdssThinClient/sdssthinclient/ C72C3F6B8BCFC032CD4680AC42BFDF51.cache.html User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/ 533.3 (KHTML, like Gecko) Chrome/5.0.360.4 Safari/533.3 seems like this is pretty straightforward, so i don't get it On Mar 30, 8:18 pm, bradrover brk...@gmail.com wrote: I'm probably doing this wrong,but I compressed the xml file to a zip, when I request the zip file using RequestBiulder in hosted mode running Chrome it crashes the plug-in. com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur n(BrowserChannel.java: 1730) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java : 1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 222) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java: 92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java: 123) at java.io.DataOutputStream.flush(DataOutputStream.java:106) at com.google.gwt.dev.shell.BrowserChannel $ReturnMessage.send(BrowserChannel.java:1341) at com.google.gwt.dev.shell.BrowserChannel $ReturnMessage.send(BrowserChannel.java:1346) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur n(BrowserChannel.java: 1716) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at
GWT Theme and dynamic stylesheet inclusion
Hi, i am trying to create a theme based on the blueprint css framework. I have several css to include : link rel=stylesheet href=css/blueprint/screen.css type=text/css media=screen, projection link rel=stylesheet href=css/blueprint/print.css type=text/css media=print !--[if lt IE 8]link rel=stylesheet href=css/blueprint/ie.css type=text/css media=screen, projection![endif]-- link rel=stylesheet href=css/blueprint/plugins/fancy-type/ screen.css type=text/css media=screen, projection / link rel=stylesheet href=css/blueprint/plugins/buttons/screen.css type=text/css media=screen, projection / link rel=stylesheet href=css/blueprint/plugins/sprites/sprite.css type=text/css media=screen, projection / Note the [if it IE 8] .. Can I do something similar within a module (ie bluprint.gwt.xml) using the stylesheet src=blueprint/ie.css/ tag and some conditional property ? -- 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: New GWT widget resource, of sorts: vaadin.com/directory
Vaadin is very suitable for many scenarios, if not most scenarios. The problem is ... For every web project I have ever built, there are about a few of the pages of any project where I needed to do something different from the normal presentation framework. Whatever the framework is. When I needed to divert out of the vaadin framework I face obstacles due to: 1. I need to reconstruct the vaadin look and feel to give a unified look to my app. 2. My pages outside of the vaadin framework is unable to access variables defined inside the framework unless I place them in memory cache or session attributes. It may be just one or two pages in every web app project, but those one or two pages that I have to create outside the vaadin framework are very crucial features required by the user. Since vaadin does not have an API to let non-vaadin components communicate with the framework, those two pages with crucial features effectively preclude me from using vaadin. For the same reason, then, vaadin does not play nice with non-vaadin components by not providing an avenue to communicate/acquire state changes to non-vaadin components. -- 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: New GWT widget resource, of sorts: vaadin.com/directory
BTW, every time I make a posting on Google groups, a web hosting company harvests my email id by projecting it from my google groups avatar. I urge anyone who is experiencing this to report that web hosting company to http://ftc.gov/complaints. FTC does no't prosecute per complaint but if enough volume of complaints is received, FTC or law enforcement using that database would initiate investigations. -- 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.
GWT and GeoTools Servlet problem
Hi, I've got a servlet which uses the GeoTools library to contact a remote server and parse the XML, it then returns the results to the browser client. I've got a button on the client side which initiates the call to the servlet. When I click this button the first time, I get an ClassCastException. However, when I click it a second time everything works fine! I don't think this is a problem with GeoTools as it works perfectly fine when I do a similar thing locally. My first assumption was that GWT wasn't finding the necessary classes the first time around, but had them ready for the second time. However I've added all the required jars to my WEB-INF/lib folder and I still get the same problem. Something must be happening between the first and second server call to make it work, but I don't know what it could be. Maybe GWT is loading some required class or jar and not telling me about it? I've included my stack trace and servlet code snippet below, although I don't know how much use they'll be... Any help would be appreciated. Thanks, Jon STACK TRACE: Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.ArrayList uk.ac.glam.wps.gwtwps.client.OWSRequestService.wpsGetCapabilities(java.lang.String)' threw an unexpected exception: java.lang.RuntimeException: Parsing failed for ProviderSite: java.lang.RuntimeException: Unable to set property: href for eobject: {http://www.opengis.net/ows/1.1} OnlineResourceType at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 396) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.RuntimeException: Parsing failed for ProviderSite: java.lang.RuntimeException: Unable to set property: href for eobject: {http://www.opengis.net/ows/1.1}OnlineResourceType at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:158) at org.geotools.xml.impl.BindingWalker $BindingExecutionChain.execute(BindingWalker.java:212) at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:178) at org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java: 222) at org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java: 607) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl $FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at
Re: GWT 2.0.3 + Maven2 + Eclipse
Make sure you do a clean install of the google plugin in a clean eclipse. I tried updating the google plugin to version 1.3.2 but after the update, not all of the features in the plugin were enabled for me. I've spend a lot of time trying to get a sample project working without success. After using a clean eclipse with a clean google plugin installation (make sure you use version 1.3.2 of the plugin). The sample app ran without any problem. On 22 mrt, 21:46, Keith Platfoot kplatf...@google.com wrote: Hi Sergio, Just wanted to mention that we've just released the 1.3.1 version of the Google Plugin for Eclipse, which has much better interoperability with GWT+Maven projects. We even have a new FAQ dedicated to this scenario: http://code.google.com/eclipse/docs/faq.html#gwt_with_maven As of 1.3, it is easy to debug your Maven project's GWT code with a regular Web Application launch configuration. If you're using Eclipse for Java EE, you can also get automatic refresh when your source code or static resources (HTML, CSS, etc.) change. Unlike previous versions of the Eclipse plugin, you can now customize your project's configured WAR directory (e.g. set it to 'src/main/webapp') and specify that it should be used as input-only (per Maven convention). Keith On Mon, Mar 15, 2010 at 4:30 PM, Sergio s3rgio...@gmail.com wrote: Hello everybody, I'm beginning with GWT development and I have a problem. I've already configured Eclipse 3.5 with gwt plugin and m2eclipse plugin. I create a new maven project with gwt-maven-plugin archetype, but I'm not able to communicate client side with server side. I've read the same problem is happened other people but no solution. I'm trying to debug the sample application with gwt:debug goal and then Run remote java application in Debug configuration. I don't know if I am doing anything wrong. Any idea? Thank you and sorry for my English. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: GWT and GeoTools Servlet problem
I've just thought - could it be that Jetty is not loading up properly in time for my request? Is there any way to get it to load before the first request is made? Cheers, Jon On Mar 31, 11:16 am, Jon Britton mankillseveryth...@googlemail.com wrote: Hi, I've got a servlet which uses the GeoTools library to contact a remote server and parse the XML, it then returns the results to the browser client. I've got a button on the client side which initiates the call to the servlet. When I click this button the first time, I get an ClassCastException. However, when I click it a second time everything works fine! I don't think this is a problem with GeoTools as it works perfectly fine when I do a similar thing locally. My first assumption was that GWT wasn't finding the necessary classes the first time around, but had them ready for the second time. However I've added all the required jars to my WEB-INF/lib folder and I still get the same problem. Something must be happening between the first and second server call to make it work, but I don't know what it could be. Maybe GWT is loading some required class or jar and not telling me about it? I've included my stack trace and servlet code snippet below, although I don't know how much use they'll be... Any help would be appreciated. Thanks, Jon STACK TRACE: Starting Jetty on port [WARN] Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.ArrayList uk.ac.glam.wps.gwtwps.client.OWSRequestService.wpsGetCapabilities(java.lang .String)' threw an unexpected exception: java.lang.RuntimeException: Parsing failed for ProviderSite: java.lang.RuntimeException: Unable to set property: href for eobject: {http://www.opengis.net/ows/1.1} OnlineResourceType at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java: 49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 396) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.RuntimeException: Parsing failed for ProviderSite: java.lang.RuntimeException: Unable to set property: href for eobject: {http://www.opengis.net/ows/1.1}OnlineResourceType at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:158) at org.geotools.xml.impl.BindingWalker $BindingExecutionChain.execute(BindingWalker.java:212) at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:178) at org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java : 222) at org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java: 607) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl $FragmentContentDispatcher.dispatch(Unknown
Re: New GWT widget resource, of sorts: vaadin.com/directory
Yeah, I got some sort of phishing email claiming that my message did not reach Google Groups, asking me to fill out some form. Nice try, I bet someone will fall for it. Does anyone know if Google knows about this, or should it be reported to Google (where)? On Mar 31, 12:30 pm, Blessed Geek blessedg...@gmail.com wrote: BTW, every time I make a posting on Google groups, a web hosting company harvests my email id by projecting it from my google groups avatar. I urge anyone who is experiencing this to report that web hosting company tohttp://ftc.gov/complaints. FTC does no't prosecute per complaint but if enough volume of complaints is received, FTC or law enforcement using that database would initiate investigations. -- 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: Session management in GWT
Hie Olivier Can you please guide me on where to look for the example of doing via method 1 and method 2? I will evaluate the one satisfying my need and will proceed. Please advise Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Tue, Mar 30, 2010 at 2:11 PM, olivier nouguier olivier.nougu...@gmail.com wrote: hi, If you've change the window location, you can: - give some info if in the url, limited and ugly. - provide a (remote) service to expose user details to the new module (I suppose AdminDashboard.jsp is hosting another GWT module). - for the JSP you can access to the servlet api to retrieve users details depending of your auth framework. On Tue, Mar 30, 2010 at 5:53 AM, Vik vik@gmail.com wrote: hie yes gwt (ui)/ can u please point me to a bit more details on gwt-rpc/json mechanism on doing so? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Mon, Mar 29, 2010 at 2:39 PM, olivier nouguier olivier.nougu...@gmail.com wrote: Hi, Do you mean I GWT (ui) code when talk in admindashboard.jsp. If true: provide a service (GWT-RPC/json) to retrieve information from. else: not a GWT question. On Mon, Mar 29, 2010 at 6:20 AM, Vik vik@gmail.com wrote: Hie I have a index.html page with a login module (build in gwt) embedded into it. Once the user provide authentication details and hit login button I am redirecting the user to a new page named AdminDashboard.jsp Now, I will be creating and embedding a dashboard using GWT components on this page. The question I have is how do i pass the user details from the login module to admindashboard.jsp? Please note that I am using Window.Location.replace(/ui/page/AdminDashboard.jsp); to navigate to dashboard page. Further, what is used in GWT to store the data in a session and then validating it before user actions? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: Progress indicator
hie yes thats what i want,,, not really a progress but just rotating gif. Do you have any example to do so? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Sun, Mar 28, 2010 at 10:37 PM, Thomas Broyer t.bro...@gmail.com wrote: On Mar 28, 6:49 pm, Vik vik@gmail.com wrote: Hie In my gwt app when i hit say submit button in a form it takes a while to get the response from server. Currently it seems nothing is happened on clicking the button. So how to show some kind of indicator showing its in progress? You can show something (a label, a popup, an animated GIF image, etc.) in onSubmit and hide it in onSubmitComplete; but you won't be able to show progress. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: Menu Item and MVP
I created an EventFiringCommand class for instances like this. Basically, you put the event bus and the event to fire (or the code to generate the event) in the command. The Command should be a presenter- layer object, since it has no need to know about the view (and should be easy to unit test). Theoretically, you could just make inner classes in a Presenter for each Command you write. It all depends on how you want to organize your code and the needs of your specific project. On Mar 31, 12:07 am, mic mina...@gmail.com wrote: Just sharing some thoughts Would the MenuItem class need to implement HasClickHandler so that when a MenuItem is clicked, the action can be handled in the presenter. At this time, the MenuItem needs an object that implements the Command interface, so the view seems to know about the presenter. I would like to know what others think about this. - mic. -- 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.
How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?
Hi, this question might seem stupid but how can one implement hashCode() and equals() for a simple 2d point class as follows: public class Point { private double fX; private double fY; public double getX() { return fX; } public void setX(double x) { this.fX= x; } public double getY() { return fY; } public void setY(double y) { this.fY= y; } } The generated equals() and hashCode() methods from Eclipse do NOT work with GWT as method Double.doubleToLongBits() is missing: @Override public int hashCode() { final int prime= 31; int result= 1; long temp; temp= Double.doubleToLongBits(fX); result= prime * result + (int) (temp ^ (temp 32)); temp= Double.doubleToLongBits(fY); result= prime * result + (int) (temp ^ (temp 32)); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Point)) return false; Point other= (Point) obj; if (Double.doubleToLongBits(fX) != Double.doubleToLongBits(other.fX)) return false; if (Double.doubleToLongBits(fY) != Double.doubleToLongBits(other.fY)) return false; return true; } Does anyone have an idea how to implement this? thanks a bunch, Dennis -- 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: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?
I just found a post in the gwt contributors group but I cannot find it anywhere in gwt, any ideas? http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/a5193c6a82eddb5e/b400204dddcc8c64 On Mar 31, 2:20 pm, googelybear googelyb...@gmail.com wrote: Hi, this question might seem stupid but how can one implement hashCode() and equals() for a simple 2d point class as follows: public class Point { private double fX; private double fY; public double getX() { return fX; } public void setX(double x) { this.fX= x; } public double getY() { return fY; } public void setY(double y) { this.fY= y; } } The generated equals() and hashCode() methods from Eclipse do NOT work with GWT as method Double.doubleToLongBits() is missing: @Override public int hashCode() { final int prime= 31; int result= 1; long temp; temp= Double.doubleToLongBits(fX); result= prime * result + (int) (temp ^ (temp 32)); temp= Double.doubleToLongBits(fY); result= prime * result + (int) (temp ^ (temp 32)); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Point)) return false; Point other= (Point) obj; if (Double.doubleToLongBits(fX) != Double.doubleToLongBits(other.fX)) return false; if (Double.doubleToLongBits(fY) != Double.doubleToLongBits(other.fY)) return false; return true; } Does anyone have an idea how to implement this? thanks a bunch, Dennis -- 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: GWT 2.0.3 + Maven2 + Eclipse
Here's a GWT 2.0 maven-ized project that uses UIBinder, MVP, etc. that I put together. http://github.com/davisford/gwt-demo On Wed, Mar 17, 2010 at 11:06 AM, Bert roexb...@gmail.com wrote: I'm also very interested in setting up a Project like this. Any sample code from anyone? On Mar 17, 1:44 am, zggame zgg...@gmail.com wrote: I think the latest gwt-maven-plugin is gwt 1.6.4. Not 2.0.3 On Mar 15, 3:30 pm, Sergio s3rgio...@gmail.com wrote: Hello everybody, I'm beginning with GWT development and I have a problem. I've already configured Eclipse 3.5 with gwt plugin and m2eclipse plugin. I create a new maven project with gwt-maven-plugin archetype, but I'm not able to communicate client side with server side. I've read the same problem is happened other people but no solution. I'm trying to debug the sample application with gwt:debug goal and then Run remote java application in Debug configuration. I don't know if I am doing anything wrong. Any idea? Thank you and sorry for my English. -- 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. -- Zeno Consulting, Inc. home: http://www.zenoconsulting.biz blog: http://zenoconsulting.wikidot.com p: 248.894.4922 f: 313.884.2977 -- 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: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?
It seems that this got reverted at some point: http://code.google.com/p/google-web-toolkit/source/diff?spec=svn2434r=2434format=sidepath=/trunk/user/super/com/google/gwt/emul/java/lang/Double.java does anyone know why? On Mar 31, 2:35 pm, googelybear googelyb...@gmail.com wrote: I just found a post in the gwt contributors group but I cannot find it anywhere in gwt, any ideas?http://groups.google.com/group/google-web-toolkit-contributors/browse... On Mar 31, 2:20 pm, googelybear googelyb...@gmail.com wrote: Hi, this question might seem stupid but how can one implement hashCode() and equals() for a simple 2d point class as follows: public class Point { private double fX; private double fY; public double getX() { return fX; } public void setX(double x) { this.fX= x; } public double getY() { return fY; } public void setY(double y) { this.fY= y; } } The generated equals() and hashCode() methods from Eclipse do NOT work with GWT as method Double.doubleToLongBits() is missing: @Override public int hashCode() { final int prime= 31; int result= 1; long temp; temp= Double.doubleToLongBits(fX); result= prime * result + (int) (temp ^ (temp 32)); temp= Double.doubleToLongBits(fY); result= prime * result + (int) (temp ^ (temp 32)); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Point)) return false; Point other= (Point) obj; if (Double.doubleToLongBits(fX) != Double.doubleToLongBits(other.fX)) return false; if (Double.doubleToLongBits(fY) != Double.doubleToLongBits(other.fY)) return false; return true; } Does anyone have an idea how to implement this? thanks a bunch, Dennis -- 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: Progress indicator
Hi Vik, Check the comments posted by Srini Marreddy here: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e315c7532c2ff111/4767d65461deb9fd?lnk=gstq=progress+bar#4767d65461deb9fd I think that is what you are looking for. Regards, Yogesh On Mar 31, 1:30 pm, Vik vik@gmail.com wrote: hie yes thats what i want,,, not really a progress but just rotating gif. Do you have any example to do so? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.com On Sun, Mar 28, 2010 at 10:37 PM, Thomas Broyer t.bro...@gmail.com wrote: On Mar 28, 6:49 pm, Vik vik@gmail.com wrote: Hie In my gwt app when i hit say submit button in a form it takes a while to get the response from server. Currently it seems nothing is happened on clicking the button. So how to show some kind of indicator showing its in progress? You can show something (a label, a popup, an animated GIF image, etc.) in onSubmit and hide it in onSubmitComplete; but you won't be able to show progress. -- 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.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://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 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: RequestBuilder and compressed xml file
Thanks Sri! This is excellent. Brad On Mar 31, 4:35 am, Sripathi Krishnan sripathikrish...@gmail.com wrote: You don't have to set the Accept-Encoding header yourself. The browser will automatically be set the header if it understands gzip. Your client code doesn't have to change at all to handle gzip. On the server side, you do the following - 1. Check if the browser understands gzip 2. If yes, actually compress the response and set the appropriate header to indicate its a compressed stream 3. If no, send uncompressed header See GWTs Server code that does this logic - 1. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/... 2. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/... --Sri On 31 March 2010 06:50, bradrover brk...@gmail.com wrote: Well forget that error message... I'm just trying to figure out now why my RequestBuilder Accept-Enc0ding header is not being used. I add this code: requestBuilder.setHeader(Accept-Encoding, gzip, deflate); and I get this result in chrome for request headers: Referer:http://localhost:8080/SdssThinClient/sdssthinclient/ C72C3F6B8BCFC032CD4680AC42BFDF51.cache.html User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/ 533.3 (KHTML, like Gecko) Chrome/5.0.360.4 Safari/533.3 seems like this is pretty straightforward, so i don't get it On Mar 30, 8:18 pm, bradrover brk...@gmail.com wrote: I'm probably doing this wrong,but I compressed the xml file to a zip, when I request the zip file using RequestBiulder in hosted mode running Chrome it crashes the plug-in. com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur n(BrowserChannel.java: 1730) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java : 1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 222) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java: 92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java: 123) at java.io.DataOutputStream.flush(DataOutputStream.java:106) at com.google.gwt.dev.shell.BrowserChannel $ReturnMessage.send(BrowserChannel.java:1341) at com.google.gwt.dev.shell.BrowserChannel $ReturnMessage.send(BrowserChannel.java:1346) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur n(BrowserChannel.java: 1716) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at
Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?
Found my answer here: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f44e5874eb20b41b/f34caf3a7bf64daa Simply hash the Double.toString() . Anyone has a better idea? On Mar 31, 2:53 pm, googelybear googelyb...@gmail.com wrote: It seems that this got reverted at some point:http://code.google.com/p/google-web-toolkit/source/diff?spec=svn2434;... does anyone know why? On Mar 31, 2:35 pm, googelybear googelyb...@gmail.com wrote: I just found a post in the gwt contributors group but I cannot find it anywhere in gwt, any ideas?http://groups.google.com/group/google-web-toolkit-contributors/browse... On Mar 31, 2:20 pm, googelybear googelyb...@gmail.com wrote: Hi, this question might seem stupid but how can one implement hashCode() and equals() for a simple 2d point class as follows: public class Point { private double fX; private double fY; public double getX() { return fX; } public void setX(double x) { this.fX= x; } public double getY() { return fY; } public void setY(double y) { this.fY= y; } } The generated equals() and hashCode() methods from Eclipse do NOT work with GWT as method Double.doubleToLongBits() is missing: @Override public int hashCode() { final int prime= 31; int result= 1; long temp; temp= Double.doubleToLongBits(fX); result= prime * result + (int) (temp ^ (temp 32)); temp= Double.doubleToLongBits(fY); result= prime * result + (int) (temp ^ (temp 32)); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Point)) return false; Point other= (Point) obj; if (Double.doubleToLongBits(fX) != Double.doubleToLongBits(other.fX)) return false; if (Double.doubleToLongBits(fY) != Double.doubleToLongBits(other.fY)) return false; return true; } Does anyone have an idea how to implement this? thanks a bunch, Dennis -- 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: Menu Item and MVP
On Mar 31, 8:07 am, mic mina...@gmail.com wrote: Just sharing some thoughts Would the MenuItem class need to implement HasClickHandler so that when a MenuItem is clicked, the action can be handled in the presenter. At this time, the MenuItem needs an object that implements the Command interface, so the view seems to know about the presenter. I would like to know what others think about this. I've recently migrated from views with many HasXxxHandlers getters to views with a setListener method that the presenter injects into its view. The listener defines callback methods such as save(), close(), italicize(), bold(), delete(), etc. It makes unit tests waaay easier to write (you don't have to mock each HasXxxHandlers, capturing each added XxxHandler, eventually mocking the XxxEvent, etc.) and in your case would make things easier: the Command is an implementation detail of the view. -- 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: Progress indicator
This site allows you to create loading gif of your choice. http://www.ajaxload.info then you can modify rotation speed in other editor. -- 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: Progress indicator
try this site http://www.ajaxload.info/ it make it in different colors and types. google do not allow me to post it to forum because of the info domain -- 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: Progress indicator
google ajax loading there is nice Ajaxload - Ajax loading gif generator. -- 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: Newbie question : Problem with GWT RPC when running running through GWT + AppEngine tutorial
I think you are sending an object of type not defined in you rpc file, delete you rpc file so that a new one is created. - Abdullah On Wed, Mar 31, 2010 at 1:58 AM, vijay mymail.vi...@gmail.com wrote: hi, I am using GWT 2.0.3 version, I am going through the steps mentioned in GWT tutorial http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html When trying to integrate login service I get following exception. I tried using a normal GWT RPC and it also gave me similar exception. Mar 30, 2010 6:44:49 PM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1269974689208000] javax.servlet.ServletContext log: loginService: ERROR: Failed to parse the policy file '/stockwatcher/748E07BA5F0BCE26285053278C0378CB.gwt.rpc' java.text.ParseException: Expected: className, [true | false] at com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:116) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:117) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:429) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) Mar 30, 2010 6:44:49 PM com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1269974689224000] javax.servlet.ServletContext log: loginService: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Parameter 0 of is of an unknown type 'java.lang.String/2004016611' at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at
Re: Problem using java projects in GWT
Thanks I'm gonna to try it 2010/3/30 lineman78 linema...@gmail.com You cannot use source code from a java project in GWT directly. All GWT code must be in the client path of a module. i.e. sura.ticketcheck.bo.Instancia is not part of a GWT module. There is one workaround I have gotten to work(only once, so no guarantee). 1) Create a file BoModule.gwt.xml in your source folder under the following path: sura/ticketcheck 2) Put the following text into the file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 2.0.3//EN http://google-web-toolkit.googlecode.com/svn/tags/2.0.3/ distro-source/core/src/gwt-module.dtd module inherits name=com.google.gwt.user.User / source path=bo / /module 3) In your src/ticketcheckGWT/xxx.gwt.xml put inherits name=sura.ticketcheck.BoModule/ Essentially what you are doing is tricking the GWT compiler into thinking that sura.ticketcheck has a module who's source is in the folder 'bo'. This should work as long as all files within package sura.ticketcheck.bo don't import outside of that package except standard java objects that are available through the com.google.gwt.user.User module. I have run into this several times and sometimes you just have to rewrite(copy and paste) stuff into a GWT project. On Mar 30, 1:25 pm, Lucas Rios lucasri...@gmail.com wrote: Hi everybody I'm trying to use a Java project in GWT but I have had some problems because I can't compile the GWT project. I have done this: 1.Make a xxx.gwt.xml in the java project. 2. Add a external JAR (java project) in the java build path of the GWT project. In Projects and libraries tabs. 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml) 4. And last compile the GWT project... showing me those errors Compiling module ticketcheckGWT.Ticketcheck_GWT Validating newly compiled units [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/Ticketcheck_GWT.java' [ERROR] Line 488: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheck.java' [ERROR] Line 13: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java' [ERROR] Line 12: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted-core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java' [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is not safe to access in JSNI code For additional info see: file:/D:/Escritorio/eclipse-jee-galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/longJsniRestriction.html Finding entry point classes [ERROR] Unable to find type 'ticketcheckGWT.client.Ticketcheck_GWT' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly If somebody know how I can solve it please help me Thank for all Regards LucasRR -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: Problem using java projects in GWT
Yes, is Eclipse. and .. Thanks I'm gonna to try it 2010/3/30 kozura koz...@gmail.com This using Eclipse? Be sure it's actually in the classpath under the Run Configurations dialog, as the GWT compiler needs to find it there even if Eclipse doesn't. On Mar 30, 1:28 pm, Lucas Rios lucasri...@gmail.com wrote: Hi everybody I'm trying to use a Java project in GWT but I have had some problems because I can't compile the GWT project. I have done this: 1.Make a xxx.gwt.xml in the java project. 2. Add a external JAR (java project) in the java build path of the GWT project. In Projects and libraries tabs. 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml) 4. And last compile the GWT project... showing me those errors Compiling module ticketcheckGWT.Ticketcheck_GWT Validating newly compiled units [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/ src/ticketcheckGWT/client/Ticketcheck_GWT.java' [ERROR] Line 488: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/ src/ticketcheckGWT/client/ServiciosTicketcheck.java' [ERROR] Line 13: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/ src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java' [ERROR] Line 12: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted- core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java' [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is not safe to access in JSNI code For additional info see: file:/D:/Escritorio/eclipse-jee- galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle. 2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/ longJsniRestriction.html Finding entry point classes [ERROR] Unable to find type 'ticketcheckGWT.client.Ticketcheck_GWT' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly If somebody know how I can solve it please help me Thank for all Regards, LucasRR -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: image help
Is it possible to lay a watermark Image on top of the image I already have on my page or do I have to edit each photo in Photoshop or something like that to lay a watermark over it? Thanks! On Mar 29, 10:15 pm, abhiram wuntakal abhir...@gmail.com wrote: Hey I have this not-so-technical work around for u. Apply a Mouse over handler for the image. on a mouse-over, just change the image to some other image (probably a smaller one which says Dude, U cant download this!!!) and again on a Mouse-out bring back the original image. Guess that will solve your problem and people will not be able to download it... But as Sripathi says, it would be better to show a smaller size, low resolution image, as people can always do a ScreenPrint and extract exactly that image alone!! Hope a combination of these two things would solve ur problem. ~ Abhi On Tue, Mar 30, 2010 at 3:02 AM, Sripathi Krishnan sripathikrish...@gmail.com wrote: but if they can just right click it and Save Image As there isn't any point. Disabling right click is no solution. Its trivial to figure out the link of the image and then download it directly. Div overlays also won't help. As long as the user can see it, there is always going to be a way for him to download it. You should - - Only show a smaller size, low resolution image before the user purchases it - Apply a watermark/logo on the free image, so that there isn't any merit in using the image directly. --Sri On 30 March 2010 02:42, Sudeep S sudee...@gmail.com wrote: i am not sure if this is a right approach...how about placing a transparent div over the image. would that work. On Tue, Mar 30, 2010 at 12:22 AM, Chris thechris...@gmail.com wrote: does anyone know if there is a way to disable someone from right clicking on an image and being able to save it? i am trying to make an application where people can purchase images but if they can just right click it and Save Image As there isn't any point. Any suggestions would be great. thanks -- 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.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://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 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: image help
You can use any image manipulation software in batch mode to process all images at one go. Alternatively, if you are serving images via servlet, you can use the java image libraries to add the watermark. If you google around, you should find a lot of ways to add a watermark to multiple images in one go. --Sri On 31 March 2010 20:36, Chris thechris...@gmail.com wrote: Is it possible to lay a watermark Image on top of the image I already have on my page or do I have to edit each photo in Photoshop or something like that to lay a watermark over it? Thanks! On Mar 29, 10:15 pm, abhiram wuntakal abhir...@gmail.com wrote: Hey I have this not-so-technical work around for u. Apply a Mouse over handler for the image. on a mouse-over, just change the image to some other image (probably a smaller one which says Dude, U cant download this!!!) and again on a Mouse-out bring back the original image. Guess that will solve your problem and people will not be able to download it... But as Sripathi says, it would be better to show a smaller size, low resolution image, as people can always do a ScreenPrint and extract exactly that image alone!! Hope a combination of these two things would solve ur problem. ~ Abhi On Tue, Mar 30, 2010 at 3:02 AM, Sripathi Krishnan sripathikrish...@gmail.com wrote: but if they can just right click it and Save Image As there isn't any point. Disabling right click is no solution. Its trivial to figure out the link of the image and then download it directly. Div overlays also won't help. As long as the user can see it, there is always going to be a way for him to download it. You should - - Only show a smaller size, low resolution image before the user purchases it - Apply a watermark/logo on the free image, so that there isn't any merit in using the image directly. --Sri On 30 March 2010 02:42, Sudeep S sudee...@gmail.com wrote: i am not sure if this is a right approach...how about placing a transparent div over the image. would that work. On Tue, Mar 30, 2010 at 12:22 AM, Chris thechris...@gmail.com wrote: does anyone know if there is a way to disable someone from right clicking on an image and being able to save it? i am trying to make an application where people can purchase images but if they can just right click it and Save Image As there isn't any point. Any suggestions would be great. thanks -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://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 google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: Blank screen in IE7 but normal in IE6, IE8, FF
Hi, Thanks for the reply, but I put into my html file the following line, and the screen goes blank in IE6, IE7 and IE8 too. It works in FF. meta http-equiv=X-UA-Compatible content=IE=7 Tankesz On márc. 30, 09:06, Peter Simun si...@seges.sk wrote: Did you tried to switch compatibility mode inIE7? It should help you. -p- On 17. Mar., 12:38 h., tankesz tank...@gmail.com wrote: Hi, I am new in GWT and I have a problem with LayoutPanel. Adding LayoutPanel to the north side of a DockLayoutPanel works correctly. But when I put DeckPanel into the center of the DockLayoutPanel, and into the DeckPanel I put LayoutPanel, thescreengoesblank. It happens only inIE7. In IE6, IE8 and FF it works correctly as in the north side. Could anyone help me, what is the reason of that? Thanks, Tankesz- Idézett szöveg elrejtése - - Idézett szöveg megjelenítése - -- 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: Dynamic Module Loading
Yeah, there is 1 problem I have with your solution and a separate issue your solution doesn't address. The problem I have with your solution is that iFrames can't inherit size. One behavior I like is that you can stack the modules and they will fit tightly against the other and the one below will move if the upper one's height changes, i.e. a disclosure panel. The issue that your issue doesn't seem to resolve is that I would like to dynamically add the modules to the page as they are added and would like the main module to not know anything about them other than the fact that they extend an abstract sub module and the location of the module's nocache.js. On Mar 31, 2:14 am, Olivier Monaco olivier.mon...@free.fr wrote: Hi, I don't know if I'll answer your question but we working on a main GWT- module with pluggable sub-modules. Each sub-modules is an ui- independant part of the whole application. To avoid interferences, each module loads into its own iframe. I wrote a messaging system that allow each module to communicate with each other (JSON serialization, auto-discovery of other modules...). Olivier On 31 mar, 03:10, lineman78 linema...@gmail.com wrote: I know this is a common request of people trying to make pluggable applications. It seems that every time someone comes up with a solution to this problem the GWT team changes the way the core linkers work and break the solution. I was wondering if anyone knows a way to dynamically load a module either with a new linker, or a different method than the traditional appending a new script element to the end of the body. I try to append a script element to the end of the body and it completely blows the document away and freezes the page in a loading mode. I found an email exchange between members of the GWT contributors group in December where they discuss new methods for the default linkers using dynamic iframes. I have been exploring this capability since 1.5 and every time I revisit it the method(hack job) I used the last time will not work. I would really like a more consistent method. Every forum I have seen where someone asks this someone inevitably asks why, so let me head off this question by explaining. I have run into this in a few different situations, one when trying to integrate GWT portlets into Liferay(Java portlet). The second situation is in trying to create a dynamic binding of sorts. I have been trying to figure out a way to create a GWT portal where you could install modules and they could be added and removed dynamically without having to recompile the core, creating something similar to iGoogle or Liferay in a GWT/J2EE implementation. -- 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: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?
On Mar 31, 5:30 pm, kozura koz...@gmail.com wrote: ((Double)fX).hashCode() seems to work fine. It's no more than a return (int) value (i.e. equivalent to (int) fX) which is probably not accurate enough for a Point where you chose to use doubles to store the coordinates... -- 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: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?
Anyone has a better idea? public boolean equals(Object obj) { if (!(obj instanceof Point)) { return false; } Point p = (Point) obj; return fX == p.fY fY == p.fY; } public int hashCode() { return (int) (pX + pY); } -- 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: Eclipse JavaEE tools + GWT Development mode
Cris, your notes were really helpfully. However I would like to know how you manage to debug your application using your Glassfish (tomcat in my case) in order to use breakpoints and those stuff. Thanks you so much -- 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.
Exception in DriverManager.getConnection
Hello, i am using most recent version of GWT. I want to connect via RPC to hibernate- mysql. I encounter the same error messages as the mentioned in thread http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg15320.html I have solved the problem the same way as in the thread (i.e. by unchecking of Project-Properties-Google-Use Google App Engine), but now I am unable to run, debug application in hosted mode. How should it be started? Please help me, i am stuck! Thanks Arne -- 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.
Exception in DriverManager.getConnection
Hello, i am using most recent version of GWT. I want to connect via RPC to hibernate- mysql. I encounter the same error messages as the mentioned in thread http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg15320.html I have solved the problem the same way as in the thread (i.e. by unchecking of Project-Properties-Google-Use Google App Engine), but now I am unable to run, debug application in hosted mode. How should it be started? Please help me, i am stuck! Thanks Arne -- 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.
any idea when the onError method of requestcallback get called in GWTTestCase environment
On Wed, Mar 31, 2010 at 12:56 AM, jayaprasad vishwanathan jpforj...@gmail.com wrote: Hi All, Any idea, I need to test from GWTTestCase whether onError method of RequestCallbackget called or not, On which scenario the onError method get called in testing environment. Thanks JP -- 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.
Is client side Javascript code always visible?
Greetings, Before I start writing Javascript, I am trying to find out if anyone can see and copy it like HTML? Every page with Javascript I have seen so far has a link to the code in the HTML. Thanks -- 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.
GWT/Hibernate/Oracle/Eclipse
Hello, please, can anyone help me? I use GWT as Client and Hibernate as Database Interface and as Database Oracle. I installed eclipse with the hibernate and the GWT plugin. Then I implemented hibernate in server side of GWT. Then I start the Google App Engine in eclipse and it works. Then I start a Web Browser and try to get data from GWT, but i get an error on the eclipse web server: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details.. Has anyone an idea what I can do? Thanks -- 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.
changing Module Base Url
Hi, I want to change the module base url plz,don't ask me why for example: my project's name is : testProject and my base url is : /testproject/ can anyone help me how to change the base url to /somethingelse/ ??? Best Regards -- 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.
GWT 2.03 add Ssl conector
Hi Guys for our Company We need add a Ssl connector to the Embebed Jetty Server of GWT Eclipse Plugin for galileo , But until now has been unsuccessfully. Somebody had any Idea or Tip to do that Regards,Sergio -- 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: Problem using java projects in GWT
In our projects, we just use our source code path directly. When launching the project in DevMode from within Eclipse, the launch config's classpath contains both the default classpath plus the /src directory. When compiling the project in Ant, we reference the source path directly in the gwt Compiler call: java classname=com.google.gwt.dev.Compiler fork=true maxmemory=512M failonerror=true arg line=-war ${temp.war} / arg value=com.x.ModuleName / classpath path location=src / path location=${temp.classes}/ /classpath /java Basically, the GWT Compiler needs both the compiled code and the source code to successfully compile the module. Hope that helps. Neil Olson http://www.intertech.com/blog On Mar 30, 8:23 pm, lineman78 linema...@gmail.com wrote: You cannot use source code from a java project in GWT directly. All GWT code must be in the client path of a module. i.e. sura.ticketcheck.bo.Instancia is not part of a GWT module. There is one workaround I have gotten to work(only once, so no guarantee). 1) Create a file BoModule.gwt.xml in your source folder under the following path: sura/ticketcheck 2) Put the following text into the file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 2.0.3//EN http://google-web-toolkit.googlecode.com/svn/tags/2.0.3/ distro-source/core/src/gwt-module.dtd module inherits name=com.google.gwt.user.User / source path=bo / /module 3) In your src/ticketcheckGWT/xxx.gwt.xml put inherits name=sura.ticketcheck.BoModule/ Essentially what you are doing is tricking the GWT compiler into thinking that sura.ticketcheck has a module who's source is in the folder 'bo'. This should work as long as all files within package sura.ticketcheck.bo don't import outside of that package except standard java objects that are available through the com.google.gwt.user.User module. I have run into this several times and sometimes you just have to rewrite(copy and paste) stuff into a GWT project. On Mar 30, 1:25 pm, Lucas Rios lucasri...@gmail.com wrote: Hi everybody I'm trying to use a Java project in GWT but I have had some problems because I can't compile the GWT project. I have done this: 1.Make a xxx.gwt.xml in the java project. 2. Add a external JAR (java project) in the java build path of the GWT project. In Projects and libraries tabs. 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml) 4. And last compile the GWT project... showing me those errors Compiling module ticketcheckGWT.Ticketcheck_GWT Validating newly compiled units [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/Ticketcheck_GWT.java' [ERROR] Line 488: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheck.java' [ERROR] Line 13: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java' [ERROR] Line 12: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted-core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java' [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is not safe to access in JSNI code For additional info see: file:/D:/Escritorio/eclipse-jee-galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/longJsniRestriction.html Finding entry point classes [ERROR] Unable to find type 'ticketcheckGWT.client.Ticketcheck_GWT' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly If somebody know how I can solve it please help me Thank for all Regards LucasRR -- 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.
Give GWT Text box a value with Div tag in jsp page
Hi to all, I am Trying to integrate GWT component in existing where i need to replace all html componenet with GWT componenet.I am starting with Login page where i need to replace Text box. I can show text box with the code div id=textBox/div but what i suppose to do to give this textbox a value on jsp page? Value is coming somewhere from request. -- 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.
I need to test the onError method of RequestCallback
Hi all , In gwt test case I have to make an an ajax call using RequestBuilder , Need to test the onError method on RequestCallback is executed or not if we provide a wrong URL, I tried setting the status or response, tried many ways the onError method is not executed Please help me thanks JP -- 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: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?
Ach, you're right, I hadn't bothered to check in deployed mode, assumed GWT did the right thing! This should be posted as an issue, as hashCode() is listed as implemented, but it should be done correctly. So I guess toString is the best way to go in the meantime.. On Mar 31, 10:34 am, Thomas Broyer t.bro...@gmail.com wrote: On Mar 31, 5:30 pm, kozura koz...@gmail.com wrote: ((Double)fX).hashCode() seems to work fine. It's no more than a return (int) value (i.e. equivalent to (int) fX) which is probably not accurate enough for a Point where you chose to use doubles to store the coordinates... -- 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: Eclipse JavaEE tools + GWT Development mode
Hi David, I haven't tried the same setup with Tomcat yet, but I expect it should be the same procedure: In the Servers view in Eclipse, select the server you deployed the EAR to. Right-click it and choose Debug. This allows you to set breakpoints in your server side code. To debug the client side code, you can additionally start your GWT code server (the one that's usually on port 9997) in Debug mode (Select your GWT project, then Debug As... Web Application). You should actually modify that debug configuration to uncheck the checkbox Run built-in server! (Because you're using Tomcat instead of the built-in Jetty). Now you'll only start the code server, without Jetty. Then, if you're using default values for your ports, you can browse your application with something like: http://127.0.0.1:8080/MyProject.html?gwt.codesvr=127.0.0.1:9997 (instead of http://127.0.0.1:/MyProject.html?gwt.codesvr=127.0.0.1:9997) HTH Chris PS I'd really be interested, if it works with Tomcat, too - please report back. On Mar 31, 8:14 am, David dks.darkn...@gmail.com wrote: Cris, your notes were really helpfully. However I would like to know how you manage to debug your application using your Glassfish (tomcat in my case) in order to use breakpoints and those stuff. Thanks you so much -- 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.
Is client side Javascript code always visible?
Greetings, New to Javascript. Is everyone able to see and copy Javascript a web page uses like HTML? Is there a way to hide it? Every page with Javascript I have seen so far has a link to the code in the HTML. Thanks -- 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: Is client side Javascript code always visible?
Of course, anything sent to and rendered/run by the client's browser can be retrieved by the user. Note that GWT does greatly obfuscate the code - everything gets optimized and turned into 2-3 letter names, etc, but even that can be reverse engineered. On Mar 31, 6:46 am, NeuroPulse neuropu...@gmail.com wrote: Greetings, Before I start writing Javascript, I am trying to find out if anyone can see and copy it like HTML? Every page with Javascript I have seen so far has a link to the code in the HTML. Thanks -- 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: Is client side Javascript code always visible?
Yes. JS can be copied easily. You can obfuscate to make it difficult to understand, but it still isn't impossible. --Sri On 31 March 2010 18:16, NeuroPulse neuropu...@gmail.com wrote: Greetings, Before I start writing Javascript, I am trying to find out if anyone can see and copy it like HTML? Every page with Javascript I have seen so far has a link to the code in the HTML. Thanks -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: Is client side Javascript code always visible?
If the JavaScript should be executed in the browser (as usual), then it will have to be downloaded to the browser. This means, that it can also be copied. GWT offers an option to obfuscate the generated code, and one of the effects of this is, that it's harder for someone to read the code. But it could still be copied. So, if you have some proprietary algorithms, you might want to run them on the server. Chris On Mar 31, 2:46 pm, NeuroPulse neuropu...@gmail.com wrote: Greetings, Before I start writing Javascript, I am trying to find out if anyone can see and copy it like HTML? Every page with Javascript I have seen so far has a link to the code in the HTML. Thanks -- 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: Is client side Javascript code always visible?
What I mean is, is it compiled like C++ is compiled into a program? On Mar 31, 12:52 pm, Chris Lercher cl_for_mail...@gmx.net wrote: If the JavaScript should be executed in the browser (as usual), then it will have to be downloaded to the browser. This means, that it can also be copied. GWT offers an option to obfuscate the generated code, and one of the effects of this is, that it's harder for someone to read the code. But it could still be copied. So, if you have some proprietary algorithms, you might want to run them on the server. Chris On Mar 31, 2:46 pm, NeuroPulse neuropu...@gmail.com wrote: Greetings, Before I start writing Javascript, I am trying to find out if anyone can see and copy it like HTML? Every page with Javascript I have seen so far has a link to the code in the HTML. Thanks -- 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: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?
On Mar 31, 9:36 am, Luis Fernando Planella Gonzalez lfpg@gmail.com wrote: Anyone has a better idea? public boolean equals(Object obj) { if (!(obj instanceof Point)) { return false; } Point p = (Point) obj; return fX == p.fY fY == p.fY; } public int hashCode() { return (int) (pX + pY); Does this say that Point(2.0,0.0) and Point(0.0,2.0) have the same hashCode()? } -- 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: GWT 2.03 add Ssl conector
Hi Guys for our Company We need add a Ssl connector to the Embebed Jetty Server of GWT Eclipse Plugin for galileo , But until now has been unsuccessfully. Somebody had any Idea or Tip how do that Regards,Sergio -- 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: Dynamic Module Loading
GWT's architecture is orthogonal to your requirement of dynamic module loading / pluggable sub-modules, so whatever solution you find will be a hack and not maintainable. One of the core philosophies of GWT - *If something can be done at compile time, do it*. The key benefit of such a philosophy is performance. GWT scores over a lot of other frameworks because of its monolithic, closed-world compile. Any framework for dynamic module loading needs to defer a few operations to runtime, and that is a cost GWT core is unwilling to pay (thats what I understand). Having said that, you can still achieve what you want. Define an API (in terms of javascript methods) for your module, and use GWT Exporterhttp://code.google.com/p/gwt-exporter/to export the methods. That way, your GWT modules can inter-operate with hand-written javascript or with other pre-compiled GWT code. You can also dynamically add new modules to a page if you wish to do so. Any shared/common will however get download multiple times as part of each modules nocache.js + guid.cache.html, and there is nothing you can do about it. --Sri On 31 March 2010 21:48, lineman78 linema...@gmail.com wrote: Yeah, there is 1 problem I have with your solution and a separate issue your solution doesn't address. The problem I have with your solution is that iFrames can't inherit size. One behavior I like is that you can stack the modules and they will fit tightly against the other and the one below will move if the upper one's height changes, i.e. a disclosure panel. The issue that your issue doesn't seem to resolve is that I would like to dynamically add the modules to the page as they are added and would like the main module to not know anything about them other than the fact that they extend an abstract sub module and the location of the module's nocache.js. On Mar 31, 2:14 am, Olivier Monaco olivier.mon...@free.fr wrote: Hi, I don't know if I'll answer your question but we working on a main GWT- module with pluggable sub-modules. Each sub-modules is an ui- independant part of the whole application. To avoid interferences, each module loads into its own iframe. I wrote a messaging system that allow each module to communicate with each other (JSON serialization, auto-discovery of other modules...). Olivier On 31 mar, 03:10, lineman78 linema...@gmail.com wrote: I know this is a common request of people trying to make pluggable applications. It seems that every time someone comes up with a solution to this problem the GWT team changes the way the core linkers work and break the solution. I was wondering if anyone knows a way to dynamically load a module either with a new linker, or a different method than the traditional appending a new script element to the end of the body. I try to append a script element to the end of the body and it completely blows the document away and freezes the page in a loading mode. I found an email exchange between members of the GWT contributors group in December where they discuss new methods for the default linkers using dynamic iframes. I have been exploring this capability since 1.5 and every time I revisit it the method(hack job) I used the last time will not work. I would really like a more consistent method. Every forum I have seen where someone asks this someone inevitably asks why, so let me head off this question by explaining. I have run into this in a few different situations, one when trying to integrate GWT portlets into Liferay(Java portlet). The second situation is in trying to create a dynamic binding of sorts. I have been trying to figure out a way to create a GWT portal where you could install modules and they could be added and removed dynamically without having to recompile the core, creating something similar to iGoogle or Liferay in a GWT/J2EE implementation. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: Is client side Javascript code always visible?
No Ian http://examples.roughian.com On 31 March 2010 18:58, NeuroPulse neuropu...@gmail.com wrote: What I mean is, is it compiled like C++ is compiled into a program? On Mar 31, 12:52 pm, Chris Lercher cl_for_mail...@gmx.net wrote: If the JavaScript should be executed in the browser (as usual), then it will have to be downloaded to the browser. This means, that it can also be copied. GWT offers an option to obfuscate the generated code, and one of the effects of this is, that it's harder for someone to read the code. But it could still be copied. So, if you have some proprietary algorithms, you might want to run them on the server. Chris On Mar 31, 2:46 pm, NeuroPulse neuropu...@gmail.com wrote: Greetings, Before I start writing Javascript, I am trying to find out if anyone can see and copy it like HTML? Every page with Javascript I have seen so far has a link to the code in the HTML. Thanks -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?
Posted issue http://code.google.com/p/google-web-toolkit/issues/detail?id=4805. As for equals, why not just compare the double values directly, vs bitwise equality? Unless you're concerned with the various versions of NaN and infinity this should work fine; in fact you might even want to allow a bit of a margin to deal with rounding. jchimene, you'd want to do something like the original poster to avoid that, 31*hashOfpX + hashOfpY. On Mar 31, 11:46 am, kozura koz...@gmail.com wrote: Ach, you're right, I hadn't bothered to check in deployed mode, assumed GWT did the right thing! This should be posted as an issue, as hashCode() is listed as implemented, but it should be done correctly. So I guess toString is the best way to go in the meantime.. On Mar 31, 10:34 am, Thomas Broyer t.bro...@gmail.com wrote: On Mar 31, 5:30 pm, kozura koz...@gmail.com wrote: ((Double)fX).hashCode() seems to work fine. It's no more than a return (int) value (i.e. equivalent to (int) fX) which is probably not accurate enough for a Point where you chose to use doubles to store the coordinates... -- 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.
Serialization Error with own class while compiling
Hey, ive got a problem and im searching for hours to find a solution. My problem is the following: I have a little RPC-Service which returns as a result a Domain- Object (Own custom-class). But this Domain-Object could not be serialized, though i have made this Domain-class serializable with com.google.gwt.user.client.rpc.IsSerializable. Im using GWT SDK 2.01 and getting the following compiling error: [ERROR] com.google.gwt.core.client.JavaScriptObject is not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or 'java.io.Serializable' nor does it have a custom field serializer (reached via com.vostokdomains.kis.client.objetcs.Domain) [ERROR] com.google.gwt.core.client.JavaScriptObject has no available instantiable subtypes. (reached via com.vostokdomains.kis.client.objetcs.Domain) I hope you can help me out!! Enclosed some code-snippets: package com.vostokdomains.kis.client.objetcs; import java.util.Date; import com.google.gwt.i18n.client.DateTimeFormat; import com.google.gwt.user.client.rpc.IsSerializable; == Domain-Object public class Domain implements ComparableDomain, IsSerializable{ private String adresse; private String tld; private Date create; private Date next; private int laufzeit; private double preis; private Kontakt registrar; private Kontakt admin; private Kontakt tech; private Kontakt owner; private String namesever1; private String nameserver2; private String records; Domain(){ } public Domain(String adresse, String tld, int tag, int monat, int jahr, Kontakt kontakt) { DateTimeFormat fmt = DateTimeFormat.getFormat(dd.MM.yyy); this.setRegistrar(new Kontakt(Keine Angabe)); this.adresse=adresse; this.tld=tld; this.owner=kontakt; this.next=fmt.parse((tag+.+monat+.+jahr)); return; } public Domain(String adresse, String tld, Kontakt kontakt){ this.setRegistrar(new Kontakt(Keine Angabe)); this.adresse=adresse; this.tld=tld; this.owner=kontakt; this.next=new Date(); } [] = DatabaseService public class DatabaseServiceImpl extends RemoteServiceServlet implements DatabaseService { /** * */ private static final long serialVersionUID = 1L; public Domain getDomains() { DBConnection conn = new DBConnection(); conn.connect(); Connection dbconn = conn.getConnection(); System.out.print(TEST); Domain d = null; try { ResultSet rs = null; Statement stm = dbconn.createStatement(); System.out.print(STATEMENT); stm.execute(SELECT * FROM domains); rs = stm.getResultSet(); rs.next() ; Kontakt k = new Kontakt(rs.getString(2)); d = new Domain(rs.getString(3), tld, k); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } return d; } } RPC Call public class Kis implements EntryPoint { @Override public void onModuleLoad() { DatabaseServiceAsync rpc; rpc = (DatabaseServiceAsync) GWT.create(DatabaseService.class); ServiceDefTarget target = (ServiceDefTarget) rpc; String moduleRelativeURL = GWT.getModuleBaseURL() + DatabaseServiceImpl; target.setServiceEntryPoint(moduleRelativeURL); /* test.add(); RootPanel.get().add(test.vpanel);*/ rpc.getDomains(new AsyncCallbackDomain() { public void onFailure(Throwable caught) { Window.alert(Übertragung fehlgeschlagen! ); } public void onSuccess(Domain rs) { //Expiration ex = new Expiration(); //ex.create(rs,0); System.out.print(rs.getAdresse()); //RootPanel.get().add(ex.vpanel); } } ); } } -- 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
Scrollbar Widget
I know this question has probably been asked many times but I was wondering if anyone has encountered a way to do a ScrollBar in GWT. I am looking to build a widget which will show a file and do not want to load the whole file but want the ScrollBars to represent the whole file and moving the scrollbar would load different parts of the file. Does anyone know of such a beast? Thanks Thomas -- 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: Serialization Error with own class while compiling
Don't have a constructor with arguments, only use Set/Gets. What's a Kontakt? Is that serializable? Fix the constructor and verify Kontakt is serializable and it should work. On Mar 31, 10:43 am, Johannes Stein johannes.st...@googlemail.com wrote: Hey, ive got a problem and im searching for hours to find a solution. My problem is the following: I have a little RPC-Service which returns as a result a Domain- Object (Own custom-class). But this Domain-Object could not be serialized, though i have made this Domain-class serializable with com.google.gwt.user.client.rpc.IsSerializable. Im using GWT SDK 2.01 and getting the following compiling error: [ERROR] com.google.gwt.core.client.JavaScriptObject is not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or 'java.io.Serializable' nor does it have a custom field serializer (reached via com.vostokdomains.kis.client.objetcs.Domain) [ERROR] com.google.gwt.core.client.JavaScriptObject has no available instantiable subtypes. (reached via com.vostokdomains.kis.client.objetcs.Domain) I hope you can help me out!! Enclosed some code-snippets: package com.vostokdomains.kis.client.objetcs; import java.util.Date; import com.google.gwt.i18n.client.DateTimeFormat; import com.google.gwt.user.client.rpc.IsSerializable; == Domain-Object public class Domain implements ComparableDomain, IsSerializable{ private String adresse; private String tld; private Date create; private Date next; private int laufzeit; private double preis; private Kontakt registrar; private Kontakt admin; private Kontakt tech; private Kontakt owner; private String namesever1; private String nameserver2; private String records; Domain(){ } public Domain(String adresse, String tld, int tag, int monat, int jahr, Kontakt kontakt) { DateTimeFormat fmt = DateTimeFormat.getFormat(dd.MM.yyy); this.setRegistrar(new Kontakt(Keine Angabe)); this.adresse=adresse; this.tld=tld; this.owner=kontakt; this.next=fmt.parse((tag+.+monat+.+jahr)); return; } public Domain(String adresse, String tld, Kontakt kontakt){ this.setRegistrar(new Kontakt(Keine Angabe)); this.adresse=adresse; this.tld=tld; this.owner=kontakt; this.next=new Date(); } [] = DatabaseService public class DatabaseServiceImpl extends RemoteServiceServlet implements DatabaseService { /** * */ private static final long serialVersionUID = 1L; public Domain getDomains() { DBConnection conn = new DBConnection(); conn.connect(); Connection dbconn = conn.getConnection(); System.out.print(TEST); Domain d = null; try { ResultSet rs = null; Statement stm = dbconn.createStatement(); System.out.print(STATEMENT); stm.execute(SELECT * FROM domains); rs = stm.getResultSet(); rs.next() ; Kontakt k = new Kontakt(rs.getString(2)); d = new Domain(rs.getString(3), tld, k); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } return d; } } RPC Call public class Kis implements EntryPoint { @Override public void onModuleLoad() { DatabaseServiceAsync rpc; rpc = (DatabaseServiceAsync) GWT.create(DatabaseService.class); ServiceDefTarget target = (ServiceDefTarget) rpc; String moduleRelativeURL = GWT.getModuleBaseURL() + DatabaseServiceImpl; target.setServiceEntryPoint(moduleRelativeURL); /* test.add(); RootPanel.get().add(test.vpanel);*/ rpc.getDomains(new AsyncCallbackDomain() { public void onFailure(Throwable caught) { Window.alert(Übertragung fehlgeschlagen! ); } public void onSuccess(Domain rs) { //Expiration ex = new Expiration(); //ex.create(rs,0); System.out.print(rs.getAdresse());
Re: Serialization Error with own class while compiling
What are the fields of the Kontakt class? Based on the error, one of the fields under Domain is a JavaScriptObject, but nothing in your Domain class above seems to be. Also, you should just use the java.io.Serializable interface, not gwt's IsSerializable. -- 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: Scrollbar Widget
On Mar 31, 4:11 pm, Thomas Jackson thomas.jackson@gmail.com wrote: I know this question has probably been asked many times but I was wondering if anyone has encountered a way to do a ScrollBar in GWT. I am looking to build a widget which will show a file and do not want to load the whole file but want the ScrollBars to represent the whole file and moving the scrollbar would load different parts of the file. Does anyone know of such a beast? Thanks Thomas You probably find here http://code.google.com/docreader/#p=google-web-toolkit-incubators=google-web-toolkit-incubatort=google-web-toolkit-incubator what you are searching for. EP -- 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: help integrating GWT project to an existing Web Project (on Tomcat) within Eclipse
Thanks Keith. The steps seemed a lot clearer now and I followed it to set uo my workspace exactly as yours. Now when I start the Tomcat server, launch the client in DEV mode and go to http://localhost:8080/TestWeb, everything loads up fine and I get to the client HTML page alright. However when I click a button, which is tied to an Asynchronous RPC call, I get the following exception : SEVERE: Allocate exception for servlet greetServlet java.lang.ClassNotFoundException: com.foo.client.GreetingService at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1275) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1206) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 1083) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java: 806) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 129) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Unknown Source) The synchronous version of the GreetingService is in com.foo.client package within the FooShared project(just as you have mentioned). I have also added FooShared as a proj dependancy of FooClient and a module dependency of FooServer. NOTE: I did not do Step 15 in your instructions i.e., haven't really created a WAR file for deployment yet. Its all running locally. The error message is not very helpful as well, in terms of when and where was the exception thrown. any idea what could have caused it. Thanks, aish On Mar 30, 1:51 pm, Keith Platfoot kplatf...@google.com wrote: Hi aish, 1) Yes, FooServer would be your existing Dynamic Web project (TestWeb). This project should include anything in the .server package of your GWT app (e.g. GreetingServerImpl) as well as any existing server-side code. Your WAR directory (you'll have just one) will be the WebContent directory of TestWeb. Dynamic Web projects are configured to use the configuration and resource files (web.xml, HTML, CSS, JS, etc.) from this directory to build your WAR when debugging locally or creating a .war file for deployment. BTW, the default name is WebContent, but this can be customized during the New Dynamic Web project wizard. Your GWT code (in TestUI) will need to integrate into TestWeb's WAR directory when you run/debug locally and when you build a .war file. For running locally, you just need to tell GWT DevMode to run within the context of TestWeb's staging WAR directory (see steps 11 and 12 in my checklist). You don't need to copy any files manually, because GWT will pick up all the .java and .gwt.xml source files it needs directly from the launch classpath. So there really is no explicit link to TestWeb from TestUI. The only link from TestWeb back to TestUI is that your HTML host page in TestWeb's WebContent directory will need to reference your GWT module's bootstrap script (the TestUI.nocache.js file, which GWT will automatically insert into your staging WAR directory when you launch dev mode). Creating a .war for deployment, on the other hand, does
Re: GWT/Hibernate/Oracle/Eclipse
Read the developer's guide :). There is a white list of classes for both Google App Engine and Web Tool Kit. You have run into that restriction. You will probably have issues with trying to use Hibernate. If you are using Google App Engine you will have to you use App Engine's JDO or JPA implementations. If you want to use Hibernate then remove the App Engine from the design. Jas On Wed, Mar 31, 2010 at 5:19 AM, bebauer1200 be.ba...@gmx.at wrote: Hello, please, can anyone help me? I use GWT as Client and Hibernate as Database Interface and as Database Oracle. I installed eclipse with the hibernate and the GWT plugin. Then I implemented hibernate in server side of GWT. Then I start the Google App Engine in eclipse and it works. Then I start a Web Browser and try to get data from GWT, but i get an error on the eclipse web server: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details.. Has anyone an idea what I can do? Thanks -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: GEP 1.3 : com.google.gdt.eclipse.suite.* packages not exported
Hi Fred, Could you file a bug for this? Currently, they are not exported because we wanted maximum flexibility. On Tue, Mar 30, 2010 at 7:54 AM, Fred fbri...@gmail.com wrote: Hi, I'm trying to set up a m2eclipse project configurator for GEP during my spare time (I'll open source the code eventually, it's just I haven't setup any SCM yet). So far, I've been able to add the GWT nature to maven projects, set the war source directory using the GEP API. I'd like to create/tweak LaunchConfigurations using com.google.gdt.eclipse.suite.WebAppLaunchUtil. But I can't use any of the classes in the com.google.gdt.eclipse.suite plugin, since no packages are exported. This is quite unfortunate, since I don't want to get sued for reverse engineering these classes. Can Google reconsider this design choice to help 3rd party plugins better integrate with GEP? I'll file an issue if you think it's doable. Thanks in advance. Regards, Fred Bricon -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Miguel -- 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.
GWT/Hibernate/Oracle/Eclipse
Read the developer's guide :). There is a white list of classes for both Google App Engine and Web Tool Kit. You have run into that restriction. You will probably have issues with trying to use Hibernate. If you are using Google App Engine you will have to you use App Engine's JDO or JPA implementations. If you want to use Hibernate then remove the App Engine from the design. Jas -- 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: GWT/Hibernate/Oracle/Eclipse
Sorry for the double reply. I got a email saying it was rejected. It lied I guess. On Mar 31, 5:19 am, bebauer1200 be.ba...@gmx.at wrote: Hello, please, can anyone help me? I use GWT as Client and Hibernate as Database Interface and as Database Oracle. I installed eclipse with the hibernate and the GWT plugin. Then I implemented hibernate in server side of GWT. Then I start the Google App Engine in eclipse and it works. Then I start a Web Browser and try to get data from GWT, but i get an error on the eclipse web server: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details.. Has anyone an idea what I can do? Thanks -- 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: I need to test the onError method of RequestCallback
On 31 mar, 13:39, jp jpforj...@gmail.com wrote: Hi all , In gwt test case I have to make an an ajax call using RequestBuilder , Need to test the onError method on RequestCallback is executed or not if we provide a wrong URL, I tried setting the status or response, tried many ways the onError method is not executed Please help me There are very few cases when onError would be called, the most common one being a timeout if you call setTimeoutMillis with a non-0 value. The easy way to reliably have it is to Thread.sleep() on the server side with a long value while having a short timeout on the client side. Maybe GWT's own unit tests could inspire you? http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/http/client/RequestBuilderTest.java#389 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/http/server/RequestBuilderTestServlet.java#66 (note that it won't run reliably in -runStyle:HtmlUnit due to a but in HtmlUnit) -- 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.
UIBinder and IE6
Hello. I would like to use UIBinder to define the layouts for my next application. Problem is, that the client site still use IE6 as their main browser. Since I did not find it explicitly statet in the docs of GWT, I'd like to ask if there are any limitations when using UIBinder regarding IE6 compatibility. Thanks in advance, Michael Vogt -- 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: I need to test the onError method of RequestCallback
Thanks Thomas, I managed to do it already, with the same way, given a sleep in the servlet. Now another issue , I am trying to crack is I have to use this mode for running test in production mode -runStyle Manual:1 when I run it , get the url , past in browser getting disconnected , The problem is there is a servlet generate a picture and return ind devmode url is this - http://127.0.0.1:/test/NVM_hover_bg.png but in test mode it is searching a servlet By this url http://192.168.1.3:1627/com.test.client.test.JUnit/pic.png and getting disconnected since its not able to get this servlet. Could u please help me in this issue, Thanks JP On Thu, Apr 1, 2010 at 2:50 AM, Thomas Broyer t.bro...@gmail.com wrote: On 31 mar, 13:39, jp jpforj...@gmail.com wrote: Hi all , In gwt test case I have to make an an ajax call using RequestBuilder , Need to test the onError method on RequestCallback is executed or not if we provide a wrong URL, I tried setting the status or response, tried many ways the onError method is not executed Please help me There are very few cases when onError would be called, the most common one being a timeout if you call setTimeoutMillis with a non-0 value. The easy way to reliably have it is to Thread.sleep() on the server side with a long value while having a short timeout on the client side. Maybe GWT's own unit tests could inspire you? http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/http/client/RequestBuilderTest.java#389 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/http/server/RequestBuilderTestServlet.java#66 (note that it won't run reliably in -runStyle:HtmlUnit due to a but in HtmlUnit) -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: UIBinder and IE6
Hello. I would like to use UIBinder to define the layouts for my next application. Problem is, that the client site still use IE6 as their main browser. Since I did not find it explicitly statet in the docs of GWT, I'd like to ask if there are any limitations when using UIBinder regarding IE6 compatibility. Thanks in advance, Michael Vogt -- 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.
UIBinder and IE6
Hello. I would like to use UIBinder to define the layouts for my next application. Problem is, that the client site still use IE6 as their main browser. Since I did not find it explicitly statet in the docs of GWT, I'd like to ask if there are any limitations when using UIBinder regarding IE6 compatibility. Thanks in advance, Michael Vogt -- 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: Dynamic Module Loading
I agree with everything you have said and this is the approach I am experimenting with except for one problem. Since 2.0 it is not possible to load modules dynamically. I have written a jsp that will add all the installed plug-ins' scripts to the head when the page is loaded, but unfortunately this causes a lot of unnecessary start-up loading. I am going to look into putting the entire instantiation under a runAsync and that should hopefully fix the problem. It would still be nice to load the modules dynamically, but i guess it isn't a huge deal to make them reload after installing a plug-in. On Mar 31, 12:12 pm, Sripathi Krishnan sripathikrish...@gmail.com wrote: GWT's architecture is orthogonal to your requirement of dynamic module loading / pluggable sub-modules, so whatever solution you find will be a hack and not maintainable. One of the core philosophies of GWT - *If something can be done at compile time, do it*. The key benefit of such a philosophy is performance. GWT scores over a lot of other frameworks because of its monolithic, closed-world compile. Any framework for dynamic module loading needs to defer a few operations to runtime, and that is a cost GWT core is unwilling to pay (thats what I understand). Having said that, you can still achieve what you want. Define an API (in terms of javascript methods) for your module, and use GWT Exporterhttp://code.google.com/p/gwt-exporter/to export the methods. That way, your GWT modules can inter-operate with hand-written javascript or with other pre-compiled GWT code. You can also dynamically add new modules to a page if you wish to do so. Any shared/common will however get download multiple times as part of each modules nocache.js + guid.cache.html, and there is nothing you can do about it. --Sri On 31 March 2010 21:48, lineman78 linema...@gmail.com wrote: Yeah, there is 1 problem I have with your solution and a separate issue your solution doesn't address. The problem I have with your solution is that iFrames can't inherit size. One behavior I like is that you can stack the modules and they will fit tightly against the other and the one below will move if the upper one's height changes, i.e. a disclosure panel. The issue that your issue doesn't seem to resolve is that I would like to dynamically add the modules to the page as they are added and would like the main module to not know anything about them other than the fact that they extend an abstract sub module and the location of the module's nocache.js. On Mar 31, 2:14 am, Olivier Monaco olivier.mon...@free.fr wrote: Hi, I don't know if I'll answer your question but we working on a main GWT- module with pluggable sub-modules. Each sub-modules is an ui- independant part of the whole application. To avoid interferences, each module loads into its own iframe. I wrote a messaging system that allow each module to communicate with each other (JSON serialization, auto-discovery of other modules...). Olivier On 31 mar, 03:10, lineman78 linema...@gmail.com wrote: I know this is a common request of people trying to make pluggable applications. It seems that every time someone comes up with a solution to this problem the GWT team changes the way the core linkers work and break the solution. I was wondering if anyone knows a way to dynamically load a module either with a new linker, or a different method than the traditional appending a new script element to the end of the body. I try to append a script element to the end of the body and it completely blows the document away and freezes the page in a loading mode. I found an email exchange between members of the GWT contributors group in December where they discuss new methods for the default linkers using dynamic iframes. I have been exploring this capability since 1.5 and every time I revisit it the method(hack job) I used the last time will not work. I would really like a more consistent method. Every forum I have seen where someone asks this someone inevitably asks why, so let me head off this question by explaining. I have run into this in a few different situations, one when trying to integrate GWT portlets into Liferay(Java portlet). The second situation is in trying to create a dynamic binding of sorts. I have been trying to figure out a way to create a GWT portal where you could install modules and they could be added and removed dynamically without having to recompile the core, creating something similar to iGoogle or Liferay in a GWT/J2EE implementation. -- 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
Re: Problem using java projects in GWT
I think the 2 of us are answering different questions. I believe the problem he is having is that the GWT compiler is not allowing him to use objects from a previous Java project he had done(I am assuming it has some algorithms or POJOs that he doesn't want to replicate). The GWT compiler won't allow you to reference these objects even if they are in the classpath because they are not part of an included module. Your responses assume his problem is a classpath problem, but eclipse would be yelling at you for that one, not just the compiler. Also, Lucas I forgot to mention, my approach will still not work if the source(*.java) files are not in your classpath as the GWT compiler requires the uncompiled source. On Mar 30, 9:33 pm, Neil neiltol...@gmail.com wrote: In our projects, we just use our source code path directly. When launching the project in DevMode from within Eclipse, the launch config's classpath contains both the default classpath plus the /src directory. When compiling the project in Ant, we reference the source path directly in the gwt Compiler call: java classname=com.google.gwt.dev.Compiler fork=true maxmemory=512M failonerror=true arg line=-war ${temp.war} / arg value=com.x.ModuleName / classpath path location=src / path location=${temp.classes}/ /classpath /java Basically, the GWT Compiler needs both the compiled code and the source code to successfully compile the module. Hope that helps. Neil Olsonhttp://www.intertech.com/blog On Mar 30, 8:23 pm, lineman78 linema...@gmail.com wrote: You cannot use source code from a java project in GWT directly. All GWT code must be in the client path of a module. i.e. sura.ticketcheck.bo.Instancia is not part of a GWT module. There is one workaround I have gotten to work(only once, so no guarantee). 1) Create a file BoModule.gwt.xml in your source folder under the following path: sura/ticketcheck 2) Put the following text into the file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 2.0.3//EN http://google-web-toolkit.googlecode.com/svn/tags/2.0.3/ distro-source/core/src/gwt-module.dtd module inherits name=com.google.gwt.user.User / source path=bo / /module 3) In your src/ticketcheckGWT/xxx.gwt.xml put inherits name=sura.ticketcheck.BoModule/ Essentially what you are doing is tricking the GWT compiler into thinking that sura.ticketcheck has a module who's source is in the folder 'bo'. This should work as long as all files within package sura.ticketcheck.bo don't import outside of that package except standard java objects that are available through the com.google.gwt.user.User module. I have run into this several times and sometimes you just have to rewrite(copy and paste) stuff into a GWT project. On Mar 30, 1:25 pm, Lucas Rios lucasri...@gmail.com wrote: Hi everybody I'm trying to use a Java project in GWT but I have had some problems because I can't compile the GWT project. I have done this: 1.Make a xxx.gwt.xml in the java project. 2. Add a external JAR (java project) in the java build path of the GWT project. In Projects and libraries tabs. 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml) 4. And last compile the GWT project... showing me those errors Compiling module ticketcheckGWT.Ticketcheck_GWT Validating newly compiled units [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/Ticketcheck_GWT.java' [ERROR] Line 488: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheck.java' [ERROR] Line 13: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java' [ERROR] Line 12: No source code is available for type sura.ticketcheck.bo.Instancia; did you forget to inherit a required module? [ERROR] Errors in 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted-core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java' [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is not safe to access in JSNI code For additional info see: file:/D:/Escritorio/eclipse-jee-galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/longJsniRestriction.html Finding entry point classes [ERROR] Unable to find type 'ticketcheckGWT.client.Ticketcheck_GWT' [ERROR] Hint: Previous compiler errors may have
Compiling against Gin in Repository fails
Hi I'm having a strange issue here... If I use the Gin jar from the central maven repository, my GWT compilation fails. However, if I use a version that I downloaded previously (unfortunately not marked as far as I could see! :( ), then everything works fine. Obviously, I'd quite like to be using the maven repository version... If it can help, the file of the sizes are: gin-1.0.jar - 97,838 bytes (from Maven central repository) gin.jar - 99,470 bytes (previous gin which I had downloaded from Google Code I believe) The error trace follows. Do you reckon this is a bug with Gin/GWT compile? Or perhaps I'm missing something? Any ideas how I can go forward? Switching my previous gin jar for the one downloaded in my local maven repository is rather hacky! [INFO] Compiling module com.tyndalehouse.step.web.stepwebapp [INFO]Scanning for additional dependencies: file:/D:/TyndaleStep/ step-web-app/src/main/java/com/tyndalehouse/step/web/client/ StepEntryPoint.java [INFO] Adding '1' new generated units [INFO] Validating newly compiled units [INFO] [ERROR] Errors in 'D:\TyndaleStep\step-web-app \target\.generated\com\tyndalehouse\step\web\client\gin \StepInjectorImpl.java' [INFO][ERROR] Line 57: The nested type com.tyndalehouse.step.web.client.presenter.StepModulePresenter$Display cannot be referenced using its bin ary name [INFO][ERROR] Line 61: The nested type com.tyndalehouse.step.web.client.presenter.StepModulePresenter$Display cannot be referenced using its bin ary name [INFO][ERROR] Line 62: The method create_Key$type$com $tyndalehouse$step$web$client$presenter$StepModulePresenter$ $_extends_com$tyndalehouse$step $web$client$presenter$StepModulePresenter$Display$$_annotation$$none$$ () is undefined for the type StepInjectorImpl [INFO][ERROR] Line 323: The method get_Key$type$com $tyndalehouse$step$web$client$presenter$StepModulePresenter$ $_extends_com$tyndalehouse$step$w eb$client$presenter$StepModulePresenter$Display$$_annotation$$none$$() is undefined for the type StepInjectorImpl [INFO] [ERROR] Unable to find recently-generated type 'com.tyndalehouse.step.web.client.gin.StepInjectorImpl [INFO][ERROR] Errors in 'file:/D:/TyndaleStep/step-web-app/src/ main/java/com/tyndalehouse/step/web/client/StepEntryPoint.java' [INFO] [ERROR] Internal compiler error [INFO] java.lang.RuntimeException: Unable to commit generated files [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 131) [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:200) [INFO] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444) [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:123) [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:234) [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.access$200(AbstractCompiler.java:109) [INFO] at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: 522) [INFO] at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java: 112) [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java: 47) [INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java: 422) [INFO] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java: 32) [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java: 522) [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java: 414) [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:201) [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) [INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87) [INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java: 81) [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:159) [INFO] Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) [INFO] at com.google.gwt.dev.javac.StandardGeneratorContext.finish(StandardGeneratorContext.java: 358) [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 129) [INFO] ... 17 more [INFO] [INFO] [ERROR] Unexpected [INFO] java.lang.RuntimeException: Unable to commit generated files [INFO] at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 131) [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:200) [INFO] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444) [INFO] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
Re: GEP 1.3 : com.google.gdt.eclipse.suite.* packages not exported
Hi Miguel, it's here : http://code.google.com/p/google-web-toolkit/issues/detail?id=4802 regards, Fred Bricon On Mar 31, 9:47 pm, Miguel Méndez mmen...@google.com wrote: Hi Fred, Could you file a bug for this? Currently, they are not exported because we wanted maximum flexibility. On Tue, Mar 30, 2010 at 7:54 AM, Fred fbri...@gmail.com wrote: Hi, I'm trying to set up a m2eclipse project configurator for GEP during my spare time (I'll open source the code eventually, it's just I haven't setup any SCM yet). So far, I've been able to add the GWT nature to maven projects, set the war source directory using the GEP API. I'd like to create/tweak LaunchConfigurations using com.google.gdt.eclipse.suite.WebAppLaunchUtil. But I can't use any of the classes in the com.google.gdt.eclipse.suite plugin, since no packages are exported. This is quite unfortunate, since I don't want to get sued for reverse engineering these classes. Can Google reconsider this design choice to help 3rd party plugins better integrate with GEP? I'll file an issue if you think it's doable. Thanks in advance. Regards, Fred Bricon -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Miguel -- 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: Menu Item and MVP
Thomas, I've heard of your approach before, but I'm not clear on the implementation... are you passing the presenter itself into the view? or are you passing instances of event handlers? The difference seems trivial, but in practice (as I imagine it, anyway) seems large: http://etherpad.com/sIAaiCfuiG Let me know what you think. I would assume the first way is what your referring to in your comment above, which implies that it is a View layer responsibility to deal with HandlerRegistrations and the like. Is that correct? On Mar 31, 8:14 am, Thomas Broyer t.bro...@gmail.com wrote: On Mar 31, 8:07 am, mic mina...@gmail.com wrote: Just sharing some thoughts Would the MenuItem class need to implement HasClickHandler so that when a MenuItem is clicked, the action can be handled in the presenter. At this time, the MenuItem needs an object that implements the Command interface, so the view seems to know about the presenter. I would like to know what others think about this. I've recently migrated from views with many HasXxxHandlers getters to views with a setListener method that the presenter injects into its view. The listener defines callback methods such as save(), close(), italicize(), bold(), delete(), etc. It makes unit tests waaay easier to write (you don't have to mock each HasXxxHandlers, capturing each added XxxHandler, eventually mocking the XxxEvent, etc.) and in your case would make things easier: the Command is an implementation detail of the view. -- 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: GEP 1.3 : com.google.gdt.eclipse.suite.* packages not exported
actually I fail to see how not exporting the whole thing would give you more flexibility. It sure looks less flexible for my purposes. But since I'm not an eclipse developper, I believe you :-) On Mar 31, 9:47 pm, Miguel Méndez mmen...@google.com wrote: Hi Fred, Could you file a bug for this? Currently, they are not exported because we wanted maximum flexibility. On Tue, Mar 30, 2010 at 7:54 AM, Fred fbri...@gmail.com wrote: Hi, I'm trying to set up a m2eclipse project configurator for GEP during my spare time (I'll open source the code eventually, it's just I haven't setup any SCM yet). So far, I've been able to add the GWT nature to maven projects, set the war source directory using the GEP API. I'd like to create/tweak LaunchConfigurations using com.google.gdt.eclipse.suite.WebAppLaunchUtil. But I can't use any of the classes in the com.google.gdt.eclipse.suite plugin, since no packages are exported. This is quite unfortunate, since I don't want to get sued for reverse engineering these classes. Can Google reconsider this design choice to help 3rd party plugins better integrate with GEP? I'll file an issue if you think it's doable. Thanks in advance. Regards, Fred Bricon -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Miguel -- 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: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?
jchimene wrote: On Mar 31, 9:36 am, Luis Fernando Planella Gonzalez lfpg@gmail.com wrote: Anyone has a better idea? public boolean equals(Object obj) { if (!(obj instanceof Point)) { return false; } Point p = (Point) obj; return fX == p.fY fY == p.fY; } public int hashCode() { return (int) (pX + pY); Does this say that Point(2.0,0.0) and Point(0.0,2.0) have the same hashCode()? Yes, but this sort of thing is inevitable. You can't map two doubles onto one integer without some duplication. But that doesn't matter. Consider this hashCode() implementation: public int hashCode() { return 0; } This will work in all circumstances. It fulfills the hashCode contract, it just doesn't make a HashMap with Point keys perform very well. Even then, if you only have very small maps, this won't matter. My point is that you shouldn't get too hung up on how this is implemented - just use something fast and simple. Paul -- 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: Is client side Javascript code always visible?
No, it's not. The browser will see it, and so will your users if they do view-source. As the previous answers have noted, GWT optionally obfuscates JS code (i.e., makes it smaller, less readable), but that is done largely for performance purposes (the smaller your JS code, the less you have to download, the faster your app will be), not for hiding it from the user. There are tools that undo obfuscation. In other words, anything secret/prorietary should run on the *server*-side of your application. This, by the way, goes for all JS/AJAX apps and is not particular to GWT. kathrin On Wed, Mar 31, 2010 at 1:58 PM, NeuroPulse neuropu...@gmail.com wrote: What I mean is, is it compiled like C++ is compiled into a program? On Mar 31, 12:52 pm, Chris Lercher cl_for_mail...@gmx.net wrote: If the JavaScript should be executed in the browser (as usual), then it will have to be downloaded to the browser. This means, that it can also be copied. GWT offers an option to obfuscate the generated code, and one of the effects of this is, that it's harder for someone to read the code. But it could still be copied. So, if you have some proprietary algorithms, you might want to run them on the server. Chris On Mar 31, 2:46 pm, NeuroPulse neuropu...@gmail.com wrote: Greetings, Before I start writing Javascript, I am trying to find out if anyone can see and copy it like HTML? Every page with Javascript I have seen so far has a link to the code in the HTML. Thanks -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: GWT/Hibernate/Oracle/Eclipse
It sounds like you're using a class that is not supported by AppEngine. But it also sounds like you don't want to use AppEngine ( http://code.google.com/appengine/) in the first place, because you have your own oracle database. I don't know what you mean by start the Google App Engine in eclipse, but what you probably want is to do debug/run as - Web Application, which starts development mode, which lets you debug a GWT application. Then, when you want to deploy it, you have to compile the GWT application (from Java to JavaScript), which you can do in eclipse under Google- GWT Compile. (Note that you then have to put the resulting js files from the war directory into the correct place on your server to be able to see them in the browser). If you *are* trying to use AppEngine, it's a different story. It doesn't look like you can make Hibernate work in AppEngine right now (from http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine ): *Hibernate* Versions: All Status: *INCOMPATIBLE* - You cannot currently use Hibernate directly. The differences between the App Engine datastore and SQL were too great to get the standard Hibernate up and running under App Engine. App Engine does support JDO and JPA, so you may be able to convert your Hibernate code to use one of these ORM interfaces. kathrin On Wed, Mar 31, 2010 at 6:19 AM, bebauer1200 be.ba...@gmx.at wrote: Hello, please, can anyone help me? I use GWT as Client and Hibernate as Database Interface and as Database Oracle. I installed eclipse with the hibernate and the GWT plugin. Then I implemented hibernate in server side of GWT. Then I start the Google App Engine in eclipse and it works. Then I start a Web Browser and try to get data from GWT, but i get an error on the eclipse web server: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details.. Has anyone an idea what I can do? Thanks -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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.
Diagnosing serializable class compilation issues.
Imagine your favorite statically compiled language's compiler treated certain classes of statically determinable semantic errors differently than normal. Instead of erroring out with a useful message, the compiler simply injects code in the offending location that will cause an error at runtime. The runtime error will not provide a useful stack trace, nor will it provide any information to the cause of the error. Now imagine that your compiler take several minutes to compile your program, so that when you encounter the error at runtime you have to guess what went wrong at compile time, modify your code, recompile, and after several minutes re-run your application to see if the error is still present. Such a compiler would be ludicrous, yet this appears to be exactly what the GWT compiler does. It knows that I as a user marked a particular class as IsSerializable. It knows that I am using this class as part of an RPC interface. It knows that it will not or cannot actually compile code to serialize the object at runtime. And yet, the compiler moves on and compiles the code in such a way that a useless error message will display at runtime when the RPC is invoked. Even if I set the log level to ALL, I get no information from the compiler's output that I couldn't get by inspecting the produced gwt.rpc whitelist file manually. Why does the gwt 2.0 compiler not error out automatically with a useful message in this scenario? I can't think of any situation where the current behavior is desirable. Also, why is no useful diagnostic information ever given when the scenario occurs even with full logging enabled? I have searched the Internet for a long time for an answer to this and have not found an answer. I have also wasted a significant number of hours playing a guessing game when my classes aren't serializable. I feel like every time I create a new RPC, after potentially hours of painful debugging I find a new reason for the gwt compiler to fail silently. -- 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: UIBinder and IE6
Hello. Sorry for posting the question 3 times, but I got a message from groups that my message could not be posted. Looks like this was not the case. Sorry, Michael On Mar 31, 11:43 pm, michael mich...@michaelvogt.eu wrote: Hello. I would like to use UIBinder to define the layouts for my next application. Problem is, that the client site still use IE6 as their main browser. Since I did not find it explicitly statet in the docs of GWT, I'd like to ask if there are any limitations when using UIBinder regarding IE6 compatibility. Thanks in advance, Michael Vogt -- 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.
Quick question on GWT Print
Hi all, I am trying to use Print class for printing the contents of a particular Popup Panel. I believe, i need to use the Print.it(DOM.getElementById(myId)); code for this functionality. But I am not able to set the Id for the panel. Can someone please send me the code to set the id for a particular element? Thanks and regards, Abhiram -- 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.
include an external file when deploy
I have a problem with an external file when i deploy my application: in the source code at the server side i have inserted a File (File fileXml = new File(wine.xml); ), when i debug it works good, i can see all the elements, but after i make the GWT Compile, put all files in a war archive and then uploaded it in tomcat i can't see the elements, like as the path of the XML is wrong.. i can't figure out why.. the file wine.xml is in this folder MyApp/war thanks, Andrew -- 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.
Upgarde project to GWT 2.0 issue
Hi, i have a project using GWT 1.7.1 + GAE 1.2.6 + GILEAD Adapter4appengine to use my JDO classes on gwt client side. The issue is that upgrading the project to GWT 2.0 and GAE 1.3.2 raises an error while i try to compile it for the GWT 2.0 library. Anyone can help? Regards! Compiling module voting.Admin Scanning for additional dependencies: file:/C:/Workspace/GAE/ Voting_/src/voting/client/admin/Admin.java Adding '17' new generated units Validating newly compiled units [ERROR] Errors in 'generated:// 752FD903838E9878B64C34CDFFC0D4D5/voting/model/ Voter_FieldSerializer.java' [ERROR] Line 45: No source code is available for type voting.model.Voting; did you forget to inherit a required module? [ERROR] Errors in 'generated:// A3BB1B4E629AB56BB62CB96810D83888/voting/client/admin/ AdminService_Proxy.java' [ERROR] Line 80: No source code is available for type voting.model.Voting; did you forget to inherit a required module? [ERROR] Errors in 'generated:// 2B4A9FA3F89BAFB5A0E30D7E0989332D/voting/model/ Voting_FieldSerializer.java' [ERROR] Line 5: No source code is available for type voting.model.Voting; did you forget to inherit a required module? [ERROR] Errors in 'generated:// 83C74C108C27B9F496D3E6ABF2C65630/voting/model/ Voting_Array_Rank_1_FieldSerializer.java' [ERROR] Line 5: No source code is available for type voting.model.Voting; did you forget to inherit a required module? [ERROR] Errors in 'generated:// 95764A7D7AFC9ECB88DD1BF00D832EEE/voting/model/ Option_FieldSerializer.java' [ERROR] Line 29: No source code is available for type voting.model.Voting; did you forget to inherit a required module? [ERROR] Unable to find recently-generated type 'voting.client.admin.AdminService_TypeSerializer [ERROR] Errors in 'file:/C:/Workspace/GAE/Voting_/src/voting/client/ admin/Admin.java' [ERROR] Internal compiler error java.lang.RuntimeException: Unable to commit generated files at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 131) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:200) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:123) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:234) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access $200(AbstractCompiler.java:109) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: 522) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java: 112) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java: 47) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java: 422) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java: 32) at com.google.gwt.dev.Precompile.precompile(Precompile.java:522) at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) at com.google.gwt.dev.Compiler.run(Compiler.java:201) at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 87) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java: 81) at com.google.gwt.dev.Compiler.main(Compiler.java:159) Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.javac.StandardGeneratorContext.finish(StandardGeneratorContext.java: 358) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 129) ... 17 more [ERROR] Unexpected java.lang.RuntimeException: Unable to commit generated files at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 131) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:200) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:123) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:234) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access $200(AbstractCompiler.java:109) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: 522) at
Problem with module inherits .... /! It compiles but it does not run!
Hello, In my project I'm trying to use the visualization API. So I put in the module file the following line: inherits name='com.google.gwt.visualization.Visualization'/ Like I've done so far with all projects. Then it compiles perferct! But, when I try to run it doesn't work. in the hosted mode I receive the message: Line 77: No code source is avaiable for type com.google.gwt.visualization.client.visualization.PieChart; did you forget to inherit a required module? So, it seems to me that the module is not there. But it's there, because I can compile it with no problem! Can someone help me? Thanks! -- Rafael XAVIER VALENTE Quatrième Année en Informatique - ESIEE Engineering Graduando em Engenharia Elétrica - 9º Período LITC - Laboratório de Inteligência Computacional UFMG - Brasil -- 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.
Please help in Displaying SSRS Reports in GWT Application
We have GWT Application that communicates with Dot Net Web Services. For obvious reasons it is required to use POST method instead of GET method. We have managed the Same Origin Policy issue by deploying the GWT Application in the same IIS server that has the Web Services. The problem is with the MS SSRS reports. The reports are on a separate server. We naturally are getting issues related to SOP. Can anyone help me by providing some information regarding how to do it? 1. How to write GWT code for retrieving data from MS SSRS? 2. How to display the received data? 3. How to use the functionality to export data in different formats? Thanks in advance. Sagar -- 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.
New JSON Serializer client side implementation (supports GWT 2.0+)
GWT Professional JSON Serializer http://code.google.com/p/gwtprojsonserializer/ -- 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: Serialization Error with own class while compiling
I think it's fine to have constructors with arguments (so long as you also have a zero-argument constructor), but, yes, Kontakt needs to be serializable too. kathrin On Wed, Mar 31, 2010 at 2:41 PM, Sean slough...@gmail.com wrote: Don't have a constructor with arguments, only use Set/Gets. What's a Kontakt? Is that serializable? Fix the constructor and verify Kontakt is serializable and it should work. On Mar 31, 10:43 am, Johannes Stein johannes.st...@googlemail.com wrote: Hey, ive got a problem and im searching for hours to find a solution. My problem is the following: I have a little RPC-Service which returns as a result a Domain- Object (Own custom-class). But this Domain-Object could not be serialized, though i have made this Domain-class serializable with com.google.gwt.user.client.rpc.IsSerializable. Im using GWT SDK 2.01 and getting the following compiling error: [ERROR] com.google.gwt.core.client.JavaScriptObject is not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or 'java.io.Serializable' nor does it have a custom field serializer (reached via com.vostokdomains.kis.client.objetcs.Domain) [ERROR] com.google.gwt.core.client.JavaScriptObject has no available instantiable subtypes. (reached via com.vostokdomains.kis.client.objetcs.Domain) I hope you can help me out!! Enclosed some code-snippets: package com.vostokdomains.kis.client.objetcs; import java.util.Date; import com.google.gwt.i18n.client.DateTimeFormat; import com.google.gwt.user.client.rpc.IsSerializable; == Domain-Object public class Domain implements ComparableDomain, IsSerializable{ private String adresse; private String tld; private Date create; private Date next; private int laufzeit; private double preis; private Kontakt registrar; private Kontakt admin; private Kontakt tech; private Kontakt owner; private String namesever1; private String nameserver2; private String records; Domain(){ } public Domain(String adresse, String tld, int tag, int monat, int jahr, Kontakt kontakt) { DateTimeFormat fmt = DateTimeFormat.getFormat(dd.MM.yyy); this.setRegistrar(new Kontakt(Keine Angabe)); this.adresse=adresse; this.tld=tld; this.owner=kontakt; this.next=fmt.parse((tag+.+monat+.+jahr)); return; } public Domain(String adresse, String tld, Kontakt kontakt){ this.setRegistrar(new Kontakt(Keine Angabe)); this.adresse=adresse; this.tld=tld; this.owner=kontakt; this.next=new Date(); } [] = DatabaseService public class DatabaseServiceImpl extends RemoteServiceServlet implements DatabaseService { /** * */ private static final long serialVersionUID = 1L; public Domain getDomains() { DBConnection conn = new DBConnection(); conn.connect(); Connection dbconn = conn.getConnection(); System.out.print(TEST); Domain d = null; try { ResultSet rs = null; Statement stm = dbconn.createStatement(); System.out.print(STATEMENT); stm.execute(SELECT * FROM domains); rs = stm.getResultSet(); rs.next() ; Kontakt k = new Kontakt(rs.getString(2)); d = new Domain(rs.getString(3), tld, k); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } return d; } } RPC Call public class Kis implements EntryPoint { @Override public void onModuleLoad() { DatabaseServiceAsync rpc; rpc = (DatabaseServiceAsync) GWT.create(DatabaseService.class); ServiceDefTarget target = (ServiceDefTarget) rpc; String moduleRelativeURL = GWT.getModuleBaseURL() + DatabaseServiceImpl; target.setServiceEntryPoint(moduleRelativeURL); /* test.add(); RootPanel.get().add(test.vpanel);*/ rpc.getDomains(new AsyncCallbackDomain() {
Re: UIBinder and IE6
I believe Google has begun to transition away from IE6 support, though, I don't think UiBinder is incompatible with IE6 at all. If you read the documentation it explains quite well what doctypes to use. From what I gather, GWT is for eliminating inconsistencies between browsers in a way that the developer doesn't have to worry about whether or not their app will run on IE6/7/8, among other things. On Wed, Mar 31, 2010 at 10:47 PM, michael mich...@michaelvogt.eu wrote: Hello. Sorry for posting the question 3 times, but I got a message from groups that my message could not be posted. Looks like this was not the case. Sorry, Michael On Mar 31, 11:43 pm, michael mich...@michaelvogt.eu wrote: Hello. I would like to use UIBinder to define the layouts for my next application. Problem is, that the client site still use IE6 as their main browser. Since I did not find it explicitly statet in the docs of GWT, I'd like to ask if there are any limitations when using UIBinder regarding IE6 compatibility. Thanks in advance, Michael Vogt -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Which would you rather believe in: A God that never answers you or a society that embraces you? -- 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: Menu Item and MVP
I've been looking into this for a chapter in the new edition of GWT In Action, here's where I'm at. The Google I/O approach to MVP has never sat well with me because, apart from the fact that the interface can get out of hand, it just seems wrong that the interface specifies that the view must, say, have something clickable and not leave the implementation to the view. So what I'm playing about with right now is (for the example you gave). There would be a couple of interfaces HasClose and HasSave which would be along the lines of public interface HasSave { void save(); } There would be a couple of corresponding CloseHandler and SaveHandler classes e.g. class SaveHandler implements ClickHandler { private HasSave presenter; public SaveHandler(HasSave presenter) { this.presenter = presenter; } @Override public void onClick(ClickEvent event) { presenter.save(); } } The presenter looks like this class Presenter implements HasSave, HasClose { View view; public Presenter(View view) { this.view = view; } @Override public void save() { view.setText(Save); } @Override public void close() { view.setText(Close); } } and the view like this class View extends FlowPanel implements HasText { Label label = new Label(); public View() { Presenter presenter = new Presenter(this); add(new Button(Open, new SaveHandler(presenter))); add(new Button(Close, new CloseHandler(presenter))); add(label); } @Override public String getText() { return label.getText(); } @Override public void setText(String text) { label.setText(text); } } in the AppController or onModuleLoad method, you'd just have the line RootPanel.get().add(new View()); Does that make sense? Feel free to ask but I'm still not too far forward with this approach yet. For a tiny project, it's a bit of work (unless you have already written the interfaces and handler classes for some other project) but it does keep everything well organised in larger projects. Ian http://examples.roughian.com On 1 April 2010 00:15, Nathan Wells nwwe...@gmail.com wrote: Thomas, I've heard of your approach before, but I'm not clear on the implementation... are you passing the presenter itself into the view? or are you passing instances of event handlers? The difference seems trivial, but in practice (as I imagine it, anyway) seems large: http://etherpad.com/sIAaiCfuiG Let me know what you think. I would assume the first way is what your referring to in your comment above, which implies that it is a View layer responsibility to deal with HandlerRegistrations and the like. Is that correct? On Mar 31, 8:14 am, Thomas Broyer t.bro...@gmail.com wrote: On Mar 31, 8:07 am, mic mina...@gmail.com wrote: Just sharing some thoughts Would the MenuItem class need to implement HasClickHandler so that when a MenuItem is clicked, the action can be handled in the presenter. At this time, the MenuItem needs an object that implements the Command interface, so the view seems to know about the presenter. I would like to know what others think about this. I've recently migrated from views with many HasXxxHandlers getters to views with a setListener method that the presenter injects into its view. The listener defines callback methods such as save(), close(), italicize(), bold(), delete(), etc. It makes unit tests waaay easier to write (you don't have to mock each HasXxxHandlers, capturing each added XxxHandler, eventually mocking the XxxEvent, etc.) and in your case would make things easier: the Command is an implementation detail of the view. -- 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 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: Menu Item and MVP
That first button should say Save - It's late here :-) -- 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.