Re: Design of a GWT project
Hi, now I know what you mean with dictionary, works perfect thanks. I dont't need two html, like you explained to me earlier, I tried to explain why I thought I would need them. I did like you told me, works great with one page. At the moment I still run a servlet, but with the next update I will change it to a JSP. Thank you very very much. Best regards Jochen On Apr 21, 11:16 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: In your host page add something like this: script type=text/javascript var modules = {start:module-name}; /script You can use it as a Dictionaryhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... your GWT code. From my point of view, I still don't understand, why you have to deal with two different pages. A GWT application is a real client application. It is started, when the host page loads and it is shut down, when you leave the page (e. g. you're going to a different URL). In a well designed GWT application, you should make the registration module a part of your application and send the entered data through an Ajax request to the server in the background. This would prevent you from shutting down your application for registration and start it again after registration is done. The other point is, that JSPs might be easier to handle than servlets for realizing the host page on the server. So use the JSP as your welcome file. Regards Jan Ehrhardt 2010/4/20 Jochen Schnaidt j.schna...@t-online.de to 4) This is clear, that is what the httpservlet does. to 3) I set the servlet as my welcome-file and it does ... nothing. Must I change another XML anywhere? By the way, the only way I found to set a script the way I need it is script/XML and I have not the faintest idea how I should use an XML to decide which module should be loaded. Until yesterday I thought I know enough to handle this challenge but today I am feeling down. Thanks to Jan for helping me. On 20 Apr., 15:04, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: 3. The httpServlet makes anything on the html document It makes the HTML including a script tag containing your configuration. A JSP might be fine too. 4. The html is called It's loaded inside the browser. Regards Jan Ehrhardt 2010/4/20 Jochen Schnaidt j.schna...@t-online.de Okay, I don't understand how this should work... So, you mean: 1. Requesting the application for example 'http://appname.appspot.com/ singnup?asdfghjkl' 2. A httpServlet gets this 3. The httpServlet makes anything on the html document 4. The html is called 5. In the OnModuleLoad this anything will be evaluated 6 According to this evaluation the right module will be loaded. Is this right? On Apr 20, 1:03 pm, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: You can add a property (e. g. a Dictionary) to your host page. Your entry point checks the property and loads the required module. Setting the property is a task, the server has to do. I think, using one host page instead of two different pages with two different URLs might be more efficient. Regards Jan Ehrhardt 2010/4/20 Jochen Schnaidt j.schna...@t-online.de Okay, I read the docs and understand most of it. Is it possiple to describe which sequence should be loaded by the URL? I planed that 'http://appname.appspot.com'istheadministration and 'http://appname.appspot.com/singnup?asdfghjkl' is the signup page for event 'asdfghjkl'. I don't know if it is possible. My next step was to learn about servlet. But for a servlet I need a site to show my data, this is how I came to the 2nd page. I understand it this way, that code splitting mainly works on user events. So I need something like a switch in my onModuleLoad with the different splitpoints in the cases and the URL parameter in the statemant. Is this right? Is it feasible? On Apr 20, 11:17 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote: In GWT 2.0 code splitting was introduced. You can have one big application, that contains both modules. In the standard case you load your application as before. In the registration case you can load a second module and use it. This is much better than having two applications with different entry points. It also allows you, to have some basic infrastructure, that's used by both modules. So you can create a third module. If you design this correct, you'll get an extendable and modularized application, that loads modules if required. That happens all in the same host page, so no page reload. Regards Jan Ehrhardt 2010/4/20 Jochen Schnaidt j.schna...@t-online.de Hi all, I have a question about the design of a GWT project.
Re: Defining a global function in JSNI?
This is what I did to register a JSNI function. http://code.google.com/p/gwt-examples/wiki/project_JSNI http://demogwtjsni.appspot.com/ - demo of it public static native void registerJsni(ToolTipWidget ttw) /*-{ $wnd.showTooltip_id = function(elementId, html) { t...@org.gonevertical.demo.client.tooltipwidget::showTooltip(Ljava/ lang/String;Ljava/lang/String;)(elementId, html); } $wnd.showTooltip_xy = function(x, y, html) { t...@org.gonevertical.demo.client.tooltipwidget::showTooltip(IILjava/ lang/String;)(x, y, html); } $wnd.showTooltip = function(html) { t...@org.gonevertical.demo.client.tooltipwidget::showTooltip(Ljava/ lang/String;)(html); } $wnd.hideTooltip = function() { t...@org.gonevertical.demo.client.tooltipwidget::hideTooltip()(); } }-*/; hope that helps, Brandon On Apr 21, 10:55 pm, markww mar...@gmail.com wrote: Hi, I'm using the youtube player api. The youtube player object lets you add an event listener callback function, by name. I'm running into a problem with this because I don't think I'm defining a global function correctly or GWT is mangling the name or something along those lines. Example: private static native void register() /*-{ $wnd.myGlobalCallback = function(state) { alert(hi!); } var ytplayer = getElementById(youtubeplayer); player.addEventListener(onStateChange, myGlobalCallback); alert(all done!); }-*/; so all other aspects of the player work fine from GWT. The call: player.addEventListener(...); seems to just somehow kill the rest of the script from running, without throwing any sort of errors. It just gets 'stuck' there. The alert() below it will never get called. The page continues operating as normal. Since I need to supply a string literal (the name of the callback function), how would I do that in GWT? 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 athttp://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: History.newItem() -- Documentation Suggestion
History.newItem(x) changes the querystring #[anchor] parameter. I use a change handler and then I fire and event. private void fireChange() { NativeEvent nativeEvent = Document.get().createChangeEvent(); ChangeEvent.fireNativeEvent(nativeEvent, this); } http://code.google.com/p/gwt-examples/source/browse/trunk/gwt_handler_example/src/com/gawkat/gwt/example_handler/client/BoxLeft.java - example of use http://gwtexample.appspot.com/ - demo Hope that helps, Brandon On Apr 21, 6:23 am, euzuro euz...@gmail.com wrote: Hi Team, Just ran into a quirk today with the History class. I was assuming that calling History.newItem(x) or History.newItem(x, true) would *force* a com.google.gwt.event.logical.shared.ValueChangeEvent to be fired. As it turns out, though, if you pass the same token as the current history token, the event does *not* get fired. So I'm not suggesting changing behavior, but maybe it would be good to add a note to the documentation? Erik -- 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 athttp://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: Floating label
I use an absolute panel. Set it to the body, Rootpanel.get().add(absolultePanel); then set its visibility false. When you need it set its x and y and set visilbity to true and to the position you need it at. You can get the position by referencing the parent element that creates the event. I do something similar here - http://demogwtjsni.appspot.com/ http://code.google.com/p/gwt-examples/wiki/project_JSNI - more info, I also use this funciton in my core project. I also have Loading widgets that do this in my MySqlConn example. Not sure if that was what your looking for. http://code.google.com/p/gwt-examples/source/browse/trunk/DemoMySqlConn/src/org/gonevertical/demo/client/LoadingWidget.java Hope that helps, Brandon Donnelson On Apr 21, 4:37 am, Yogesh yogeshrn...@gmail.com wrote: Hi, I want to display a message Loading.. Please wait... when user clicks on any button. I have a label at the top-center of the page. But, when user scolls down on the page, that label is not displayed Hence, I want to implement a floating label that will be displayed at the top of the page irrespective of whether user has scrolled down or is at the top of the page. any ideas? 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 athttp://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 upload / store database
I've the same problem, Have you been lucky? 2010/4/21 KK kkona...@gmail.com: Hi, Currently I cannot get the FileUpload widget to work correctly. I am trying to send and receive an image file from the server to the client side. In order to store an image uploaded by a user in my database. I can do this very easy with Java, but when using GWT it doesn't work the same. I'm just not sure how to get this to work, just tried passing the filename using RPC calls but this didn't work. Any suggestions/example will be very very helpful? -- 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. -- 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 Module not loaded on app engine
If this is what the debugger starts as: http://127.0.0.1:/DemoJSNI.html?gwt.codesvr=127.0.0.1:9997 then http://127.0.0.1:/MyPage.jsp is the location of it. you don't need the gwt.cod... to get it to run. You can change the start page in web.xml Hope that helps, Brandon On Apr 21, 9:32 pm, Vik vik@gmail.com wrote: Hie In my app i have two modules. Module one shows a login popup and module 2 shows a admindashboard build using GWT and embedded into AdminDashBoard.jsp using div. After sucessful login it navigates to module to using: Window.Location.replace(/ui/page/AdminDashBoard.jsp); When i run it from eclipse obviously it loads a blank page and on appending ?gwt.codesvr=127.0.0.1:9997 and reloading url gives me the gwt built page. But on hosted mode this is not happening. I dont see any error in admin logs. I just see a blank page after login . Any advise please Thankx and Regards Vik Founderwww.sakshum.comwww.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.com. For more options, visit this group athttp://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: DevMode stopped working on Linux x64 since 2.0.3
Hi all, Just to let anyone know who stumbles across this thread. I have found out what was causing my DevMode to stop working and not hit my breakpoints. Within my gwt.xml definition file I was using the 'xs' linker as my script can be deployed on multiple websites. If you specify this linker DevMode does debug successfully. So if you comment out the linker whilst you are debugging and remember to uncomment the linker for deployment - everything should be hunky dory! Eggsy On Apr 1, 12:49 pm, eggsy84 jimbob...@hotmail.com wrote: Hi all Has anyone noticed that GWT has stopped working in DevMode since GWT 2.0.3? I have previously managed to get debugging working: http://groups.google.com/group/google-web-toolkit/browse_thread/threa... But after updating to the latest version of GWT I am no longer hitting my breakpoints? Also I have noticed that if I uninstall the GWT plugin in from Firefox 3.5.8 then attempt to hit the debug URL again it now doesn't ask me to install the plugin? Has something changed with the GWT plugin for Firefox? My environment is a Ubuntu 9.10 x64 machine As far as I am aware other than upgrading GWT I haven't changed anything else? I have made that that I have recompiled my GWT code also. Any ideas as to what I am doing wrong? Many thanks in advance, Eggsy -- 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 Hyperlink history
Hi ! I'm working gwt2.0 UIBinder. I tried to maintain history in my application.History.newItem(String,boolean) is working fine for buttons that is in ui.xml file.but it seems that History.newItem(String,boolean) is not working for hyperlink that is in ui.xml(Am i right?).history token is not displayed in url(but only #) when i click hyperlink. Note:back button works but i need to press it twice. could any one tell me how to overcome? -- 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.
Uncaught exception: java.lang.RuntimeException: Failed to invoke native method
Hi Developers, I get this exception while parsing some xform documents. I am tracing for the cause of the problem, and a solution to it. Your help is welcome. Below is the full stack trace. -- Uncaught exception: java.lang.RuntimeException: Failed to invoke native method: @com.google.gwt.xml.client.impl.XMLParserImpl::getChildNodes(Lcom/ google/gwt/core/client/JavaScriptObject;) with 1 arguments. at com.google.gwt.dev.shell.moz.LowLevelMoz.invoke(LowLevelMoz.java:132) at com.google.gwt.dev.shell.moz.ModuleSpaceMoz.doInvoke(ModuleSpaceMoz.java: 98) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 447) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 228) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.xml.client.impl.XMLParserImpl.getChildNodes(XMLParserImpl.java) at com.google.gwt.xml.client.impl.NodeImpl.getChildNodes(NodeImpl.java: 101) at org.purc.purcforms.client.xpath.XPathLocationStep.getResult(XPathLocationStep.java: 115) at org.purc.purcforms.client.xpath.XPathExpression.init(XPathExpression.java: 92) at org.purc.purcforms.client.util.LanguageUtil.translate(LanguageUtil.java: 114) at org.openxdata.server.admin.client.view.StudyView $3.execute(StudyView.java:532) at com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.java: 311) at com.google.gwt.user.client.CommandExecutor $2.run(CommandExecutor.java:206) at com.google.gwt.user.client.Timer.fireImpl(Timer.java:164) at com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:150) at com.google.gwt.user.client.Timer.fire(Timer.java:142) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.moz.MethodDispatch.invoke(MethodDispatch.java: 80) at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method) at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1428) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java: 2840) at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) -- Regards, Simon. -- 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: DevMode stopped working on Linux x64 since 2.0.3
Nice sharing, Eggsy. Simon. On Apr 22, 11:40 am, eggsy84 jimbob...@hotmail.com wrote: Hi all, Just to let anyone know who stumbles across this thread. I have found out what was causing my DevMode to stop working and not hit my breakpoints. Within my gwt.xml definition file I was using the 'xs' linker as my script can be deployed on multiple websites. If you specify this linker DevMode does debug successfully. So if you comment out the linker whilst you are debugging and remember to uncomment the linker for deployment - everything should be hunky dory! Eggsy On Apr 1, 12:49 pm, eggsy84 jimbob...@hotmail.com wrote: Hi all Has anyone noticed that GWT has stopped working in DevMode since GWT 2.0.3? I have previously managed to get debugging working: http://groups.google.com/group/google-web-toolkit/browse_thread/threa... But after updating to the latest version of GWT I am no longer hitting my breakpoints? Also I have noticed that if I uninstall the GWT plugin in from Firefox 3.5.8 then attempt to hit the debug URL again it now doesn't ask me to install the plugin? Has something changed with the GWT plugin for Firefox? My environment is a Ubuntu 9.10 x64 machine As far as I am aware other than upgrading GWT I haven't changed anything else? I have made that that I have recompiled my GWT code also. Any ideas as to what I am doing wrong? Many thanks in advance, Eggsy -- 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 athttp://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 Module not loaded on app engine
Hie Yes I know i dont need it when deploying to demoApp. The problem is my page is not rendering when i deploy the app to appengine. Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Apr 22, 2010 at 1:29 PM, branflake2267 branflake2...@gmail.comwrote: If this is what the debugger starts as: http://127.0.0.1:/DemoJSNI.html?gwt.codesvr=127.0.0.1:9997 then http://127.0.0.1:/MyPage.jsp is the location of it. you don't need the gwt.cod... to get it to run. You can change the start page in web.xml Hope that helps, Brandon On Apr 21, 9:32 pm, Vik vik@gmail.com wrote: Hie In my app i have two modules. Module one shows a login popup and module 2 shows a admindashboard build using GWT and embedded into AdminDashBoard.jsp using div. After sucessful login it navigates to module to using: Window.Location.replace(/ui/page/AdminDashBoard.jsp); When i run it from eclipse obviously it loads a blank page and on appending ?gwt.codesvr=127.0.0.1:9997 and reloading url gives me the gwt built page. But on hosted mode this is not happening. I dont see any error in admin logs. I just see a blank page after login . Any advise please Thankx and Regards Vik Founderwww.sakshum.comwww.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-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 athttp:// 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: Connecting to embedded Jetty from other host than localhost
Thank you very much, somhow I could not find any discussion or issue about this. Viliam On 21. Apr, 20:40 h., Tercio terciofi...@gmail.com wrote: add -bindAddress YOUR_IP to the application arguments when running it from eclipse. More info:http://code.google.com/p/google-web-toolkit/issues/detail?id=4322 Regards, Tercio On Apr 21, 9:55 am, Viliam Durina viliam.dur...@gmail.com wrote: If I run my application in the embedded Jetty container, I'm not able to connect to it from any other host than localhost. Even if I use my own IP address on localhost, the connection is refused. If I any other application on the same port, it works. I could not find any setting disabling this, or even any other discussion complaining about this. I'm pretty sure I don't have any firewall installed (other applications working). Do you have any tip about this? Thanks, Viliam -- 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 athttp://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 athttp://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: Json cross-domain examle (JS error on IE 8.0 - Object doesn't support this action)
Hi there, I have now made a blog post on using the JsonpRequestBuilder please see: http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays-with-jsonprequestbuilder/ On Apr 21, 10:11 am, nasionalem sakarya.me...@gmail.com wrote: I am also looking JsonpRequestBuilder class which you send me.. :) I will let you know If I can do it. I am looking forward your reply Thanks all for your helping -- 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 athttp://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: Cross site requests documentation
Hi all, I have made a quick blog post on making use of the new JsonpRequestBuilder object and object overlays. Please see: http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays-with-jsonprequestbuilder/ On Mar 18, 10:31 am, eggsy84 jimbob...@hotmail.com wrote: Hi GWT Team, I have just spotted the Cross site tutorial on the GWT docs. http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html Within that document it shows a way of getting data from a remote sever using native JSONP methods. It might be worth updating the documentation to show developers how to use the JsonpRequestBuilder object and make calls that way? Just a thought Eggsy -- 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 Hyperlink history
Thanks folks Any way i got the answer... regards, raj -- 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: Hosted mode [WARN] 404 - GET /gwt/standard/standard.css (127.0.0.1) 1411 bytes
Hello again! It turned out the chrome adblock extension was the culprit. I realized this when other people's GWT examples didn't load either. After disabling this plugin, everything was back to its old fully functional self again. Hope this is useful for others. On 20 Apr, 14:56, Oliver Uvman embry...@gmail.com wrote: Hello! After not using GWT for a while, I return to my projects. None of them working. At first I spent some time looking around for the possible cause, thought my web.xml was bad and replaced it with a known working copy, but to no avail. After this I tried simply starting a new web app project, without app engine, and tried launching it without making any changes to it. No go. Same problem as before. Here is the log file from console (debugged as web project, log level all):http://pastebin.com/9s78eVS8 I do not know how much of that is useful, but note especially the lines 1098 and 1108. -- 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 athttp://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 add a scrollbar to a SuggestBox popup?
unfortunately not, as the popup is not exposed to the outside world: code private final PopupPanel suggestionPopup; /code On Mar 19, 9:10 pm, Paul Stockley pstockl...@gmail.com wrote: Can't you justadda scrollPanel as the first child of thePopup? -- 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.
RPC Obfuscation
dear all! i am preparing for going online, so i started to try out the RPC obfuscation mechanism: inherits name=com.google.gwt.user.RemoteServiceObfuscateTypeNames / and to my surprise (or not, if you stop to read the module name) only classnames get obfuscated but not method names (from the service class). so, is there any way to obfuscate also the method names? and more over, there are some few service calls that i would like to completely obfuscate so it is not so easy to read the transferred data. is there any way to tell GWT to obfuscate a whole service call response? i started with the idea to obfuscate the serialized response in RemoteServiceServlet#onAfterResponseSerialized, but how do i implement the client side counterpart of RemoteServiceServlet#onBeforeRequestDeserialized?? the other option is to have a service call that returns only an obfuscated string, but then i would have to do all the serialization/ deserialization for the objects to use by myself which is just reinventing the wheel, but wait, unless i could explicetely call the serialization/deserialization methods from gwt... mmm.. interesting... i will try it now... but, it would be really great to have such an option out of the box! thanks for reading Michael -- 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: Defining a global function in JSNI?
On Thu, Apr 22, 2010 at 1:55 AM, markww mar...@gmail.com wrote: var ytplayer = getElementById(youtubeplayer); player.addEventListener(onStateChange, myGlobalCallback); looks like you should make this ytplayer.addEventListener -- Chris Conroy Software Engineer Google, Atlanta -- 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.
IsTextBox/widget-specific interfaces
Hi, I've been doing GWT MVP development lately and, while the HasText, HasValueT, etc. interfaces are nice and facilitate mocking/stubbing out views, I'm wondering why GWT doesn't go further and add per-widget interfaces. For example, if I have a TextBox that I want to both listen for clicks and set its value, I need 2 methods in my view interface: HasText and HasClickHandlers. And in the view implementation, they both return the same TextBox field. Each time I want a new HasXxx feature of a widget, I need yet another boilerplate method in my view interface and implementation. Also, there are methods in widgets that are not in HasXxx interfaces, e.g. Hyperlink.setTargetHistoryToken, and many more widget-specific methods don't end up in HasXxx interfaces. Instead, if there was a single IsTextBox interface, that looked like: public interface IsTextBox extends IsTextBoxBase, HasDirection { int getMaxLength(); int getVisibleLength(); void setMaxLength(int length); void setVisibleLength(int length); } All TextBox would have to do is add implements IsTextBox and now the view interfaces can return IsTextBox just once and let the presenter do any number of things to it in a nice decoupled-via-an-interface manner. I'd be willing to submit a patch that adds these interfaces, or at least the ones I've needed so far. I'm doing other fancy things (specifically generating my entire view interface, view impl, and view stub from just the ui.xml file) that would be made easier if widgets had their own IsXxx interfaces. Thanks, Stephen -- 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: JSNI: No-body native methods to refer to existing methods in JavaScript object
On Apr 19, 5:48 pm, Thomas Broyer t.bro...@gmail.com wrote: On Apr 19, 11:34 am,ReinierKipreinier@gmail.com wrote: Hi, I am trying to map existing JavaScript 'classes' in the document to client-side Java classes. Take this example JS 'class': Alerter = function() { this.alert = function(msg) { alert(msg); }; }; Mapping this to a client-side Java class currently means: class Alerter extends JavaScriptObject { public static final native Alerter create() /*-{ return { impl: new Alerter() }; }-*/ You have to write $wnd.Alerter() (unless you only have to support the xs linker), and why storing it in a property (impl) of an otherwise useless object? public final native void alert(String msg) { this.impl.alert(msg); // or for repeatability: return this.impl.alert.apply(this, arguments); } } I feel it should be possible to do this in Java: (...) public static final native Alerter create() /*-{ return new Alerter();}-*/ public final native void alert(String msg); (...) This directly maps the Java declaration to the JavaScript implementation. Apart from the direct mapping, this is already possible (using native void alert(String msg) /*-{ this.alert(msg); }-*/; ) AFAICT, this direct mapping was part of the original design but no- one took the time to implement it, as it's just syntactic sugar (and the Google Plugin for Eclipse will now autocomplete it for you!) See:http://code.google.com/p/gwt-api-interop/which I believe heavily inspired the current design of JSOs in GWT proper. -- 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 athttp://groups.google.com/group/google-web-toolkit?hl=en. Thanks for your reply. The { impl: * } was just out of fear the javascript object's alert() would interfere with Java's alert(). I assume Java's alert() is obfuscated anyway and is accessible through th...@class::method etc... -- 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: History.newItem() -- Documentation Suggestion
Right. The problem is that I was calling newItem(x, true) where x == History.getToken() Again, this is not a bug report -- seems like a reasonable enough behaviour. My point was just that the documentation doesn't specifically mention this, is all. On Apr 22, 3:45 am, branflake2267 branflake2...@gmail.com wrote: History.newItem(x) changes the querystring #[anchor] parameter. I use a change handler and then I fire and event. private void fireChange() { NativeEvent nativeEvent = Document.get().createChangeEvent(); ChangeEvent.fireNativeEvent(nativeEvent, this); } http://code.google.com/p/gwt-examples/source/browse/trunk/gwt_handler... - example of use http://gwtexample.appspot.com/- demo Hope that helps, Brandon On Apr 21, 6:23 am, euzuro euz...@gmail.com wrote: Hi Team, Just ran into a quirk today with the History class. I was assuming that calling History.newItem(x) or History.newItem(x, true) would *force* a com.google.gwt.event.logical.shared.ValueChangeEvent to be fired. As it turns out, though, if you pass the same token as the current history token, the event does *not* get fired. So I'm not suggesting changing behavior, but maybe it would be good to add a note to the documentation? Erik -- 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 athttp://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 athttp://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 application parameters
Hi, It is the other way. Only the client know whether demo is right or not. The client has to tell the server whether demo-mode applies or not. I have the impression you think the server runs in either mode (demo or not). your server will potentially run in both modes at the same time. A server may have lots of connections. Stefan Bachert http://gwtworld.de On 21 Apr., 20:53, sunny...@gmail.com sunny...@gmail.com wrote: Thanks for the reply. Having read through the deferred binding I can see how it can be useful on the client side to determine whether the normal/demo is loaded. However, whats bothering me more is how to determine this on the server side. I guess this is not exactly specific to GWT. Say I have my application compiled and deployed from a WAR file. What approach can I take to tell the server side code to use the demo workflow and logic? If I can do this, then the client can also determine what mode to run in using a simple GWT-RPC call. Sunny On Apr 22, 4:57 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, you can use deferred binding to compile different instances for your webapp. Help facility behaves like an other browser or locale More onhttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodin... Stefan Bacherthttp://gwtworld.de On 21 Apr., 14:32, sunny...@gmail.com sunny...@gmail.com wrote: Hi all, After a little guidance on this topic - not quite sure what approach should/would work. In the GWT app I'm developing, I'd like both the server/client side to have a demo mode that enables certain help features and enforce certain beginner workflows. I know I can get the parameters of the URL using GWT, but the user can simply remove the demo parameter to disable it (www.../index.html? demo=1), so I'm after some way to enforce this at the application level. At the same time, I don't want to be having a boolean flag in the code/HTML and recompiling/deploying it each time. Whats the best way to implement something like this so that the enable/ disable switch can be easily configured without recompiling/deploying? (Can an argument be passed to the server side by the application server when it starts? Can there be a config file outside of the WAR file?) thanks Sunny -- 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 athttp://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 athttp://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 athttp://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: Layouting pages based on tables vs CSS layouts
Hi, I could not agree with you, that it is necessary to use (indirectly) tables. It depends on you which widgets you are using. And quite frankly, I avoid using table based widgets. (table width 100% crash on msie8) I prefer widgets based on absolute position. ..Layout..Classes for example. However, you must deeply understand css and its layout when NOT using tables. Stefan Bachert http://gwtworld.de On 21 Apr., 22:47, Sven sven.ti...@googlemail.com wrote: Dear all, if I got it right, layouts based on GWT widgets normally end up in huge table structures. While it works pretty fine for me, I see many people arguing that nowdays you should avoid the use of tables for layouting but build your layouts based on css formatting, such as onhttp://webdesign.about.com/od/layout/a/aa02a.htm Up to GWT 1.6, my way of layouting GWT applications was to program them using the various panels and widgets in the Java source code and I did not spend too much on CSS. Now that I can build the components on XML/Java source code, I wonder what is the better way: building up the main layout using XHTML and CSS and just adding the interactive widgets into this kind of frame or to continue using GWT panels and layouts to create applications and using CSS for decoration only. Any opinions out there? Sven -- 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 athttp://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: launching in a new tab/broswer
Hi, you can create a new window. (Window.open) But as far as I remember, you can not control whether the new browser window is a further tab or a separate window. Stefan Bachert http://gwtworld.de On 21 Apr., 20:10, Vik vik@gmail.com wrote: Hie I am using menu like: MenuBar aboutMenu = new MenuBar(true); aboutMenu.addItem(Dreamweavers..., new Command(){ @Override public void execute() { Window.Location.replace(http://sakshum.blogspot.com;); } }); But this opens the link at the same place. how to open in a new tab? Also do i have to write this much code for each menu item i create? Thankx and Regards Vik Founderwww.sakshum.comwww.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.com. For more options, visit this group athttp://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 override pseudo gwt standars styles using ClientBundle
Hi, the good new is: you can. Just remove the entry for the standard theme in module xml. You need to apply @external to all classes. I am doing such a thing and it works. Stefan Bachert http://gwtworld.de On 24 Feb., 11:47, shahid shahidza...@gmail.com wrote: Is there a way to override gwt standard styles for build-in widgets. For example if I wanted to override .gwt-ToggleButton-down-hovering and .gwt-ToggleButton-down styles, how do I do it using the ClientBundle ? -- 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: launching in a new tab/broswer
for ur second point ...u can create your custom command implement all the logic in one execute block On Fri, Apr 23, 2010 at 1:04 AM, Stefan Bachert stefanbach...@yahoo.dewrote: Hi, you can create a new window. (Window.open) But as far as I remember, you can not control whether the new browser window is a further tab or a separate window. Stefan Bachert http://gwtworld.de On 21 Apr., 20:10, Vik vik@gmail.com wrote: Hie I am using menu like: MenuBar aboutMenu = new MenuBar(true); aboutMenu.addItem(Dreamweavers..., new Command(){ @Override public void execute() { Window.Location.replace(http://sakshum.blogspot.com;); } }); But this opens the link at the same place. how to open in a new tab? Also do i have to write this much code for each menu item i create? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.comhttp://founderwww.sakshum.comwww.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-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 athttp:// 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: HTML5 Video in Mobile Safari
The same video plays fine on mobile safari when served up from a plain html page, just not when the html code is generated by my GWT widget. On Apr 16, 11:07 am, DCYorke d...@yorkemail.org wrote: I do know that if the video is too large for iPhone, you'll see the slashed play button. On Apr 13, 10:44 am, KevMo kevinps...@gmail.com wrote: 'm trying to code a site in GWT that plays videos with HTML5. Everything works great on the desktop, but mobile Safari on both the iPhone andiPaddo not play the video. I can play a video using Video for Everybody. I've even copied the code to my own plain HTML page, and it works flawlessly. If I serve that same code via a GWT widget, mobile safari will not play the video. On the iPhone I see a gray box with a prohibitory sign around the play button, and on theiPadit shows up as a black box. I've made sure my doctype is !DOCTYPE html, but I don't know where else to start debugging. Perhaps it it because the code is injected via javascript? Any pointers on where to start looking would be greatly appreciated. Here is the exact code I am using for the video: !-- Video For Everybody by Kroc Camen. see camendesign.com/code/ video_for_everybody for documented code === -- video width=640 height=360 poster=poster.jpg controls autoplay source src=http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4; type=video/mp4/source source src=http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv; type=video/ogg/source !--[if gt IE 6] object width=640 height=375 classid=clsid:02BF25D5-8C17-4B23- BC80-D3488ABDDC6B! [endif]--!--[if !IE]!-- object width=640 height=375 type=video/quicktime data=http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4; !--![endif]-- param name=src value=http://clips.vorwaerts-gmbh.de/ big_buck_bunny.mp4 / param name=autoplay value=true / param name=showlogo value=false / object width=640 height=384 type=application/x-shockwave- flash data=player.swf? autostart=trueamp;image=poster.jpgamp;file=http://clips.vorwaerts- gmbh.de/big_buck_bunny.mp4 param name=movie value=player.swf? autostart=trueamp;image=poster.jpgamp;file=http://clips.vorwaerts- gmbh.de/big_buck_bunny.mp4 / !-- fallback image -- img src=poster.jpg width=640 height=360 alt=Big Buck Bunny title=No video playback capabilities, please download the video below / /object!--[if gt IE 6]!-- /object!--![endif]-- /video -- 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 athttp://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: Compilation Error
I am getting following error in GWT development console when I try to use Run Configuration from Eclipse. 00:00:20.360 [TRACE] Finding entry point classes 00:00:20.360 [ERROR] Unable to find type 'org.drools.guvnor.client.JBRMSEntryPoint' 00:00:20.407 [ERROR] Hint: Check that the type name 'org.drools.guvnor.client.JBRMSEntryPoint' is really what you meant 00:00:20.407 [ERROR] Hint: Check that your classpath includes all required source roots 00:00:20.407 [ERROR] Failed to load module 'org.drools.guvnor.Guvnor' from user agent 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1059 Safari/ 532.5' at localhost:2247 I tried workaround listed on following web link (Unable to find type 'com.foo.client.MyApp') without any success. Any ideas on resolution will be helpful. http://code.google.com/webtoolkit/doc/1.6/FAQ_Troubleshooting.html On Apr 21, 10:36 am, Rajeev Dayal rda...@google.com wrote: Great, glad it is working. On Wed, Apr 21, 2010 at 9:41 AM, rxm0203 rxm0...@gmail.com wrote: Here is the update. I removed the mentioned jar file from Drools- Guvnor's dependent projects class path. Now, I am able to compile successfully. Thanks for your help. On Apr 20, 6:51 pm, rxm0203 rxm0...@gmail.com wrote: I removed the mentioned jar file. I am still getting samecompilationerror. Which is second entry should I remove? On Apr 20, 12:08 pm, Rajeev Dayal rda...@google.com wrote: These two entries look to be problematic: classpathentry kind=var path=M2_REPO/org/apache/jasper/ springsource/ com.springsource.org.apache.jasper.org.eclipse.jdt.springsource/ 6.0.20.S2-r5956/ com.springsource.org.apache.jasper.org.eclipse.jdt.springsource-6.0.20.S2- r5956.jar/ Are these jars required? Can you remove them? On Mon, Apr 19, 2010 at 2:49 PM, rxm0203 rxm0...@gmail.com wrote: Here are the contents of .classpath file. ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src output=target/test-classes path=src/ test/java/ classpathentry excluding=**/*.java including=** kind=src output=target/test-classes path=src/test/resources/ classpathentry including=**/*.java kind=src path=src/main/java/ classpathentry excluding=**/*.java kind=src path=src/main/ resources/ classpathentry kind=var path=M2_REPO/javax/activation/activation/ 1.1/activation-1.1.jar/ classpathentry kind=var path=M2_REPO/javax/ejb/ejb-api/3.0/ejb- api-3.0.jar/ classpathentry kind=var path=M2_REPO/javax/el/el-api/1.2/el- api-1.2.jar/ classpathentry kind=var path=M2_REPO/javax/el/el-ri/1.2/el- ri-1.2.jar/ classpathentry kind=var path=M2_REPO/javax/xml/bind/jaxb-api/2.1/ jaxb-api-2.1.jar/ classpathentry kind=var path=M2_REPO/javax/jcr/jcr/1.0/ jcr-1.0.jar/ classpathentry kind=var path=M2_REPO/javax/faces/jsf-api/1.2/jsf- api-1.2.jar/ classpathentry kind=var path=M2_REPO/javax/servlet/jsp/jsp-api/ 2.1/jsp-api-2.1.jar/ classpathentry kind=var path=M2_REPO/javax/transaction/jta/1.1/ jta-1.1.jar/ classpathentry kind=var path=M2_REPO/javax/persistence/ persistence-api/1.0/persistence-api-1.0.jar/ classpathentry kind=var path=M2_REPO/javax/servlet/servlet-api/ 2.3/servlet-api-2.3.jar/ classpathentry kind=var path=M2_REPO/javax/xml/stream/stax-api/ 1.0-2/stax-api-1.0-2.jar/ classpathentry kind=var path=M2_REPO/antlr/antlr/2.7.6/ antlr-2.7.6.jar/ classpathentry kind=var path=M2_REPO/org/antlr/antlr-runtime/ 3.1.3/antlr-runtime-3.1.3.jar/ classpathentry kind=var path=M2_REPO/asm/asm/1.5.3/asm-1.5.3.jar/ classpathentry kind=var path=M2_REPO/asm/asm-attrs/1.5.3/asm- attrs-1.5.3.jar/ classpathentry kind=var path=M2_REPO/avalon-framework/avalon- framework/4.1.3/avalon-framework-4.1.3.jar/ classpathentry kind=var path=M2_REPO/bouncycastle/bcmail- jdk14/138/bcmail-jdk14-138.jar/ classpathentry kind=var path=M2_REPO/bouncycastle/bcprov- jdk14/138/bcprov-jdk14-138.jar/ classpathentry kind=var path=M2_REPO/cglib/cglib/2.1_3/ cglib-2.1_3.jar/ classpathentry kind=var path=M2_REPO/org/cobogw/gwt/cobogw/1.0/ cobogw-1.0.jar/ classpathentry kind=var path=M2_REPO/org/apache/jasper/ springsource/ com.springsource.org.apache.jasper.org.eclipse.jdt.springsource/ 6.0.20.S2-r5956/ com.springsource.org.apache.jasper.org.eclipse.jdt.springsource-6.0.20.S2- r5956.jar/ classpathentry kind=var path=M2_REPO/commons-codec/commons-codec/ 1.2/commons-codec-1.2.jar/ classpathentry kind=var
Serialization Advice
I am trying to implement a very simple AsyncCallback RPC system, and I believe I have 99% of it correct. I have the UserService and UserServiceAsync on the client side, and the UserServiceImpl on the server side. Through debugging, it appears that the only current issue is the error message I get when the server tries to respond with a list of Users: Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.gwt.ca.client.model.User' was not included in the set of types which can be serialized by this... However, I am not doing anything crazy in the User model. The model is as follows: package com.gwt.ca.client.model; import com.google.gwt.user.client.rpc.IsSerializable; public class User implements IsSerializable { private Integer id = -1; private String course = null; private String title = null; private String date = null; private String book = null; ... I have setter and getter methods for all of those variables and a constructor. Why would this not be serializable, and what is the solution to fixing this? 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: Serialization Advice
0 arg constructor? Return value of the RPC uses generics ala ListUser? All I can think of, you might also look in the rpc log file which is sometimes slightly more helpful. If you can't figure out, post the UserService and UserServiceAsync calls and maybe the constructors as well. BTW no need to use Integer, can use int, and IsSerializable can just be java.io.Serializable now. On Apr 22, 6:09 pm, Adam35413 adam.ham...@gmail.com wrote: I am trying to implement a very simple AsyncCallback RPC system, and I believe I have 99% of it correct. I have the UserService and UserServiceAsync on the client side, and the UserServiceImpl on the server side. Through debugging, it appears that the only current issue is the error message I get when the server tries to respond with a list of Users: Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.gwt.ca.client.model.User' was not included in the set of types which can be serialized by this... However, I am not doing anything crazy in the User model. The model is as follows: package com.gwt.ca.client.model; import com.google.gwt.user.client.rpc.IsSerializable; public class User implements IsSerializable { private Integer id = -1; private String course = null; private String title = null; private String date = null; private String book = null; ... I have setter and getter methods for all of those variables and a constructor. Why would this not be serializable, and what is the solution to fixing this? 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 athttp://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: Serialization Advice
So it appears that the issue is User did not have a 0 argument constructor. I removed the constructor and everything appears to be working. I guess I will just have to set all of the members manually with the setters. Not a problem, just several more lines of code. Thanks! On Apr 22, 8:24 pm, kozura koz...@gmail.com wrote: 0 arg constructor? Return value of the RPC uses generics ala ListUser? All I can think of, you might also look in the rpc log file which is sometimes slightly more helpful. If you can't figure out, post the UserService and UserServiceAsync calls and maybe the constructors as well. BTW no need to use Integer, can use int, and IsSerializable can just be java.io.Serializable now. On Apr 22, 6:09 pm, Adam35413 adam.ham...@gmail.com wrote: I am trying to implement a very simple AsyncCallback RPC system, and I believe I have 99% of it correct. I have the UserService and UserServiceAsync on the client side, and the UserServiceImpl on the server side. Through debugging, it appears that the only current issue is the error message I get when the server tries to respond with a list of Users: Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.gwt.ca.client.model.User' was not included in the set of types which can be serialized by this... However, I am not doing anything crazy in the User model. The model is as follows: package com.gwt.ca.client.model; import com.google.gwt.user.client.rpc.IsSerializable; public class User implements IsSerializable { private Integer id = -1; private String course = null; private String title = null; private String date = null; private String book = null; ... I have setter and getter methods for all of those variables and a constructor. Why would this not be serializable, and what is the solution to fixing this? 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 athttp://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 athttp://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 Hyperlink history
Well, what was the answer? On Thu, Apr 22, 2010 at 9:02 AM, raj raj.cowbo...@gmail.com wrote: Thanks folks Any way i got the answer... regards, raj -- 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: Serialization Advice
You can still keep your multi-argument constructor, you just also must have a zero arg. On Apr 22, 7:53 pm, Adam35413 adam.ham...@gmail.com wrote: So it appears that the issue is User did not have a 0 argument constructor. I removed the constructor and everything appears to be working. I guess I will just have to set all of the members manually with the setters. Not a problem, just several more lines of code. Thanks! On Apr 22, 8:24 pm, kozura koz...@gmail.com wrote: 0 arg constructor? Return value of the RPC uses generics ala ListUser? All I can think of, you might also look in the rpc log file which is sometimes slightly more helpful. If you can't figure out, post the UserService and UserServiceAsync calls and maybe the constructors as well. BTW no need to use Integer, can use int, and IsSerializable can just be java.io.Serializable now. On Apr 22, 6:09 pm, Adam35413 adam.ham...@gmail.com wrote: I am trying to implement a very simple AsyncCallback RPC system, and I believe I have 99% of it correct. I have the UserService and UserServiceAsync on the client side, and the UserServiceImpl on the server side. Through debugging, it appears that the only current issue is the error message I get when the server tries to respond with a list of Users: Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.gwt.ca.client.model.User' was not included in the set of types which can be serialized by this... However, I am not doing anything crazy in the User model. The model is as follows: package com.gwt.ca.client.model; import com.google.gwt.user.client.rpc.IsSerializable; public class User implements IsSerializable { private Integer id = -1; private String course = null; private String title = null; private String date = null; private String book = null; ... I have setter and getter methods for all of those variables and a constructor. Why would this not be serializable, and what is the solution to fixing this? 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 athttp://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 athttp://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 athttp://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 application parameters
Thanks for the replies so far guys. To clarify, I'm after the scenario where the server is fired up in one mode or the other, and anyone who accesses the site will be using that mode - there won't be simultaneous use of both modes. The difference in the client between demo/normal modes is quite minor, and I believe deferred binding would be an overkill compared to a couple of if statements. Again, the big difference in functionality is in the server side (re the original concept, this is a system that emails generated reports - in demo mode, the server sends all emails generated by the logged in user to an email address that is entered at login. In normal mode, the user is not asked for an email address at login, and emails are sent to predetermined addresses). All this functionality has already been implemented: 1) User goes to web app URL 2) Client fires GWT-RPC to determine from server whether server is in demo mode If server is in demo mode: 3a) Login screen shows an extra field to ask for an email address 4a) For all emailing operations done by that user, server sends emails to the user-entered email address from 3a If server is in normal mode: 3b) Login only shows the username and password fields 4b) Emailing operations are sent to pre-determined addresses Re web.xml - after reading that page, I guess that should do the trick, but would require manual modification to the web.xml file each time. Is there a way to achieve this configurability outside of the WAR file? thanks Sunny On Apr 23, 5:20 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, It is the other way. Only the client know whether demo is right or not. The client has to tell the server whether demo-mode applies or not. I have the impression you think the server runs in either mode (demo or not). your server will potentially run in both modes at the same time. A server may have lots of connections. Stefan Bacherthttp://gwtworld.de On 21 Apr., 20:53, sunny...@gmail.com sunny...@gmail.com wrote: Thanks for the reply. Having read through the deferred binding I can see how it can be useful on the client side to determine whether the normal/demo is loaded. However, whats bothering me more is how to determine this on the server side. I guess this is not exactly specific to GWT. Say I have my application compiled and deployed from a WAR file. What approach can I take to tell the server side code to use the demo workflow and logic? If I can do this, then the client can also determine what mode to run in using a simple GWT-RPC call. Sunny On Apr 22, 4:57 am, Stefan Bachert stefanbach...@yahoo.de wrote: Hi, you can use deferred binding to compile different instances for your webapp. Help facility behaves like an other browser or locale More onhttp://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodin... Stefan Bacherthttp://gwtworld.de On 21 Apr., 14:32, sunny...@gmail.com sunny...@gmail.com wrote: Hi all, After a little guidance on this topic - not quite sure what approach should/would work. In the GWT app I'm developing, I'd like both the server/client side to have a demo mode that enables certain help features and enforce certain beginner workflows. I know I can get the parameters of the URL using GWT, but the user can simply remove the demo parameter to disable it (www.../index.html? demo=1), so I'm after some way to enforce this at the application level. At the same time, I don't want to be having a boolean flag in the code/HTML and recompiling/deploying it each time. Whats the best way to implement something like this so that the enable/ disable switch can be easily configured without recompiling/deploying? (Can an argument be passed to the server side by the application server when it starts? Can there be a config file outside of the WAR file?) thanks Sunny -- 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 athttp://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 athttp://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
[gwt-contrib] Re: MutableArray and ImmutableArray JSNI implementation. (issue363801)
Ping? On 2010/04/19 19:48:53, rchandia wrote: http://gwt-code-reviews.appspot.com/363801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: MutableArray and ImmutableArray JSNI implementation. (issue363801)
LGTM http://gwt-code-reviews.appspot.com/363801/diff/1/3 File bikeshed/src/com/google/gwt/collections/MutableArray.java (right): http://gwt-code-reviews.appspot.com/363801/diff/1/3#newcode118 bikeshed/src/com/google/gwt/collections/MutableArray.java:118: int oldLen = elems.length; Why was the TODO removed? http://gwt-code-reviews.appspot.com/363801/diff/1/4 File bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/ImmutableArrayImpl.java (right): http://gwt-code-reviews.appspot.com/363801/diff/1/4#newcode21 bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/ImmutableArrayImpl.java:21: * The standard byte code implementation of an immutable array. byte code - JSNI? http://gwt-code-reviews.appspot.com/363801/diff/1/5 File bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java (right): http://gwt-code-reviews.appspot.com/363801/diff/1/5#newcode53 bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:53: * Creates an immutable array based on this one. Also marks this object as read-only. line length http://gwt-code-reviews.appspot.com/363801/diff/1/5#newcode114 bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:114: * Changes the array size. If {...@code newSize} is less than the current size, the array is line length http://gwt-code-reviews.appspot.com/363801/diff/1/5#newcode196 bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:196: * Changes the array size. If {...@code newSize} is less than the current size, the array is line length http://gwt-code-reviews.appspot.com/363801/diff/1/7 File bikeshed/test/com/google/gwt/collections/CollectionsServerSideTestSuite.java (right): http://gwt-code-reviews.appspot.com/363801/diff/1/7#newcode26 bikeshed/test/com/google/gwt/collections/CollectionsServerSideTestSuite.java:26: TestSuite suite = new TestSuite(All Gwt Lightwight collections unit tests); Lightweight (spelling) http://gwt-code-reviews.appspot.com/363801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fixes a bug in SplitLayoutPanel where calling setWidgetMinSize() on the center widget, the last ... (issue378802)
Reviewers: jgw, Description: Fixes a bug in SplitLayoutPanel where calling setWidgetMinSize() on the center widget, the last widget, or a widget that is not a child results in an NPE or IndexOutOfBoundsException. The occured because getAssocatedSplitter() had an off by one bug and didn't check for an idx of -1. This patch asserts that the widget is a child, which is typical of other methods in DockLayoutPanel. In addition, this patch fixes a bug where remove(myWidget) would always remove widget 0 instead of the splitter associated with myWidget because we were getting the idx of myWidget after it was removed, at which point it was -1. We now get the idx before removing the widget. Please review this at http://gwt-code-reviews.appspot.com/378802/show Affected files: M user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java M user/src/com/google/gwt/user/client/ui/SplitLayoutPanel.java M user/test/com/google/gwt/user/client/ui/SplitLayoutPanelTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes a bug in SplitLayoutPanel where calling setWidgetMinSize() on the center widget, the last ... (issue378802)
http://gwt-code-reviews.appspot.com/378802/diff/1/3 File user/src/com/google/gwt/user/client/ui/SplitLayoutPanel.java (right): http://gwt-code-reviews.appspot.com/378802/diff/1/3#newcode251 user/src/com/google/gwt/user/client/ui/SplitLayoutPanel.java:251: assertIsChild(child); This assertion is consistent with the methods in DockLayoutPanel. As is, we already get an NPE, so this isn't much of a breaking change. http://gwt-code-reviews.appspot.com/378802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes a bug in SplitLayoutPanel where calling setWidgetMinSize() on the center widget, the last ... (issue378802)
LGTM http://gwt-code-reviews.appspot.com/378802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Reorganizes styles in bikeshed to use CssResource and ClientBundle. (issue388801)
Reviewers: jlabanca, Description: Reorganizes styles in bikeshed to use CssResource and ClientBundle. Moves all styles in stock and cookbook samples to one place. Removes the hovering boxes we stole from Wave for a slightly flatter look. Please review this at http://gwt-code-reviews.appspot.com/388801/show Affected files: M bikeshed/src/com/google/gwt/bikeshed/list/client/PagingTableListView.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/Cookbook.gwt.xml M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/Cookbook.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/Cookbook.ui.xml M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MailRecipe.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/Recipe.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/ValidationRecipe.java D bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/common.css M bikeshed/src/com/google/gwt/sample/bikeshed/stocks/StocksCommon.gwt.xml M bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/FavoritesWidget.ui.xml M bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/PlayerScoresWidget.ui.xml M bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StockQueryWidget.ui.xml M bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksDesktop.ui.xml M bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksMobile.ui.xml D bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/common.css A bikeshed/src/com/google/gwt/sample/bikeshed/style/Style.gwt.xml A bikeshed/src/com/google/gwt/sample/bikeshed/style/client/Styles.java A bikeshed/src/com/google/gwt/sample/bikeshed/style/client/common.css D bikeshed/war/Cookbook.css M bikeshed/war/Cookbook.html D bikeshed/war/Stocks.css M bikeshed/war/Stocks.html M bikeshed/war/StocksMobile.html -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: MutableArray and ImmutableArray JSNI implementation. (issue363801)
Also removed spaces in blank lines http://gwt-code-reviews.appspot.com/363801/diff/1/3 File bikeshed/src/com/google/gwt/collections/MutableArray.java (right): http://gwt-code-reviews.appspot.com/363801/diff/1/3#newcode118 bikeshed/src/com/google/gwt/collections/MutableArray.java:118: int oldLen = elems.length; On 2010/04/22 15:14:51, Dan Rice wrote: Why was the TODO removed? Now there is a JSNI implementation using super-source bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java http://gwt-code-reviews.appspot.com/363801/diff/1/4 File bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/ImmutableArrayImpl.java (right): http://gwt-code-reviews.appspot.com/363801/diff/1/4#newcode21 bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/ImmutableArrayImpl.java:21: * The standard byte code implementation of an immutable array. On 2010/04/22 15:14:51, Dan Rice wrote: byte code - JSNI? Oops. The power of copy-paste. Done http://gwt-code-reviews.appspot.com/363801/diff/1/5 File bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java (right): http://gwt-code-reviews.appspot.com/363801/diff/1/5#newcode53 bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:53: * Creates an immutable array based on this one. Also marks this object as read-only. On 2010/04/22 15:14:51, Dan Rice wrote: line length Done. http://gwt-code-reviews.appspot.com/363801/diff/1/5#newcode114 bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:114: * Changes the array size. If {...@code newSize} is less than the current size, the array is On 2010/04/22 15:14:51, Dan Rice wrote: line length Done. http://gwt-code-reviews.appspot.com/363801/diff/1/5#newcode196 bikeshed/src/com/google/gwt/collections/super/com/google/gwt/collections/MutableArray.java:196: * Changes the array size. If {...@code newSize} is less than the current size, the array is On 2010/04/22 15:14:51, Dan Rice wrote: line length Done. Fixed my Eclipse setting too. http://gwt-code-reviews.appspot.com/363801/diff/1/7 File bikeshed/test/com/google/gwt/collections/CollectionsServerSideTestSuite.java (right): http://gwt-code-reviews.appspot.com/363801/diff/1/7#newcode26 bikeshed/test/com/google/gwt/collections/CollectionsServerSideTestSuite.java:26: TestSuite suite = new TestSuite(All Gwt Lightwight collections unit tests); On 2010/04/22 15:14:51, Dan Rice wrote: Lightweight (spelling) Done. http://gwt-code-reviews.appspot.com/363801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Refactoring Tree code. SideBySideTreeView now uses SimpleCellList, which a protected method tha... (issue390801)
Reviewers: jgw, Description: Refactoring Tree code. SideBySideTreeView now uses SimpleCellList, which a protected method that allows users to use any ListView. SideBySideTreeNodeView shares a lot of code with SimpleCellList. Added animations to SideBySideTreeView. NodeInfo now includes a SelectionModel, but still allows a single instance to be used across an entire tree of different types. NodeInfo now returns one Cell instead of a list of HasCell, but CompositeCell has been added to combine HasCells into a single Cell. Please review this at http://gwt-code-reviews.appspot.com/390801/show Affected files: M bikeshed/src/com/google/gwt/bikeshed/cells/client/Cell.java A bikeshed/src/com/google/gwt/bikeshed/cells/client/CompositeCell.java M bikeshed/src/com/google/gwt/bikeshed/list/client/HasCell.java M bikeshed/src/com/google/gwt/bikeshed/list/client/ListView.java M bikeshed/src/com/google/gwt/bikeshed/list/client/PagingTableListView.java M bikeshed/src/com/google/gwt/bikeshed/list/client/SimpleCellList.java A bikeshed/src/com/google/gwt/bikeshed/list/client/impl/SimpleCellListImpl.java A bikeshed/src/com/google/gwt/bikeshed/list/shared/MultiSelectionModel.java M bikeshed/src/com/google/gwt/bikeshed/list/shared/SelectionModel.java A bikeshed/src/com/google/gwt/bikeshed/list/shared/SingleSelectionModel.java D bikeshed/src/com/google/gwt/bikeshed/tree/client/SideBySideTreeNodeView.java M bikeshed/src/com/google/gwt/bikeshed/tree/client/SideBySideTreeView.java M bikeshed/src/com/google/gwt/bikeshed/tree/client/StandardTreeNodeView.java M bikeshed/src/com/google/gwt/bikeshed/tree/client/StandardTreeView.java D bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeNode.java D bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeNodeView.java M bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeView.java M bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeViewModel.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/BasicTreeRecipe.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/Cookbook.java D bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MultiSelectionModel.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/MyTreeViewModel.java M bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/SideBySideTreeRecipe.java D bikeshed/src/com/google/gwt/sample/bikeshed/cookbook/client/SingleSelectionModel.java M bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksDesktop.java M bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/TransactionTreeViewModel.java M bikeshed/src/com/google/gwt/sample/bikeshed/stocks/server/StockServiceImpl.java M bikeshed/src/com/google/gwt/sample/bikeshed/style/client/Styles.java M bikeshed/src/com/google/gwt/sample/bikeshed/style/client/common.css -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Refactoring Tree code. SideBySideTreeView now uses SimpleCellList, which a protected method tha... (issue390801)
http://gwt-code-reviews.appspot.com/390801/diff/1/3 File bikeshed/src/com/google/gwt/bikeshed/cells/client/CompositeCell.java (right): http://gwt-code-reviews.appspot.com/390801/diff/1/3#newcode32 bikeshed/src/com/google/gwt/bikeshed/cells/client/CompositeCell.java:32: public class CompositeCellC, V extends CellC, V { One thing we should be very clear about is that CompositeCell always concatenates its child cells, and makes no guarantees about how they're likely to lay out. IOW, if a child cell uses a block-level element, they'll stack up. This might be reasonable, but we should make it clear. http://gwt-code-reviews.appspot.com/390801/diff/1/3#newcode49 bikeshed/src/com/google/gwt/bikeshed/cells/client/CompositeCell.java:49: public boolean consumesEvents() { We've never been clear on whether these methods could return different values at different times -- I'm leaning towards *not*, because that would allow a CompositeCell to cache these results (there's no particular reason to expect a container to cache this value on behalf of its Cells, so it might be called very frequently). http://gwt-code-reviews.appspot.com/390801/diff/1/3#newcode59 bikeshed/src/com/google/gwt/bikeshed/cells/client/CompositeCell.java:59: public boolean dependsOnSelection() { Ditto above about caching results. http://gwt-code-reviews.appspot.com/390801/diff/1/5 File bikeshed/src/com/google/gwt/bikeshed/list/client/ListView.java (right): http://gwt-code-reviews.appspot.com/390801/diff/1/5#newcode59 bikeshed/src/com/google/gwt/bikeshed/list/client/ListView.java:59: void setSelectionModel(SelectionModel? super T selectionModel); It's debatable whether all lists should be required to implement selection. We can go ahead and check it in this way, but I'd like to think about it before fully committing to this idea. http://gwt-code-reviews.appspot.com/390801/diff/1/7 File bikeshed/src/com/google/gwt/bikeshed/list/client/SimpleCellList.java (right): http://gwt-code-reviews.appspot.com/390801/diff/1/7#newcode51 bikeshed/src/com/google/gwt/bikeshed/list/client/SimpleCellList.java:51: private static final String STYLENNAME_SELECTED = gwt-sstree-selectedItem; I assume that these classnames are temporary since this widget is being used in the sstree. We can revisit the way we handle styling later, but a TODO might be a good idea. http://gwt-code-reviews.appspot.com/390801/diff/1/7#newcode122 bikeshed/src/com/google/gwt/bikeshed/list/client/SimpleCellList.java:122: int type = event.getTypeInt(); When Dan gets done factoring out the pager concept, I suppose we can eliminate all this built-in button stuff. http://gwt-code-reviews.appspot.com/390801/diff/1/8 File bikeshed/src/com/google/gwt/bikeshed/list/client/impl/SimpleCellListImpl.java (right): http://gwt-code-reviews.appspot.com/390801/diff/1/8#newcode42 bikeshed/src/com/google/gwt/bikeshed/list/client/impl/SimpleCellListImpl.java:42: public abstract class SimpleCellListImplT { If this shouldn't be used, consider making it package protected if possible. http://gwt-code-reviews.appspot.com/390801/diff/1/8#newcode297 bikeshed/src/com/google/gwt/bikeshed/list/client/impl/SimpleCellListImpl.java:297: + 'iloading.../i/div); At some point we'll either have to make this string overridable or turn it into something more i18n-friendly. http://gwt-code-reviews.appspot.com/390801/diff/1/18 File bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeView.java (right): http://gwt-code-reviews.appspot.com/390801/diff/1/18#newcode28 bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeView.java:28: public abstract class TreeView extends Composite { Sure is starting to smell like this class can be nuked... http://gwt-code-reviews.appspot.com/390801/diff/1/19 File bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeViewModel.java (right): http://gwt-code-reviews.appspot.com/390801/diff/1/19#newcode34 bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeViewModel.java:34: class DefaultNodeInfoT implements NodeInfoT { I really like the fact that much of the code is gone from this class. It sure seemed like a symptom that the NodeInfo contract was too complex before. http://gwt-code-reviews.appspot.com/390801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] RR : Part 1 : UiBinder reports locations in errors (issue394801)
Reviewers: Ray Ryan, Message: Review requested. Description: This patch changes how UiBinder's compile-time DOM structure is generated so that we can provide accurate location information to the developer when logging errors. Instead of using a DOM parser, this patch builds a DOM using a SAX parser that records SaxLocator data in the new DOM nodes. The observed behavior of UiBinder's XMLElement type should not change, save for its toString(), which will include source location information. The MortalLogger class is updated with warn() and die() messages that accept an XMLElement. Example error message by doubling line 8 of Mail.ui.xml: Compiling module com.google.gwt.sample.mail.Mail Scanning for additional dependencies: file:/Users/bob/gwt/trunk_svn/samples/mail/src/com/google/gwt/sample/mail/client/Mail.java Computing all possible rebind results for 'com.google.gwt.sample.mail.client.Mail.Binder' Rebinding com.google.gwt.sample.mail.client.Mail.Binder Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator [ERROR] Element may only contain a single child element, but found mail:TopPanel ui:field='topPanel' at file:/Users/bob/gwt/trunk_svn/samples/mail/src/com/google/gwt/sample/mail/client/Mail.ui.xml:8 and mail:TopPanel ui:field='topPanel2' at file:/Users/bob/gwt/trunk_svn/samples/mail/src/com/google/gwt/sample/mail/client/Mail.ui.xml:9. [ERROR] See (Mail.ui.xml:7) Please review this at http://gwt-code-reviews.appspot.com/394801/show Affected files: M user/src/com/google/gwt/uibinder/rebind/MortalLogger.java M user/src/com/google/gwt/uibinder/rebind/W3cDomHelper.java M user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java M user/src/com/google/gwt/uibinder/rebind/XMLElement.java M user/test/com/google/gwt/uibinder/rebind/MockMortalLogger.java M user/test/com/google/gwt/uibinder/rebind/XMLElementTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] RR : Part 2 : Update sources of UiBinder error messages (issue395801)
Reviewers: Ray Ryan, Message: Review requested. Description: This patch builds on the first by reworking callers of MortalLogger to include a contextual XMLElement. Please review this at http://gwt-code-reviews.appspot.com/395801/show Affected files: M user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java M user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java M user/src/com/google/gwt/uibinder/elementparsers/CellPanelParser.java M user/src/com/google/gwt/uibinder/elementparsers/CustomButtonParser.java M user/src/com/google/gwt/uibinder/elementparsers/DialogBoxParser.java M user/src/com/google/gwt/uibinder/elementparsers/DisclosurePanelParser.java M user/src/com/google/gwt/uibinder/elementparsers/DockLayoutPanelParser.java M user/src/com/google/gwt/uibinder/elementparsers/DockPanelParser.java M user/src/com/google/gwt/uibinder/elementparsers/FieldInterpreter.java M user/src/com/google/gwt/uibinder/elementparsers/HasWidgetsParser.java M user/src/com/google/gwt/uibinder/elementparsers/HtmlInterpreter.java M user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java M user/src/com/google/gwt/uibinder/elementparsers/LayoutPanelParser.java M user/src/com/google/gwt/uibinder/elementparsers/ListBoxParser.java M user/src/com/google/gwt/uibinder/elementparsers/MenuBarParser.java M user/src/com/google/gwt/uibinder/elementparsers/MenuItemParser.java M user/src/com/google/gwt/uibinder/elementparsers/StackLayoutPanelParser.java M user/src/com/google/gwt/uibinder/elementparsers/StackPanelParser.java M user/src/com/google/gwt/uibinder/elementparsers/TabLayoutPanelParser.java M user/src/com/google/gwt/uibinder/elementparsers/TabPanelParser.java M user/src/com/google/gwt/uibinder/elementparsers/TextInterpreter.java M user/src/com/google/gwt/uibinder/elementparsers/UIObjectParser.java M user/src/com/google/gwt/uibinder/elementparsers/UiTextInterpreter.java M user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java M user/src/com/google/gwt/uibinder/rebind/messages/MessagesWriter.java M user/src/com/google/gwt/uibinder/rebind/messages/PlaceholderInterpreter.java M user/test/com/google/gwt/uibinder/elementparsers/LayoutPanelParserTest.java M user/test/com/google/gwt/uibinder/elementparsers/StackLayoutPanelParserTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: RR : Part 1 : UiBinder reports locations in errors (issue394801)
Thank you! http://gwt-code-reviews.appspot.com/394801/diff/1/2 File user/src/com/google/gwt/uibinder/rebind/MortalLogger.java (right): http://gwt-code-reviews.appspot.com/394801/diff/1/2#newcode102 user/src/com/google/gwt/uibinder/rebind/MortalLogger.java:102: + location.getLineNumber() + )); Does this have to be on its own line, and indented? Can we just append it to the message and not branch? I hate to see our logging get even taller. If we're working around a GPE quirk, let's not do that and instead put a bug on them to catch up. http://gwt-code-reviews.appspot.com/394801/diff/1/3 File user/src/com/google/gwt/uibinder/rebind/W3cDomHelper.java (right): http://gwt-code-reviews.appspot.com/394801/diff/1/3#newcode48 user/src/com/google/gwt/uibinder/rebind/W3cDomHelper.java:48: private class MyHandler extends DefaultHandler2 { A thing of beauty. You really have to wonder why it doesn't do this out of the box. Would you mind breaking this out into its own package protected file? http://gwt-code-reviews.appspot.com/394801/diff/1/3#newcode52 user/src/com/google/gwt/uibinder/rebind/W3cDomHelper.java:52: // Composition compowhatawho? http://gwt-code-reviews.appspot.com/394801/diff/1/3#newcode118 user/src/com/google/gwt/uibinder/rebind/W3cDomHelper.java:118: Attributes attributes) throws SAXException { Forward looking question: if in the Very Near Future we want to normalize troublesome structures like table and p, would this be the place to do it? Or would that make more sense post-parse? http://gwt-code-reviews.appspot.com/394801/diff/1/3#newcode134 user/src/com/google/gwt/uibinder/rebind/W3cDomHelper.java:134: public void warning(SAXParseException exception) throws SAXException { If you don't really throw it, don't declare it. Down with compiler warnings. http://gwt-code-reviews.appspot.com/394801/diff/1/6 File user/test/com/google/gwt/uibinder/rebind/MockMortalLogger.java (right): http://gwt-code-reviews.appspot.com/394801/diff/1/6#newcode40 user/test/com/google/gwt/uibinder/rebind/MockMortalLogger.java:40: super.die(context, message, params); Rather than tolerating null in the production code, how about putting a real XMLElement here? http://gwt-code-reviews.appspot.com/394801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: RR : Part 2 : Update sources of UiBinder error messages (issue395801)
Holy cow! Given this pass, and the fact that XMLElement#toString still sometimes reaches the error log, I think you should get the line number and (huge) file name out of XMLElement#toString http://gwt-code-reviews.appspot.com/395801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] webAppCreator, create maven configuration file (pom.xml) (issue397801)
Reviewers: jlabanca, Description: This patch - Adds to webAppCreator the ability to create maven configuration file: Issue_4878 - Fixes the Issue_4652 build.xml: compiles test classes in the same directory as the source - Adds tests to WebAppCreator Please review this at http://gwt-code-reviews.appspot.com/397801/show Affected files: user/src/com/google/gwt/user/tools/.classpathsrc user/src/com/google/gwt/user/tools/README.txtsrc user/src/com/google/gwt/user/tools/WebAppCreator.java user/src/com/google/gwt/user/tools/project.ant.xmlsrc user/src/com/google/gwt/user/tools/project.maven.xmlsrc user/test/com/google/gwt/user/tools/WebAppCreatorTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: webAppCreator, create maven configuration file (pom.xml) (issue397801)
Mostly LGTM A couple of nits, and one more significant. http://gwt-code-reviews.appspot.com/397801/diff/1/3 File user/src/com/google/gwt/user/tools/README.txtsrc (right): http://gwt-code-reviews.appspot.com/397801/diff/1/3#newcode75 user/src/com/google/gwt/user/tools/README.txtsrc:75: have Internet o Local access to maven repositories, and the comand 'mvn' is in s/o/or/ ? http://gwt-code-reviews.appspot.com/397801/diff/1/6 File user/src/com/google/gwt/user/tools/WebAppCreator.java (right): http://gwt-code-reviews.appspot.com/397801/diff/1/6#newcode241 user/src/com/google/gwt/user/tools/WebAppCreator.java:241: return Do not create ant configuration file; an ant http://gwt-code-reviews.appspot.com/397801/diff/1/6#newcode329 user/src/com/google/gwt/user/tools/WebAppCreator.java:329: String warFolder = maven ? src/main/webapp : war; Will this do the right thing without -noant? It seems like the ant file would point at the maven directories, but maybe that works anyway. If not, then perhaps -maven should mean to generate maven files rather than ant files (doing away with -noant). http://gwt-code-reviews.appspot.com/397801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Sync is for real now. Notes: (issue379802)
LGTM WOOO HOO http://gwt-code-reviews.appspot.com/379802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors