Re: request parameter to persist through the RequestFactory
hi Thiago:) I don't know if that is the solution to the problem, but I will do the save process different way. I see you are using two different RequestConext's to *create* and *save* the entity.. UserServiceRequestContext context = requestFactoryInclude .userSerivceRequestContext(); mainForm.saveData(); userProxy = requestFactoryInclude.userSerivceRequestContext() .create(UserProxy.class); imho you should do it like this: ... userProxy = context.create(UserProxy.class); ... cheers and hth, agi On Sep 5, 8:30 pm, thiago borges martins tborgesmart...@gmail.com wrote: Hi I am facing a problem with the RequestFactory not found solution yet. In my project I have the EJB module that has the services that are called by the interface on the client side, as described in the documentation of RF, the searches are working properly, but when I call the persist method it is not even making the request on the server , does anyone have any idea what might be? Below is the code snippet: final EventBus eventBusInclude = new SimpleEventBus(); ConsultRequestFactory requestFactoryInclude = GWT .create(ConsultRequestFactory.class); requestFactoryInclude.initialize(eventBusInclude); UserServiceRequestContext context = requestFactoryInclude .userSerivceRequestContext(); mainForm.saveData(); userProxy = requestFactoryInclude.userSerivceRequestContext() .create(UserProxy.class); userProxy.setId(new Long(0)); userProxy.setNmUser(mainForm.getValueAsString(userName)); userProxy.setNmLogin(mainForm.getValueAsString(userLogin)); userProxy.setDtBirth((Date) mainForm.getValue(userBirth)); userProxy.setPassword(123456); userProxy.setDocumentUser(null); userProxy.setStatus(mainForm.getValueAsString(userStatus)); userProxy.setDataInclude(new Date()); userProxy.setVersion(0); context.persist(userProxy).using(userProxy) .to(new ReceiverBoolean() { @Override public void onViolation(SetViolation errors) { SC.say(FUCKED !); } @Override public void onFailure(ServerFailure error) { SC.say(ERROR: + error.getMessage()); } @Override public void onSuccess(Boolean response) { UserWindow.selectedTabSearch(); UserWindow.removeTabInclude(); } }); I thank the attention and help! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ResourceBundle an Properties
Hi, GWT has a built-in support for internationalization. If you only want to write translated messages, use com.google.gwt.i18n.client.Constants (see http://code.google.com/webtoolkit/doc/latest/DevGuideI18nConstants.html) or com.google.gwt.i18n.client.Messages if you need to substitute parameters into the translated messages (see http://code.google.com/webtoolkit/doc/latest/DevGuideI18nMessages.html ). This two classes are quite similar to Properties Files. For more informations, see http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html Alexandre 2011/9/5 Markus Unger markus.unger1...@googlemail.com Hello! I am new at GWT and I try to develop an simple login form. So the basic is working (RPC, Submit Button and so on). Now i will add a properties File to load different languages. In struts there is a simple Properties File like this: title = my title version = 0.1 How can I use a Propertie File? I tried it with da DataResource and a ClientBundle public interface MessageBundle extends DataResource { String title(); } public interface ResourceBundle extends ClientBundle { public static final ResourceBundle INSTANCE = GWT.create(ResourceBundle.class); @Source(messages/Messages.properties) MessageBundle messageBundle(); } I get the following error: Type mismatch: cannot convert from new DataResource(){} to MessageBundle Does anybody use Propertie File in GWT? Thanks for help! Regards, Markus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Error on JSON parsing
I'm trying to get JavaScriptObject from JSON String String looks like : {id:1,username:admin,token:dq77a4uslui7neqcvidajofrg0} I'm doing this via JSINI : public final native JavaScriptObject userFromJson(String json) /*-{ return eval(json); }-*/; And get this error : 14:18:24.740 [ERROR] [webpovise] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: Exception caught: (SyntaxError): Unexpected token : at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129) at com.google.gwt.user.client.ui.FormPanel$1.execute(FormPanel.java:640) at com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.java:310) at com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:205) at com.google.gwt.user.client.Timer.fire(Timer.java:149) 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.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source) 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.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:662) Caused by: com.google.gwt.core.client.JavaScriptException: (SyntaxError): Unexpected token : at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.webprovise.client.presenter.LoginPresenter.userFromJson(LoginPresenter.java) at com.webprovise.client.presenter.LoginPresenter$2.onSubmitComplete(LoginPresenter.java:86) at com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.java:115) at com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129) at com.google.gwt.user.client.ui.FormPanel$1.execute(FormPanel.java:640) at com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.java:310) at com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:205) at com.google.gwt.user.client.Timer.fire(Timer.java:149) 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
is there a problem using static Collections with refresh??
hi.. one of my classes hold a public final static Map of it's instances along with a string key for other classes to reference from . each the map is populated each time a new instance is created. the instance themselves are stored in as static reference variables in other interfaces. problem is, that at times i found out that pressing F5 clears the map, but does not re-populate it! is there something special with F5 and static constant variables? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Error on JSON parsing
Just found how to fix this. Need to use () with json string. example: Json string : {id:1,username:admin,token:dq77a4uslui7neqcvidajofrg0} must became : ({id:1,username:admin,token:dq77a4uslui7neqcvidajofrg0}) Then eval works perfect. Another question. How could i get JavascriptObject using JSONParser.parseStrict() method ? Is there any example ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/_9ftCmcQCcgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Error on JSON parsing
On Tuesday, September 6, 2011 10:18:51 AM UTC+2, Konstantin Zolotarev wrote: I'm trying to get JavaScriptObject from JSON String String looks like : {id:1,username:admin,token:dq77a4uslui7neqcvidajofrg0} I'm doing this via JSINI : public final native JavaScriptObject userFromJson(String json) /*-{ return eval(json); }-*/; Do not use eval(), unless you're absolutely sure of the origin of your JSON string (and even then –because you actually cannot be absolutely sure–, a quick sanity-check is always welcome). GWT gives you tools for JSON parsing: use them! http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/JsonUtils.html And get this error : 14:18:24.740 [ERROR] [webpovise] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: Exception caught: (SyntaxError): Unexpected token : That's because the { is seen as opening a block of code, so it later chokes on the : which is not legal in an expression context. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dI75zmMPQx0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT CELLTABLE column's cell value updation
Try Column.setFieldUpdater(FieldUpdaterT,C fieldUpdater). Override the method update(int index, T object, C value) to update all the objects forming your table model. S. Abraham www.DataStoreGwt.com On Sep 5, 6:32 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote: I am using gwt2.3 My celltable contains 10 rows, 5 columns. All cells in 1st row is empty,editable. Whenever user clicks on column cell lets say 1st row X 3rd column then user will edit that cell say xyz. after that when user click on button: update column cell then xyz value set to all cell present in that column. I am using different celltype in celltable. How to set/update all cell value in that particular column/page whose 1st cell is edited Any help or guidance in this matter would be appreciated -- Best Regards, Vaibhav http://about.me/vaibhavbhalke -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to create an event-based client-server communication?
I have a GWT application that needs to be notified when an event occurs on the server side. Currently to manage it, I used the Timer object to check session (updated on server-side) by making regular asynchrounous callback after a lap of time. this solution works well but it contains many disadvantages such as the increase of server calls... Yesterday I found by searching a framework called gwteventservice that allows to add listeners in the client side for events raised on server-side. But I do not know if this framework is compatible with GWT 2.3 and I want to know the advantages and disadvantages of such framework. is the use of this framework advantageous comparing to the solution i used? is there a more advanced framework? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Developing GWT App using Tomcat
Hi, I was developing simple app using embeded jetty server in GWT Designer till i got stuck when i was connecting to mysql db. The same code for connection works very well, if i run it as java application. But was failing when running using embedded server. The I decided to put the app on tomcat and then develop using it. Now the connection works but i face issue while development: 1) The option Debug-Web Application (running on external server) does not work. i.e break points are not hit. 2) Everytime i add code, i have re-deploy my application. How can work properly with Tomcat as server and GWT Designer as IDE ? Regards, Ashwani Kr Sharma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Storing Style (html format) in mysql db
Hi, I want to create a screen where user can enter a formatted text in a field. The formatted text will have hyperlinks, formatted text like bold, italics etc. I am RichTextArea for this. 1) I want to insert the same formatted text into mysql DB. 2) Later, i will read the value and display in formatted text format. How can i do 1 and 2 in GWT? Regards, Ashwani Kr Sharma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
cnn news portelt
hello everyone, i want to create a portel like cnn news(available in igoogle) can somebody plz help me how to devlope it. i am using ext gwt in eclipse and i am able to create empty portlet window but i dont knw how to get latest news and their link into my portlet ??? plz help me. if some sample code is available then it will be very helpful for me... thnks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Compile
Hai, When I do GWT build in eclipse, After completion of GWT build , eclipse starts the Complete project build which take lot of time. Is this expected way ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ResourceBundle an Properties
same here i dont even know how to use GWT... even the basic,,, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
issue with menues and iframes
In my web application there is a top menu and an iframe rendering xml (with css). In IE7, after clicking the menu, the menu item appears to be hidden by the iframe. This seems to happen only if the iframe contains xml. With html, there is no problem. The issue seems to be similar to http://code.google.com/p/google-web-toolkit/issues/detail?id=4064, but I couldn't find a fix yet, any ideas ? regards, singh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
how come my extended StackLayoutPanel does show headers correctly?
but my extened StackPanel does? i extend the StackPanel and try to place header and vertical panel with a hyperlink they are shown correctly in the designer but, if i replace it to StackLayoutPanel it does not.. however just using a StackLayoutPanel class inside the entry point does show it correctly. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FY6cgsdOyP8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Developing GWT App using Tomcat
I recommend use embeded jetty server in GWT Designer. The problem with mysql connection is not related with jetty. Can you paste the stracktrace error that you have? 2011/9/6 Ashwani ashw.ku...@gmail.com Hi, I was developing simple app using embeded jetty server in GWT Designer till i got stuck when i was connecting to mysql db. The same code for connection works very well, if i run it as java application. But was failing when running using embedded server. The I decided to put the app on tomcat and then develop using it. Now the connection works but i face issue while development: 1) The option Debug-Web Application (running on external server) does not work. i.e break points are not hit. 2) Everytime i add code, i have re-deploy my application. How can work properly with Tomcat as server and GWT Designer as IDE ? Regards, Ashwani Kr Sharma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Unable to parse module
Could someone help me with the error below? I am having trouble trying to compile the GWT module. [INFO] Module file: C:\Desenvolvimento\eclipse\workspace\SLT\project- gwt\src\main\resources\br\com\project\Main.gwt.xml Unable to parse module java.net.MalformedURLException at java.net.URL.init(URL.java:601) at java.net.URL.init(URL.java:464) at java.net.URL.init(URL.java:413) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java: 650) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java: 186) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java: 772) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java: 737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java: 119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java: 1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescriptors(GwtWebInfProcessor.java: 151) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescriptors(GwtWebInfProcessor.java: 168) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.init(GwtWebInfProcessor.java: 106) at com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java: 91) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java: 107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: 84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: 59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java: 183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java: 161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java: 290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java: 409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to parse module
Can you share the content of Main.gwt.xml? 2011/9/6 Fábio Marigo fabiomar...@gmail.com Could someone help me with the error below? I am having trouble trying to compile the GWT module. [INFO] Module file: C:\Desenvolvimento\eclipse\workspace\SLT\project- gwt\src\main\resources\br\com\project\Main.gwt.xml Unable to parse module java.net.MalformedURLException at java.net.URL.init(URL.java:601) at java.net.URL.init(URL.java:464) at java.net.URL.init(URL.java:413) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java: 650) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java: 186) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java: 772) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java: 737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java: 119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java: 1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescriptors(GwtWebInfProcessor.java: 151) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescriptors(GwtWebInfProcessor.java: 168) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.init(GwtWebInfProcessor.java: 106) at com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java: 91) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java: 107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: 84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: 59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java: 183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java: 161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java: 290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java: 409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to parse module
Follows the file. 2011/9/6 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the content of Main.gwt.xml? 2011/9/6 Fábio Marigo fabiomar...@gmail.com Could someone help me with the error below? I am having trouble trying to compile the GWT module. [INFO] Module file: C:\Desenvolvimento\eclipse\workspace\SLT\project- gwt\src\main\resources\br\com\project\Main.gwt.xml Unable to parse module java.net.MalformedURLException at java.net.URL.init(URL.java:601) at java.net.URL.init(URL.java:464) at java.net.URL.init(URL.java:413) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java: 650) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java: 186) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java: 772) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java: 737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java: 119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java: 1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescriptors(GwtWebInfProcessor.java: 151) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescriptors(GwtWebInfProcessor.java: 168) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.init(GwtWebInfProcessor.java: 106) at com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java: 91) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java: 107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: 84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: 59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java: 183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java: 161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java: 290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java: 409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- * * *Fábio Henrique Marigo Gonçalves* *Análista Programador de Sistemas* Fone: (44) 9941-7006 fabiomar...@gmail.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
Errors when firing Requests
I'm trying to implement a simple testproject with RequestFactory, after i failed with a bigger one and still cannot manage to make it run. Since i'm struggling with it for already several weeks, maybe somebody could give me an advise what i'm generally doing wrong. I've putted my code here : http://code.google.com/p/ratesexchange/source/browse/#svn%2Ftrunk%2FTestProject Stack in Dev mode when staring the app is: 15:47:26.703 [ERROR] [domik] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext.fail(AbstractRequestContext.java: 608) at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext $4.onTransportFailure(AbstractRequestContext.java:955) at com.google.gwt.requestfactory.client.DefaultRequestTransport $1.onResponseReceived(DefaultRequestTransport.java:146) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: Server Error 500 lt;htmlgt; lt;headgt; lt;meta http-equiv=quot;Content-Typequot; content=quot;text/html; charset=ISO-8859-1quot;/gt; lt;titlegt;Error 500 org/slf4j/LoggerFactorylt;/titlegt; lt;/headgt; lt;bodygt;lt;h2gt;HTTP ERROR 500lt;/h2gt; lt;pgt;Problem accessing /gwtRequest. Reason: lt;pregt;org/slf4j/LoggerFactorylt;/pregt;lt;/ pgt;lt;h3gt;Caused by:lt;/ h3gt;lt;pregt;java.lang.NoClassDefFoundError: org/slf4j/ LoggerFactory at org.hibernate.validator.util.LoggerFactory.make(LoggerFactory.java:29) at org.hibernate.validator.util.Version.amp;lt;clinitamp;gt; (Version.java:30) at org.hibernate.validator.engine.ConfigurationImpl.amp;lt;clinitamp;gt; (ConfigurationImpl.java:52) at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java: 43) at javax.validation.Validation $GenericBootstrapImpl.configure(Validation.java:269) at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java: 111) at com.google.gwt.requestfactory.server.ReflectiveServiceLayer.amp;lt;clinitamp;gt; (ReflectiveServiceLayer.java:65) at com.google.gwt.requestfactory.server.ServiceLayer.create(ServiceLayer.java: 79) at com.google.gwt.requestfactory.server.RequestFactoryServlet.amp;lt;initamp;gt; (RequestFactoryServlet.java:93) at com.google.gwt.requestfactory.server.RequestFactoryServlet.amp;lt;initamp;gt; (RequestFactoryServlet.java:79) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown
How to test methods returning void and how to test Asynchronous calls using Mockito.
Hi All, 1. In Junit I am trying to test the method which is not returning anything using the Mockito, but I am not able to test it. 2. In Junit, If I am trying to test the asynchronous calls in GWT using Mockito, then I am not understanding how to do it, because synchronous method gives the result in onSuccess() / onFailure() methods. Please help, If anybody has an idea how to do the testing of these kind of methods using Mockito. It would be a great help, If you will provide any help. Thanks and Regards, Anuj Kumar, Noida, India -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to parse module
Only have this error when use maven? With eclipse, Can you run in dev mode? 2011/9/6 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the content of Main.gwt.xml? 2011/9/6 Fábio Marigo fabiomar...@gmail.com Could someone help me with the error below? I am having trouble trying to compile the GWT module. [INFO] Module file: C:\Desenvolvimento\eclipse\workspace\SLT\project- gwt\src\main\resources\br\com\project\Main.gwt.xml Unable to parse module java.net.MalformedURLException at java.net.URL.init(URL.java:601) at java.net.URL.init(URL.java:464) at java.net.URL.init(URL.java:413) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java: 650) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java: 186) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java: 772) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java: 737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java: 119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java: 1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescriptors(GwtWebInfProcessor.java: 151) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescriptors(GwtWebInfProcessor.java: 168) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.init(GwtWebInfProcessor.java: 106) at com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java: 91) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java: 107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: 84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: 59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java: 183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java: 161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java: 290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java: 409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?
I'm running into this issue too. It seems when the server throws an exception it gets sent to the individual Request not the fail() method in the RequestContext. So reuse() is never called from it in the case of a server exception. I'm not sure why they designed it this way. A server exception should do a fail for the overall RequestContext not for an individual request. There are many cases where you would want to be able to resubmit a request after a server exception (in my case it was a column was the wrong type in my database and so JDBC was throwing an exception about it and once the column is changed, I want to be able to resubmit it on the client-side, but I can't due to the fact that the request still says it's locked). Except for subclassing AbstractRequestContext and overriding the processPayload to act the same no matter the failure type, or writing a JSNI to get to reuse() on a context, I'm not sure how to fix this. Does everyone else feel that reuse() should be called no matter what the cause of the exception? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kjqWzUE9xRMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Browsers
Hello, Im a new developer using google web toolkit and when i start my first application i see some incompatible extensions of browsers. I check disponibles plugins and just firefox are incompatible because the last version of mozilla is 6.0.1 and when add plugin to start load my aplication a little msg appear, sorry, this version browser not is compatible with plugin Some one can help me? Sorry for english Lucas -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
What about non Javascript sites?
Hi, I am very taken with GWT and I believe will make maintaining my company's site easier. However, they say they need to maintain a non JavaScript version of the site. Any ideas how we can do this? Would it have to be a seperate site? Can the app be partitioned in some way? Thanks Raks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WfoUl0tRMPMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JSNI Unkown callback
Hi, I want to write JSNI method that can pass a Java function as parameter, but that function will not be used by me, but by the underlying API (OpenLayers in my case). Full JavaScript example: var tms = OpenLayers.Layer.TMS('My TMS Layer', '', { serviceVersion: '.', layername: 'dir1/dir2', type: 'png', getURL: overlay_getTileURL, // This function will be called each time the user moves or zooms on the map isBaseLayer: true, visibility:false }); map.addLayer(tms); function overlay_getTileURL(bounds) { // my code // return URL (string) } I have a very complete wrapper for the TMS and Bounds objects, so I can write in Java: TMSOptions myTmsOptions = new TMSOptions(); TMS tms = new TMS(My TMS Layer, , myTmsOptions); map.addLayer(tms); What I want to do now is something like this in Java: myTmsOptions.setGetURL(overlayGetTileUrl); // Can be in any class, in any package public String overlayGetTileUrl(Bounds bounds) { String url = ; // build a string url return url; } I've looked in the documentation but only found how to call a Java function for which I already know the name (and the package's name). I've searched a little in that forum but didn't find something looking like this. Is that possible ? If yes, how ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Errors when firing Requests
Hibernate validation is trying to use slf4j which you don't appear to have in your classpath. On Sep 6, 8:49 am, Nik khristia...@gmail.com wrote: I'm trying to implement a simple testproject with RequestFactory, after i failed with a bigger one and still cannot manage to make it run. Since i'm struggling with it for already several weeks, maybe somebody could give me an advise what i'm generally doing wrong. I've putted my code here : http://code.google.com/p/ratesexchange/source/browse/#svn%2Ftrunk%2FT... Stack in Dev mode when staring the app is: 15:47:26.703 [ERROR] [domik] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext.fail(Abstr actRequestContext.java: 608) at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext $4.onTransportFailure(AbstractRequestContext.java:955) at com.google.gwt.requestfactory.client.DefaultRequestTransport $1.onResponseReceived(DefaultRequestTransport.java:146) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo rReturn(BrowserChannelServer.java: 326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann elServer.java: 207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j ava: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a: 167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne lServer.java: 281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan nelServer.java: 531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java : 352) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: Server Error 500 lt;htmlgt; lt;headgt; lt;meta http-equiv=quot;Content-Typequot; content=quot;text/html; charset=ISO-8859-1quot;/gt; lt;titlegt;Error 500 org/slf4j/LoggerFactorylt;/titlegt; lt;/headgt; lt;bodygt;lt;h2gt;HTTP ERROR 500lt;/h2gt; lt;pgt;Problem accessing /gwtRequest. Reason: lt;pregt; org/slf4j/LoggerFactorylt;/pregt;lt;/ pgt;lt;h3gt;Caused by:lt;/ h3gt;lt;pregt;java.lang.NoClassDefFoundError: org/slf4j/ LoggerFactory at org.hibernate.validator.util.LoggerFactory.make(LoggerFactory.java:29) at org.hibernate.validator.util.Version.amp;lt;clinitamp;gt; (Version.java:30) at org.hibernate.validator.engine.ConfigurationImpl.amp;lt;clinitamp;gt; (ConfigurationImpl.java:52) at org.hibernate.validator.HibernateValidator.createGenericConfiguration(Hiber nateValidator.java: 43) at javax.validation.Validation $GenericBootstrapImpl.configure(Validation.java:269) at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java: 111) at com.google.gwt.requestfactory.server.ReflectiveServiceLayer.amp;lt;clinit amp;gt; (ReflectiveServiceLayer.java:65) at com.google.gwt.requestfactory.server.ServiceLayer.create(ServiceLayer.java: 79) at com.google.gwt.requestfactory.server.RequestFactoryServlet.amp;lt;initamp ;gt; (RequestFactoryServlet.java:93) at com.google.gwt.requestfactory.server.RequestFactoryServlet.amp;lt;initamp ;gt; (RequestFactoryServlet.java:79) at
gwt upload help
While uploading a file with gwt upload I get this message(tomcat logs): ERROR gwtupload.server.UploadServlet - UPLOAD-SERVLET (CB0A5EE1566FA657D493E30FA442E7F8) getUploadStatus: GWTMU-07928628389164111 finished with error: No new data received after 20 seconds I use the newest version (0.6.3-compat) of gwtupload. On older version of gwt I got also log: 2011-09-06 10:14:56 org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Invalid chunk '' ignored. filename=GWTMU-05757982019837063c=59random=0.12413905705701078 It seems that upload freezes somehow and I don't know what is the reason. Please help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Errors when firing Requests
Thanks have missed it in this run, trying to do different implementations. But still getting an error; It's really a problem because i'm quiet new to GWT and Java development. Stack: 17:05:30.891 [ERROR] [domik] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext$StandardPayloadDialect.processPayload(AbstractRequestContext.java:317) at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext$4.onTransportSuccess(AbstractRequestContext.java:959) at com.google.gwt.requestfactory.client.DefaultRequestTransport$1.onResponseReceived(DefaultRequestTransport.java:141) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287) at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: Server Error: null at com.google.gwt.requestfactory.shared.Receiver.onFailure(Receiver.java:41) at com.google.gwt.requestfactory.shared.impl.AbstractRequest.onFail(AbstractRequest.java:118) at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext$StandardPayloadDialect.processPayload(AbstractRequestContext.java:288) at com.google.gwt.requestfactory.shared.impl.AbstractRequestContext$4.onTransportSuccess(AbstractRequestContext.java:959) at com.google.gwt.requestfactory.client.DefaultRequestTransport$1.onResponseReceived(DefaultRequestTransport.java:141) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287) at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?
Kevin, My solution was to make copies of both RequestFactoryServlet and SimpleRequestProcessor in a com.google.web.bindery.requestfactory.server package in my environment, and then inside MySimpleRequestProcessor.process(), add the following change: . . . assert invocationResults.size() == invocationSuccess.size(); if (!invocationResults.isEmpty()) { resp.setInvocationResults(invocationResults); resp.setStatusCodes(invocationSuccess); } // BEGIN CUSTOMIZATION IteratorBoolean successIter = invocationSuccess.iterator(); IteratorSplittable resultIter = invocationResults.iterator(); while (successIter.hasNext() resultIter.hasNext()) { Boolean success = successIter.next(); Splittable result = resultIter.next(); if (!success) { resp.setGeneralFailure( (AutoBeanCodex.decode(FACTORY, ServerFailureMessage.class, result)).as()); break; } } // END CUSTOMIZATION if (!operations.isEmpty()) { resp.setOperations(operations); } } . . . I then modified MyRequestFactoryServlet to reference MySimpleRequestProcessor, and modified my application context to launch MyRequestFactoryServlet instead of RequestFactoryServlet. This is far from ideal, but it was the only way I could find to force a general failure based on the invocation failure, since none of the methods in question are publicly accessible. It also leaves me requiring hand-edits of these files every time we upgrade to a new GWT version. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Lzizi4zPZRIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re : Developing GWT App using Tomcat
just remove App engine from your project (see https://groups.google.com/forum/#!msg/google-web-toolkit/j76nAJT7zgU/ylGhd8WeNBYJ ) Regards, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SZbfXvFzj1sJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JSNI Unkown callback
Hi, You can define an interface like : package myPackage; interface GetUrlCallback{ String getUrl(Bounds bounds); } and change the method TMSOptions#setGetURL() to accept a GetUrlCallback parameter : public native void setGetURL(GetUrlCallback callback)/*-{ this.getURL = function(bounds){return callback.@myPackage.GetUrlCallback ::getUrl(LmyPackage/Bounds;)(bounds);}; }-*/ This should work. Alexandre. 2011/9/6 Fabe fabienrenaud...@gmail.com Hi, I want to write JSNI method that can pass a Java function as parameter, but that function will not be used by me, but by the underlying API (OpenLayers in my case). Full JavaScript example: var tms = OpenLayers.Layer.TMS('My TMS Layer', '', { serviceVersion: '.', layername: 'dir1/dir2', type: 'png', getURL: overlay_getTileURL, // This function will be called each time the user moves or zooms on the map isBaseLayer: true, visibility:false }); map.addLayer(tms); function overlay_getTileURL(bounds) { // my code // return URL (string) } I have a very complete wrapper for the TMS and Bounds objects, so I can write in Java: TMSOptions myTmsOptions = new TMSOptions(); TMS tms = new TMS(My TMS Layer, , myTmsOptions); map.addLayer(tms); What I want to do now is something like this in Java: myTmsOptions.setGetURL(overlayGetTileUrl); // Can be in any class, in any package public String overlayGetTileUrl(Bounds bounds) { String url = ; // build a string url return url; } I've looked in the documentation but only found how to call a Java function for which I already know the name (and the package's name). I've searched a little in that forum but didn't find something looking like this. Is that possible ? If yes, how ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RequestPermissionException: URL is invalid or violates the same-origin security restriction
Hi, Can anyone help I am getting this error. And I have gone through all the older posts but not able to resolve. I am trying to send request to Tomcat server to get SOS data from a WAR file 52nSOSv3_WAR Error: com.google.gwt.http.client.RequestPermissionException: The URL http://localhost:8080/52nSOSv3_WAR/sos is invalid or violates the same-origin security restriction at com.google.gwt.http.client.RequestBuilder.doSend(RequestBuilder.java:380) at com.google.gwt.http.client.RequestBuilder.sendRequest(RequestBuilder.java:256) at edu.xml.gwt.ibm.tutorialDemo1.client.TutorialDemo1.doPost(TutorialDemo1.java:73) at edu.xml.gwt.ibm.tutorialDemo1.client.TutorialDemo1.onModuleLoad(TutorialDemo1.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Unknown Source) Caused by: com.google.gwt.http.client.RequestException: (TypeError): Access is denied. - My code is url = http://localhost:8080/52nSOSv3_WAR/sos;; requestquery = REQUEST=GetCapabilities; StringBuffer posturl = new StringBuffer(); posturl.append(URL.encode(url)); StringBuffer postquery = new StringBuffer(); postquery.append(URL.encode(requestquery)); RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, posturl.toString()); builder.setHeader(Content-Type,text/xml); builder.sendRequest(postquery.toString(), new RequestCallback() { public void onError(Request request, Throwable exception) { // code omitted for clarity System.out.println(exception.getCause().toString()); } @Override public void onResponseReceived(Request request,Response response) { // TODO Auto-generated method stub String var = ; var = response.getText(); System.out.println(This is response); System.out.println(var); } }); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to parse module
you can also try to compile your project with log level set to TRACE or DEBUG.. then you may see some more info.. e.g. at which line of your gwt.XML there is a problem . to change the log level I am using this code in my pom.xml: plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId ... configuration logLevelTRACE/logLevel ... /configuration /plugin hth, agi On Sep 6, 4:02 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Only have this error when use maven? With eclipse, Can you run in dev mode? 2011/9/6 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the content of Main.gwt.xml? 2011/9/6 Fábio Marigo fabiomar...@gmail.com Could someone help me with the error below? I am having trouble trying to compile the GWT module. [INFO] Module file: C:\Desenvolvimento\eclipse\workspace\SLT\project- gwt\src\main\resources\br\com\project\Main.gwt.xml Unable to parse module java.net.MalformedURLException at java.net.URL.init(URL.java:601) at java.net.URL.init(URL.java:464) at java.net.URL.init(URL.java:413) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity (XMLEntityManager.java: 650) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVers ion(XMLVersionDetector.java: 186) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co nfiguration.java: 772) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co nfiguration.java: 737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java: 119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstract SAXParser.java: 1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescripto rs(GwtWebInfProcessor.java: 151) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescripto rs(GwtWebInfProcessor.java: 168) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.init(GwtWebInfProces sor.java: 106) at com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java: 91) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP luginManager.java: 107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java: 84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java: 59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li fecycleStarter.java: 183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart er.java: 161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava: 290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java: 409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352) -- 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
Aw: RequestPermissionException: URL is invalid or violates the same-origin security restriction
Where is your app (client side javascript) hosted? If the client code is not hosted on localhost:8080 then you have the Same Origin Policy problem. RequestBuilder or better JavaScript can only do requests to URLs that belong to the same domain and port under which the JavaScript/HTML Page is accessible. This is implemented in all browsers for security reasons. Your options are: - Deploy everything (including client side code) to your external server and start the app there. That way everything will be served from localhost:8080. - use GWT's JSONPRequestBuilder which does a nifty trick to make cross domain/port requests work (you also have to update the remote servlets!) - install a webserver that supports reverse proxy (Apache, nginx, etc.) and redirect/proxy the remote requests. For example if you request http://localhost/remote/request you can proxy the request to a different host like http://localhost:8080/apprequest_uri. Thats what I do because it matches my production setup. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/01YeGjAItRsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FileUpload clicking entry field brings up file dialog
Is there a way to make FileUpload simply allow one to cutpaste, or edit the entry field? It seems like the button should bring up the file dialog and the entry field should be editable. J -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestPermissionException: URL is invalid or violates the same-origin security restriction
Thanks Jen, Can you give me a example for the third option for proxy. I am new with Java and GWT both. It will be very helpful if I have a example. I am using Apache Tomcat webserver. Proxy will be more useful since I will need to interact with few more servers in future. Regards, Vrushali On Tue, Sep 6, 2011 at 9:47 PM, Jens jens.nehlme...@gmail.com wrote: Where is your app (client side javascript) hosted? If the client code is not hosted on localhost:8080 then you have the Same Origin Policy problem. RequestBuilder or better JavaScript can only do requests to URLs that belong to the same domain and port under which the JavaScript/HTML Page is accessible. This is implemented in all browsers for security reasons. Your options are: - Deploy everything (including client side code) to your external server and start the app there. That way everything will be served from localhost:8080. - use GWT's JSONPRequestBuilder which does a nifty trick to make cross domain/port requests work (you also have to update the remote servlets!) - install a webserver that supports reverse proxy (Apache, nginx, etc.) and redirect/proxy the remote requests. For example if you request http://localhost/remote/request you can proxy the request to a different host like http://localhost:8080/apprequest_uri. Thats what I do because it matches my production setup. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/01YeGjAItRsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What about non Javascript sites?
It pretty much has to be seperate. A lot of people have to do this merely for search engine reasons (that is, dynamic content using # isnt well handeled by crawlers - assuming they handel javascript at all, which most dont). The typical way is to make a basic PHP based site which GWT provides a shiny alternative view too. While I dont know precisely what you need, you could (for example) have the PHP take data from MySQL and echo it out formated beween NOSCRIPT tags, but also have the data avaliable for the javascript by echoing it to javacript var. Either way, its a pain. On Sep 6, 3:43 pm, raks rakesh.mailgro...@gmail.com wrote: Hi, I am very taken with GWT and I believe will make maintaining my company's site easier. However, they say they need to maintain a non JavaScript version of the site. Any ideas how we can do this? Would it have to be a seperate site? Can the app be partitioned in some way? Thanks Raks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Inherited exceptions in GWT-RPC
Thanks, Colin. I'll double-check my module file and make sure the exceptions are being included for the GWT compiler. That may be the reason they're being missed. On Sep 1, 2:14 pm, Colin Alworth niloc...@gmail.com wrote: On Thursday, August 25, 2011 3:09:22 PM UTC-5, Ryan wrote: However, if I declare AException in the client, but throw either of the two child classes in the server, GWT wraps it in an InvocationException. This is the key to your issue - if the client can't de-serialize it (because the code only exists where the server can see it, not the client), it can't allow it to be thrown to the client. Unless I've misunderstood, and all three are declared in the client package, but only AException is declared as part of the RPC method signature. If that is the case, this should work as you expect. A few other things could B, C from being available to be deserialized, such as being blacklisted in your module file, or not having default (i.e. no-arg) constructors, things that would affect any other DTO expected to work with RPC. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FileUpload clicking entry field brings up file dialog
FileUpload wraps input type=file/ It does not look like HTML allows the entry to be editable http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_type_file -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/c6djl5nuctIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to test methods returning void and how to test Asynchronous calls using Mockito.
In Junit I am trying to test the method which is not returning anything using the Mockito, but I am not able to test it. == You would need to understand what this method with return type void is actually doing. If it is updating some class level variables then you can assert on those variables. If you are manipulating some objects passed into its method signature then you may need to assert on the expected values of the method signature variables. In Junit, If I am trying to test the asynchronous calls in GWT == I don't think it is necessary to JUnit test RPC calls as long as you are JUnit testing the backend services separately. RPC calls are asynchronous in nature and require GWT.create statement for Async proxy handle and that will only run under GWT container. Using mockito you can ask to handle GWT.create but what mockito really doing is really faking it as if the RPC call was successful (it doesn't make RPC call) which doesn't make sense to begin with to test it an RPC call. If you really want to just test all your RPC calls then you would need to test those methods under GWTTestcases separately and put a delay timer [delayTestFinish(TIME_TO_WAIT)] that way the test class can wait for the callback function. OnSuccess method will have an assertion and finishTest() method call. OnFailure will have fail(Failed on something : + caught.getMessage()) method. On Sep 6, 8:59 am, Anuj Garg anujgarg...@gmail.com wrote: Hi All, 1. In Junit I am trying to test the method which is not returning anything using the Mockito, but I am not able to test it. 2. In Junit, If I am trying to test the asynchronous calls in GWT using Mockito, then I am not understanding how to do it, because synchronous method gives the result in onSuccess() / onFailure() methods. Please help, If anybody has an idea how to do the testing of these kind of methods using Mockito. It would be a great help, If you will provide any help. Thanks and Regards, Anuj Kumar, Noida, India -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Error on JSON parsing
On Tuesday, September 6, 2011 1:32:23 AM UTC-7, Konstantin Zolotarev wrote: Another question. How could i get JavascriptObject using JSONParser.parseStrict() method ? Is there any example ? If you get JSON strings from a server may be you can use JsonpRequestBuilderhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/jsonp/client/JsonpRequestBuilder.html which allows cross-domain requests and nicely integrates overlay types. requestObject takes care of parsing and returns a strongly-type object -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/x0RaCXNnHb8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to create an event-based client-server communication?
guys can you help me,,, how can i make library system using GWT??? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to get the size of a Label?
Hey, I want to get the Size of a label, but I always get 0. Here is the Code: Label label= new Label(...); rootLabel.setStyleName(gwt-Label-1); int width = label.getOffsetWidth(); Is there anything wrong? I guess not... With an Absolute Panel getOffsetWidth() works. greets -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to test methods returning void and how to test Asynchronous calls using Mockito.
I use this code to test classes that depends on requestfactory (the same idea applies to gwt-rpc as well): public static class RequestFactoryUtils { public static Stubber doSuccess(final Object result) { return Mockito.doAnswer(new AnswerObject() { @Override public Object answer(InvocationOnMock invocation) throws Throwable { Object[] args = invocation.getArguments(); ReceiverObject receiver = (ReceiverObject) args[args.length - 1]; receiver.onSuccess(result); return null; } }); } } .. import static RequestFactoryUtils.*; @Test public void testSomething() { MyService service = mock(MyService.class); doSuccess(new Foo(Bar)).when(service).getFoo(any(Receiver.class)); } Of course this doesn't exercise the server implementation. For void methods, you should test it's side effects On Tue, Sep 6, 2011 at 2:22 PM, BM bhushan.ma...@gmail.com wrote: In Junit I am trying to test the method which is not returning anything using the Mockito, but I am not able to test it. == You would need to understand what this method with return type void is actually doing. If it is updating some class level variables then you can assert on those variables. If you are manipulating some objects passed into its method signature then you may need to assert on the expected values of the method signature variables. In Junit, If I am trying to test the asynchronous calls in GWT == I don't think it is necessary to JUnit test RPC calls as long as you are JUnit testing the backend services separately. RPC calls are asynchronous in nature and require GWT.create statement for Async proxy handle and that will only run under GWT container. Using mockito you can ask to handle GWT.create but what mockito really doing is really faking it as if the RPC call was successful (it doesn't make RPC call) which doesn't make sense to begin with to test it an RPC call. If you really want to just test all your RPC calls then you would need to test those methods under GWTTestcases separately and put a delay timer [delayTestFinish(TIME_TO_WAIT)] that way the test class can wait for the callback function. OnSuccess method will have an assertion and finishTest() method call. OnFailure will have fail(Failed on something : + caught.getMessage()) method. On Sep 6, 8:59 am, Anuj Garg anujgarg...@gmail.com wrote: Hi All, 1. In Junit I am trying to test the method which is not returning anything using the Mockito, but I am not able to test it. 2. In Junit, If I am trying to test the asynchronous calls in GWT using Mockito, then I am not understanding how to do it, because synchronous method gives the result in onSuccess() / onFailure() methods. Please help, If anybody has an idea how to do the testing of these kind of methods using Mockito. It would be a great help, If you will provide any help. Thanks and Regards, Anuj Kumar, Noida, India -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Error on JSON parsing
Hi. Take a look on this proyect http://code.google.com/p/piriti/ 2011/9/6 Konstantin Zolotarev konstantin.zolota...@gmail.com I'm trying to get JavaScriptObject from JSON String String looks like : {id:1,username:admin,token:dq77a4uslui7neqcvidajofrg0} I'm doing this via JSINI : public final native JavaScriptObject userFromJson(String json) /*-{ return eval(json); }-*/; And get this error : 14:18:24.740 [ERROR] [webpovise] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: Exception caught: (SyntaxError): Unexpected token : at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129) at com.google.gwt.user.client.ui.FormPanel$1.execute(FormPanel.java:640) at com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.java:310) at com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:205) at com.google.gwt.user.client.Timer.fire(Timer.java:149) 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.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source) 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.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:662) Caused by: com.google.gwt.core.client.JavaScriptException: (SyntaxError): Unexpected token : at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.webprovise.client.presenter.LoginPresenter.userFromJson(LoginPresenter.java) at com.webprovise.client.presenter.LoginPresenter$2.onSubmitComplete(LoginPresenter.java:86) at com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.java:115) at com.google.gwt.user.client.ui.FormPanel$SubmitCompleteEvent.dispatch(FormPanel.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129) at com.google.gwt.user.client.ui.FormPanel$1.execute(FormPanel.java:640) at com.google.gwt.user.client.CommandExecutor.doExecuteCommands(CommandExecutor.java:310) at com.google.gwt.user.client.CommandExecutor$2.run(CommandExecutor.java:205) at com.google.gwt.user.client.Timer.fire(Timer.java:149) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
Re: How to get the size of a Label?
the label needs to be attached before you're able to get the size. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/p58V32BHirsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Handy Bit of Code for Integrating GWT and Google Maps v3
I'm not sure, since most of the features I display in my app are geographic, so StreetView isn't much help to me. Does it work again if you clear your cache? On Sep 2, 3:44 am, Alberto sturialb...@gmail.com wrote: Hi, I had your same idea and I tried to write a function (looking at the api v3 documentation) to integrate a StreetView custom panorama: /** * @param e: element to use for the Street View panorama * @param path: image path * @param heading: horizontal angle * @param zoom: panorama zoom * @param pitch: vertical angle * @param imageName: panorama image name * @param forceSpheric: force panorama to be always spheric * @return */ final public native JavaScriptObject streetView(Element e, String path, int heading, int zoom, int pitch, String imageName, boolean forceSpheric)/*-{ var panorama; var mode='html4'; if (forceSpheric){ mode='html5'; } // Return a pano image given the panoID. function getCustomPanoramaTileUrl(pano,zoom,tileX,tileY) { // Note: robust custom panorama methods would require tiled pano data. // Here we're just using a single tile, set to the tile size and equal // to the pano world size. return path+imageName; } // Construct the appropriate StreetViewPanoramaData given // the passed pano IDs. function getCustomPanorama(pano,zoom,tileX,tileY) { switch(pano) { case 'reception': return { location: { pano: 'reception', description: }, links: [], // The text for the copyright control. copyright: , // The definition of the tiles for this panorama. tiles: { tileSize: new $wnd.google.maps.Size(e.offsetWidth, e.offsetHeight), worldSize: new $wnd.google.maps.Size(e.offsetWidth, e.offsetHeight), // The heading in degrees at the origin of the panorama // tile set. centerHeading: 105, getTileUrl: getCustomPanoramaTileUrl } }; break; } } // Set up Street View and initially set it visible. Register the // custom panorama provider function. Set the StreetView to display // the custom panorama 'reception' which we check for below. var panoOptions = { pano: 'reception', visible: true, mode: mode, addressControl: false, panoProvider: getCustomPanorama } // panorama = new $wnd.google.maps.StreetViewPanorama($doc.getElementById('panorama'),panoOptions); // panorama = new $wnd.google.maps.StreetViewPanorama(th...@dominio.sito.museov3.client.MapContainer::getElement() (), panoOptions); panorama = new $wnd.google.maps.StreetViewPanorama(e,panoOptions); panorama.setPov({ heading: heading, zoom: zoom, pitch: pitch }); return panorama; }-*/; * SimplePanel svPanel=new SimplePanel(); svPanel.setSize(300px, 200px); JavaScriptObject pano= streetView(svPanel.getElement(),/sv/, 200, 0, 0,img.jpg, true); But there's a problem: it works only once! When I try to create a new panorama (after the first time), I see a blank panorama and controls don't work. What could be the error??? Thanks for your time and help! :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FileUpload clicking entry field brings up file dialog
thanks On Sep 6, 12:07 pm, Y2i yur...@gmail.com wrote: FileUpload wraps input type=file/ It does not look like HTML allows the entry to be editablehttp://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_type_file -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Tracking multiple steps in a RPC request on the client
I'm trying to find out how to implement the following functionality. Any help would be appreciated. The client sends a RPC request to the server for a set of data. The server has to query the data, then perform some additional processinf (e.g., filter, sort) before sending it back to the client. While this processing is going on, a progess bar is displayed to the user, indicating what step is being performed (Retrieving, Filtering, etc.) I've been looking at Server Push as a potential solution, but I'm not sure how to implement it for this situation. I suppose the server could send status messages indicating completion of each step in the process before sending the final result set. Am I on the right track? Thank 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Errors when firing Requests
I have defined an custom servlet extending the default RequestFactoryServlet and passed a custom exception handler in the constructor.. That has shown me a real causes of my problem located on the server side. Good tutorial to define a custom servlet can be found here http://cleancodematters.wordpress.com/2011/05/29/improved-exceptionhandling-with-gwts-requestfactory/#more-74 . I hope it will also help others. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LobdLThMeH0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Tracking multiple steps in a RPC request on the client
Make an async RPC call and update UI on OnSuccess/OnFailure() Mohit On Wed, Sep 7, 2011 at 1:13 AM, Nestor nestord...@gmail.com wrote: I'm trying to find out how to implement the following functionality. Any help would be appreciated. The client sends a RPC request to the server for a set of data. The server has to query the data, then perform some additional processinf (e.g., filter, sort) before sending it back to the client. While this processing is going on, a progess bar is displayed to the user, indicating what step is being performed (Retrieving, Filtering, etc.) I've been looking at Server Push as a potential solution, but I'm not sure how to implement it for this situation. I suppose the server could send status messages indicating completion of each step in the process before sending the final result set. Am I on the right track? Thank 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
One codebase for all sorts of targets??
I'm trying to take a Java application that's targeted to run on the desktop or as an applet and get it to also run on Tablets (I'm not targeting phones). It's clearly not a trivial task. A main concern is to keep a single code base for all target environments. So GWT is a possibility. We use obfuscators/compressors in the build/release process to cut down on class file sizes when targeting specific environments. (Did I mention several ActiveX environments?) GWT seems to do a good job of obfuscation/compression and claims to do a good job of dead code elimination. But it doesn't seem to be configurable. I can't tell it what to include or exclude. I'm assuming it uses code-reachability only. Which leads to my next (somewhat different) point: It seems to not be possible to break up a GWT app into multiple .js files. I was hoping that the user could download and cache the pieces of the app he needs as he comes to use them. Is there anyway to do that? One more slightly related question: Given that the GWT-compiled code is obfuscated, is there any way to de-obfuscate client side generated JavaScriptExceptions so as to have some chance of debugging user-reported bugs? Thanks for any help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nKnwv9yD24gJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?
RF invocations are batched in a single HTTP request, but there's no implied transaction. You're free to use a transaction-per-HTTP-request scheme, or a transaction-per-invocation one (or no transaction at all). So when an invocation fail, RF doesn't assume the whole batch can be sent again. BTW, batching things in a single HTTP request is a network optimization (less HTTP requests = better overall performance). You'd want to batch an important data update with an unimportant retrieval; and you wouldn't want a failing unimportant retrieval to make the important update fail as well. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/PTS_8oe0_N4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
why does it take a whole MINUTE for gwt designer to parse an empty class of splitLayoutPanel
this doesn't' make sense i have a core 2 due, and i create a class called main which extends SplitLayoutPanel. i switch to design and it take around 60 seconds for it to parse! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
why does the order of adding panels to SplitLayoutPanel count?
given between this code: final StackLayoutPanel menu = new StackLayoutPanel(Unit.EM); final VerticalPanel verticalPanel_1 = new VerticalPanel(); menu.add(verticalPanel_1, new HTML(New Widget), 2.0); final VerticalPanel verticalPanel = new VerticalPanel(); menu.add(verticalPanel, new HTML(New Widget), 2.0); addEast(menu, 187.0); and this one: final StackLayoutPanel menu = new StackLayoutPanel(Unit.EM); addEast(menu, 187.0); final VerticalPanel verticalPanel_1 = new VerticalPanel(); menu.add(verticalPanel_1, new HTML(New Widget), 2.0); final VerticalPanel verticalPanel = new VerticalPanel(); menu.add(verticalPanel, new HTML(New Widget), 2.0); i get 2 different results in the gwt designer, why? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Fr5KC31bZV0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: One codebase for all sorts of targets??
It seems to not be possible to break up a GWT app into multiple .js files. I was hoping that the user could download and cache the pieces of the app he needs as he comes to use them. Is there anyway to do that? You can use GWT's code splitting (http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodeSplitting.html) to do so. One more slightly related question: Given that the GWT-compiled code is obfuscated, is there any way to de-obfuscate client side generated JavaScriptExceptions so as to have some chance of debugging user-reported bugs? Take a look at: http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/z1BGKGA1zJAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to get the size of a Label?
Ok, but when I attached the Label to the AbsolutePanel and do getOffsetWidth(), I get for Example a width of 700px for the AbsolutePanel and a width of 698px for the Label. Certainly the label is less smaller. Is there any reason for? I want to place the Label at the center of the Panel, but therefore I have to know the size of the Label. On 6 Sep., 20:49, Jeff Larsen larse...@gmail.com wrote: the label needs to be attached before you're able to get the size. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to parse module
The DEBUG log. 2011/9/6 agi agata.p...@gmail.com you can also try to compile your project with log level set to TRACE or DEBUG.. then you may see some more info.. e.g. at which line of your gwt.XML there is a problem . to change the log level I am using this code in my pom.xml: plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId ... configuration logLevelTRACE/logLevel ... /configuration /plugin hth, agi On Sep 6, 4:02 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Only have this error when use maven? With eclipse, Can you run in dev mode? 2011/9/6 Juan Pablo Gardella gardellajuanpa...@gmail.com Can you share the content of Main.gwt.xml? 2011/9/6 Fábio Marigo fabiomar...@gmail.com Could someone help me with the error below? I am having trouble trying to compile the GWT module. [INFO] Module file: C:\Desenvolvimento\eclipse\workspace\SLT\project- gwt\src\main\resources\br\com\project\Main.gwt.xml Unable to parse module java.net.MalformedURLException at java.net.URL.init(URL.java:601) at java.net.URL.init(URL.java:464) at java.net.URL.init(URL.java:413) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity (XMLEntityManager.java: 650) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVers ion(XMLVersionDetector.java: 186) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co nfiguration.java: 772) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co nfiguration.java: 737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java: 119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstract SAXParser.java: 1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser.parse(SAXParserImpl.java:522) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescripto rs(GwtWebInfProcessor.java: 151) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescripto rs(GwtWebInfProcessor.java: 168) at com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.init(GwtWebInfProces sor.java: 106) at com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java: 91) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP luginManager.java: 107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java: 84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java: 59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li fecycleStarter.java: 183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart er.java: 161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava: 290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java: 409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352) -- You received this message
Re: Developing GWT App using Tomcat
Hi Ashwani, You have two parts in a GWT application : 1) Client part : - User interface ( panels, menus, grids, tree etc) - javascript generated by the GWT compiler from your java client code 2) Server part : - Servlets which receive requests across RPC calls from the client - any logic business part for your application ( classes, packages, external java framework etc...) So, you should have two package e.g com.myapp.client and com.myapp.server. In Eclipse, add mysql connector reference ( for me it's connector-java-5.1.14-bin.jar ) in your project settings, as you do for other java library. In your server part code, connect to your database as you do in other standard J2EE application. By proceeding like that, you ensure having a standard behaviour for your application. You can test your applcation with your database in DEV and TEST mode. When you deploy, the client part will be compiled in javascript to manage the UI ( DHTML scripting based ). The generated javascript will make the AJAX calls to your server part and feed your UI components as you decided in your client code. Don't forget to put MySql connector jar, in the correct tomcat installation subfolder.( for me it's /usr/share/tomcat5.5/common/lib/mysql-connector-java-5.1.14-bin.jar ). I'm surprised that you can't debug your code !!! It should work, you should be abble to debug your application. I think something is missing to your project settings. I hope it helps. Regards. Karim Duran 2011/9/6 Ashwani ashw.ku...@gmail.com Hi, I was developing simple app using embeded jetty server in GWT Designer till i got stuck when i was connecting to mysql db. The same code for connection works very well, if i run it as java application. But was failing when running using embedded server. The I decided to put the app on tomcat and then develop using it. Now the connection works but i face issue while development: 1) The option Debug-Web Application (running on external server) does not work. i.e break points are not hit. 2) Everytime i add code, i have re-deploy my application. How can work properly with Tomcat as server and GWT Designer as IDE ? Regards, Ashwani Kr Sharma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
NoClassDefFoundError on Tomcat versus Hosted Mode with Jetty
I have identical code that throws a NoClassDefFoundError when executing on Tomcat versus works fine with Hosted Mode with Jetty. The exception is: ERROR ajp-8009-3 org.apache.catalina.core.ContainerBase.[Catalina]. [localhost].[/GSSCalendar] - Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.company.client.EngineerDAOService.readCalendarFromEngineer(java.lang.String) throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.NoClassDefFoundError: Could not initialize class net.fortuna.ical4j.data.CalendarParserFactory at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) The WEB-INF/lib is: ls war/WEB-INF/lib/ antlr-2.7.6.jar hibernate3.jar backport-util-concurrent-3.1.jar ical4j-1.0- rc3.jar c3p0-0.9.1.jar javassist-3.12.0.GA.jar commons-collections-3.1.jar joda- time-2.0.jar commons-io-2.0.1.jar jta-1.1.jar dom4j-1.6.1.jar log4j-1.2.16.jar gwt-servlet.jar mysql- connector-java-5.1.17-bin.jar hibernate-jpa-2.0-api-1.0.1.Final.jarslf4j- api-1.6.1.jar hibernate-validator-4.2.0.Final.jar slf4j- log4j12-1.6.2.jar hibernate-validator-annotation-processor-4.2.0.Final.jar validation- api-1.0.0.GA.jar Which contains the ical4j-1.0-rc3.jar: egrep -ir CalendarParserFactory /var/lib/tomcat6/webapps/GSSCalendar/ WEB-INF/lib/ Binary file /var/lib/tomcat6/webapps/GSSCalendar/WEB-INF/lib/ ical4j-1.0-rc3.jar matches So the class is definitely there in the jar in the WEB-INF/lib in the webapp. The code that throws this looks like (abridged): engineerService.readCalendarFromEngineer(userid, new AsyncCallbackString() {...} com.jboss.support.server.EngineerDAOServiceImpl.java contains: @Override public String readCalendarFromEngineer(String userid) throws IllegalArgumentException { CalendarParser calendarParser = new CalendarParser(); return calendarParser.readEngineerCalendar(userid); } It is in the CalendarParser where the ical libraries are called. Only the server side should ever touch the ical libraries, and from looking at the code I've written, that is the case. I can't figure out why then on the RPC call the CalendarParserFactory can't be found in Tomcat. Any and all help is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JSNI - Managing arrays in native method
Hi, I'm having a JS exception saying null when running the following code: //Java Code bingMap.addPolyline(locationsArray); //JSNI Code public native void addPolyline(Location[] locations)/*-{ for (var i = 0; i locations.length; i++){ alert(locations[i]); } }-*/ Is an extra processing required when managing arrays passed by parameter to a native method? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
HTML and printing in GWT
Looking at moving our (old) app to GWT. Have pieces of the app working and thinking about parts that may be difficult to move over. One thing we do is to create reports that are formatted in HTML and depend on the browser(s) to print. A report may be a few pages long. We currently create a printer friendly version of a report that utilizes HTML/CSS page breaks. We also allow for batch printing of reports, where a bunch of reports appear - one after the other - as one long HTML page. This has worked nicely for a few years now. The way things work internally is pretty simple. All of our data is in XML. We simply runs an XSLT transform to create customer specific reports. The output of the transform is HTML, which we simply dump onto a web page. For batch printing, we just loop on this to create on long web page. With GWT being largely Javascript, any tips on how one would go about doing this? If a report or bunch of reports were placed into an HtmlPanel, would that do the trick? I'm interesting in hearing any suggestions. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
To the headhunters
There are two kinds of headhunters: 0. those who answer the phone; 1. those who don't. This post is dedicated to the second set. Those who hide behind answering machines or rely on bureaucratic receptionists to accept a pie in face. We've all seen the botched requirements they produce. Here's an example for an operating system in which I'm interested Extensive COBOL Development and Support including expertise in Cobol programming, DCL postscripts Postscripts Isn't that special? At least they put COBOL in all caps. Once. We get used to such inanities. We shrug. We sigh. Sometimes we call and perhaps try to correct the error. Duped by a telephone number on an obscure website, we assume there will be a response. To such as these I send a resume the cover letter of which is a buzzword bingo card. This morning, while trying to get the attention of Kaztronix, and Smart Synergies, I decided to compose a new buzzword bingo card. I fired up Emacs, constructed the card and sent it off with the resume. Then I realized, someone must have a website that generates these cards. Sure enough, I found http://lurkertech.com/buzzword-bingo/. As a an exercise, I've converted the JavaScript to Google Web Toolkit. You can find the source code at http://code.google.com/p/gwt-buzzword-bingo, and test the results at http://jchimene.com/BuzzwordBingo.html. Born out of frustration, as an exercise in speed conversion, it's not nearly complete. Nevertheless, it generates a card, and the process took less than four hours from start to the first version. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Backend Socket Connection
Hi, I'm trying to develop an application with GWT that shows data related to position of planes in flying. The architecture of the system consist on the follow components: A data server responsible for sending data to the moment they arrive, via a specific protocol, to the application server. The web application server. The problem is that I can't implement the client side, the web server, of the protocol to recieve the data. Any help?Please. What library can I use? Thank you very much. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re : Developing GWT App using Tomcat
Hi, For Option 1: I tried to remove the app engine by doing following steps: 1) In project - properties go to Google-App Engine 2) Unselect the option Use Google App Engine I get following error when running the Application as Web Application Exception in thread main java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V at org.mortbay.io.nio.SelectorManager $SelectSet.init(SelectorManager.java:306) at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java: 223) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java: 303) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 667) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) If i use Google App Engine, i get following error when i tried to access the DB: java.sql.SQLException: URL is not in the correct format: jdbc:mysql:// localhost:3306/upskillingdb at com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(Exceptions.java: 103) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.sap.upskillingmanager.server.DataBaseConnector.getConnection(DataBaseConnector.java: 54) at com.sap.upskillingmanager.server.DataBaseServicesImpl.addTraining(DataBaseServicesImpl.java: 17) Any hints on how i can remove GAE from my project and use jetty server for development ? Thanks and Regards, Ashwani Kr Sharma On Sep 6, 8:22 pm, Jeanpylone jeanpyl...@gmail.com wrote: just remove App engine from your project (seehttps://groups.google.com/forum/#!msg/google-web-toolkit/j76nAJT7zgU/... ) Regards, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Developing GWT App using Tomcat
Thanks Karim. I have done the same and then i am getting errors. Please refer to my last post for more information about errors. Regards, Ashwani Kr Sharma On Sep 7, 2:27 am, karim duran karim.du...@gmail.com wrote: Hi Ashwani, You have two parts in a GWT application : 1) Client part : - User interface ( panels, menus, grids, tree etc) - javascript generated by the GWT compiler from your java client code 2) Server part : - Servlets which receive requests across RPC calls from the client - any logic business part for your application ( classes, packages, external java framework etc...) So, you should have two package e.g com.myapp.client and com.myapp.server. In Eclipse, add mysql connector reference ( for me it's connector-java-5.1.14-bin.jar ) in your project settings, as you do for other java library. In your server part code, connect to your database as you do in other standard J2EE application. By proceeding like that, you ensure having a standard behaviour for your application. You can test your applcation with your database in DEV and TEST mode. When you deploy, the client part will be compiled in javascript to manage the UI ( DHTML scripting based ). The generated javascript will make the AJAX calls to your server part and feed your UI components as you decided in your client code. Don't forget to put MySql connector jar, in the correct tomcat installation subfolder.( for me it's /usr/share/tomcat5.5/common/lib/mysql-connector-java-5.1.14-bin.jar ). I'm surprised that you can't debug your code !!! It should work, you should be abble to debug your application. I think something is missing to your project settings. I hope it helps. Regards. Karim Duran 2011/9/6 Ashwani ashw.ku...@gmail.com Hi, I was developing simple app using embeded jetty server in GWT Designer till i got stuck when i was connecting to mysql db. The same code for connection works very well, if i run it as java application. But was failing when running using embedded server. The I decided to put the app on tomcat and then develop using it. Now the connection works but i face issue while development: 1) The option Debug-Web Application (running on external server) does not work. i.e break points are not hit. 2) Everytime i add code, i have re-deploy my application. How can work properly with Tomcat as server and GWT Designer as IDE ? Regards, Ashwani Kr Sharma -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email togoogle-web-tool...@googlegroups.com. To unsubscribe from this group, send email togoogle-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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Menu options missing in GWT Designer
I just installed GWT in Eclipse 3.7 (STS) and there are no menu options to add GXT or EXTjs or a new Composite... I can create a new Web App and things like Client Bundle, UiBinder. Any Ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Menu options missing in GWT Designer
Sigh. The Update site in that is created by clicking Extensions does NOT provide everything that is need. The url on the GWT site must be used. On Sep 6, 11:13 pm, mnuttall mknutt...@gmail.com wrote: I just installed GWT in Eclipse 3.7 (STS) and there are no menu options to add GXT or EXTjs or a new Composite... I can create a new Web App and things like Client Bundle, UiBinder. Any Ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re : Developing GWT App using Tomcat
My short answer is develop in dev mode as is and deploy in any servlet container you prefer. If you go to debug configuration, in server tab, you only see embedded server which is nothing but jetty dev mode. In short there may not be any easy way to debug in other servers. But you should be able to develop in DEV mode and deploy in any servlet container. Once you make war file, there is nothing specific to jetty. I just have three jars in my web/lib - gwt_servlet.jar,appengine- api-1.0-sdk-1.5.2.jar,appengine-api-labs-1.5.2.jar - If you want to run on tomcat you may or may not need any of these. Global School District http://schoolk12.appspot.com/ On Sep 6, 7:19 pm, Ashwani ashw.ku...@gmail.com wrote: Hi, For Option 1: I tried to remove the app engine by doing following steps: 1) In project - properties go to Google-App Engine 2) Unselect the option Use Google App Engine I get following error when running the Application as Web Application Exception in thread main java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V at org.mortbay.io.nio.SelectorManager $SelectSet.init(SelectorManager.java:306) at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java: 223) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector .java: 303) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 667) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) If i use Google App Engine, i get following error when i tried to access the DB: java.sql.SQLException: URL is not in the correct format: jdbc:mysql:// localhost:3306/upskillingdb at com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(E xceptions.java: 103) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.sap.upskillingmanager.server.DataBaseConnector.getConnection(DataBaseCo nnector.java: 54) at com.sap.upskillingmanager.server.DataBaseServicesImpl.addTraining(DataBaseS ervicesImpl.java: 17) Any hints on how i can remove GAE from my project and use jetty server for development ? Thanks and Regards, Ashwani Kr Sharma On Sep 6, 8:22 pm, Jeanpylone jeanpyl...@gmail.com wrote: just remove App engine from your project (seehttps://groups.google.com/forum/#!msg/google-web-toolkit/j76nAJT7zgU/... ) Regards, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Backend Socket Connection
May be you can build json wrapper over your socket server and make REST request from client,some tricks are there to overcome same origin policy. From back end, I guess app engine allows URL fetch across domains. Global School District http://schoolk12.appspot.com/ On Sep 6, 5:48 pm, Nicolas spnic...@gmail.com wrote: Hi, I'm trying to develop an application with GWT that shows data related to position of planes in flying. The architecture of the system consist on the follow components: A data server responsible for sending data to the moment they arrive, via a specific protocol, to the application server. The web application server. The problem is that I can't implement the client side, the web server, of the protocol to recieve the data. Any help?Please. What library can I use? Thank you very much. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re : Developing GWT App using Tomcat
Hi, I will also prefer to run on embedded server i.e. jetty and i can not use GAE, because it prevent connecting to data bases. Hence, - I disabled GAE by going to project properties and disabling checkbox Use Google App Engine - In debug configuration the App Engine tab is hence have all empty un-editable fields. Now when i launch the conf i get following error: java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V at org.mortbay.io.nio.SelectorManager$SelectSet.init(SelectorManager.java:306) at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:223) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:303) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:667) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) How to fix this ? Thanks and Regards, Ashwani Kr Sharma On Wed, Sep 7, 2011 at 9:58 AM, dreamer venugopal.vasire...@gmail.comwrote: My short answer is develop in dev mode as is and deploy in any servlet container you prefer. If you go to debug configuration, in server tab, you only see embedded server which is nothing but jetty dev mode. In short there may not be any easy way to debug in other servers. But you should be able to develop in DEV mode and deploy in any servlet container. Once you make war file, there is nothing specific to jetty. I just have three jars in my web/lib - gwt_servlet.jar,appengine- api-1.0-sdk-1.5.2.jar,appengine-api-labs-1.5.2.jar - If you want to run on tomcat you may or may not need any of these. Global School District http://schoolk12.appspot.com/ On Sep 6, 7:19 pm, Ashwani ashw.ku...@gmail.com wrote: Hi, For Option 1: I tried to remove the app engine by doing following steps: 1) In project - properties go to Google-App Engine 2) Unselect the option Use Google App Engine I get following error when running the Application as Web Application Exception in thread main java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V at org.mortbay.io.nio.SelectorManager $SelectSet.init(SelectorManager.java:306) at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java: 223) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector .java: 303) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 667) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) If i use Google App Engine, i get following error when i tried to access the DB: java.sql.SQLException: URL is not in the correct format: jdbc:mysql:// localhost:3306/upskillingdb at com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(E xceptions.java: 103) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.sap.upskillingmanager.server.DataBaseConnector.getConnection(DataBaseCo nnector.java: 54) at com.sap.upskillingmanager.server.DataBaseServicesImpl.addTraining(DataBaseS ervicesImpl.java: 17) Any hints on how i can remove GAE from my project and use jetty server for development ? Thanks and Regards, Ashwani Kr Sharma On Sep 6, 8:22 pm, Jeanpylone jeanpyl...@gmail.com wrote: just remove App engine from your project (seehttps:// groups.google.com/forum/#!msg/google-web-toolkit/j76nAJT7zgU/... ) Regards, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options,
Apache reverse proxy
Hi, I need to setup reverse proxy for Apache Tomcat server. I am using RequestBuilder and Sendrequest function to send http requests and it is unable to access SOS Jar data in webapp folder of tomcat.. And it needs to interact with Tomcat and some other servers later. Since I am new with GWT and Java please give some example. Thanks, Vrushali -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Apache reverse proxy
Also I have gone through earlier posts too but didn't find complete details. On Wed, Sep 7, 2011 at 10:31 AM, Vrushali Patil vrush.iit...@gmail.comwrote: Hi, I need to setup reverse proxy for Apache Tomcat server. I am using RequestBuilder and Sendrequest function to send http requests and it is unable to access SOS Jar data in webapp folder of tomcat.. And it needs to interact with Tomcat and some other servers later. Since I am new with GWT and Java please give some example. Thanks, Vrushali -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Add ability to control time zone in DateCell. (issue1539803)
LGTM http://gwt-code-reviews.appspot.com/1539803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10616 committed - Fix typo
Revision: 10616 Author: rj...@google.com Date: Tue Sep 6 09:25:45 2011 Log: Fix typo http://code.google.com/p/google-web-toolkit/source/detail?r=10616 Modified: /wiki/RequestFactory_2_4.wiki === --- /wiki/RequestFactory_2_4.wiki Mon Aug 15 07:40:18 2011 +++ /wiki/RequestFactory_2_4.wiki Tue Sep 6 09:25:45 2011 @@ -74,7 +74,7 @@ ctxA.requestA().to(new ReceiverBoolean(){}); ContextB ctxB = ctxA.append(factory.ctxB()); // ctxA is still completely usable after calling append() -ctxB.requestB().to(new ReceiverBoolean(){}); +ctxB.requestB().to(new ReceiverInteger(){}); ctxA.fire(); // ctxB.fire() would be equivalent } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Comment on RequestFactory_2_4 in google-web-toolkit
Fixed, thanks. On Monday, September 5, 2011, wrote: Comment by ido@gmail.com: In Improved request batching section the sample has typo: ctxB.requestB().to(new ReceiverBoolean(){}); should be ctxB.requestB().to(new ReceiverInteger(){}); For more information: http://code.google.com/p/**google-web-toolkit/wiki/**RequestFactory_2_4http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_4 -- http://groups.google.com/**group/Google-Web-Toolkit-**Contributorshttp://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Event handling support for UiRenderer (issue1534806)
On 2011/09/02 00:01:48, rjrjr wrote: http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1202 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1202: try { Should use the TypeOracle, not reflection Here I need to actually call XEvent.getType().getName() to figure out the string the class is associated with. How do I go about using TypeOracle for that? http://gwt-code-reviews.appspot.com/1534806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: ui:with to set property values (issue1524803)
So, let me try to clear up what I'm afraid about in more detail. The lazy widgets code generation splits attribute creation and access by creating 2 methods build_XYZ(), and get_XYZ(). All setters are called in the build_XYZ() part, so you'd have something like this: private void build_layoutData() { this.layoutData = GWT.create(LayoutDataType.class); // or owner.layoutData if it's provided this.layoutData.setLeft(15); this.layoutData.setComplexAttribute(get_otherObject()); } private void build_otherObject() { this.otherObject = GWT.create(OtherObjectType.class); // or owner.layoutData if it's provided this.otherObject.setRight(15); this.otherObject.setColor(#FFF); } private OtherObjectType get_otherObject() { return this.otherObject; } private LayoutDataType get_layoutData() { return this.layoutData; } The only way this can work is if build_otherObject() is called before build_layoutData(). I don't think there's anything in the code right now that guarantees this. There is the notion of per-type precedence and we do look at direct links. That means that we always create resources before ui:fields, and that we look at some signals to see which ui:fields should be created before the other, but I'm pretty sure that logic won't get this new flow. Makes sense? On Tue, Sep 6, 2011 at 8:52 AM, Ray Ryan rj...@google.com wrote: On Monday, September 5, 2011, wrote: I wouldn't see that as a problem. From my understanding, the generated code always generates where all field declarations are at the top, then all the setters are called and lastly all event listeners are created (for UiHandler methods). Where I would see the problem, however, is with constructor parameters. In this case, order of ui:with declarations would matter. You also have to watch out for cyclic dependencies, but that's the same for any development. Fortunately, with the way this code was modified, if the nested ui:attributes is missing, the behavior falls back to original behavior. More complex object creation should be done in the owner class. Could you remind us what the original behavior is? The failure mode needs to be better than bad code gen. Basically we need unit tests covering the cases you point out. On 2011/09/05 17:23:57, rdcastro wrote: What worried me at first was having one of the attributes being set to a value that's also defined via ui:with, because I think that then our precedence scheme may break. I'm afraid that if you have something like this: ui:with type=some.LayoutData field=layoutData ui:attributes left=15 complexAttribute={otherObject} /ui:with ui:with type=some.LayoutData field=otherObject ui:attributes right=15 color=#FFF /ui:with we are not guaranteed to build otherObject before you do layoutData.setComplexAttribute(otherObject); On Fri, Sep 2, 2011 at 3:56 PM, mailto:rj...@google.com wrote: Thanks for the test. Rafa, I've lost track of what to worry about wrt the ordering. Should we be tossing a LazyPanel or something like that into his test to shake things out? http://gwt-code-reviews.appspot.com/1524803/ http://gwt-code-reviews.appspot.com/1524803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Event handling support for UiRenderer (issue1534806)
Oh, crazy! I didn't notice that you were invoking it at compile time. And I suppose that's going to let it fail at compile time instead of runtime, isn't it? Okey doke. On Tuesday, September 6, 2011, wrote: On 2011/09/02 00:01:48, rjrjr wrote: http://gwt-code-reviews.**appspot.com/1534806/diff/1/** user/src/com/google/gwt/**uibinder/rebind/**UiBinderWriter.java#** newcode1202http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1202 user/src/com/google/gwt/**uibinder/rebind/**UiBinderWriter.java:1202: try { Should use the TypeOracle, not reflection Here I need to actually call XEvent.getType().getName() to figure out the string the class is associated with. How do I go about using TypeOracle for that? http://gwt-code-reviews.**appspot.com/1534806/http://gwt-code-reviews.appspot.com/1534806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Event handling support for UiRenderer (issue1534806)
http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java File user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java (right): http://gwt-code-reviews.appspot.com/1534806/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1215 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1215: formatMethodError(targetType, jMethod), e.getMessage()); Could you consolidate all these identical die calls into a single private method? http://gwt-code-reviews.appspot.com/1534806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Serialization of Final Fields in RPC (issue1380807)
http://gwt-code-reviews.appspot.com/1380807/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Remove duplicate loop over cached units. (issue1463802)
Ping. http://gwt-code-reviews.appspot.com/1463802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Updates pom.xml to use new Request Factory libraries (issue1541803)
Reviewers: rjrjr, drfibonacci, Description: Updates pom.xml to use new Request Factory libraries Please review this at http://gwt-code-reviews.appspot.com/1541803/ Affected files: M samples/mobilewebapp/pom.xml Index: samples/mobilewebapp/pom.xml === --- samples/mobilewebapp/pom.xml(revision 10615) +++ samples/mobilewebapp/pom.xml(working copy) @@ -48,10 +48,15 @@ !-- Google Web Toolkit (GWT) itself -- dependency - groupIdcom.google.gwt/groupId - artifactIdgwt-servlet/artifactId + groupIdcom.google.web.bindery/groupId + artifactIdrequestfactory-server/artifactId version${gwtVersion}/version scoperuntime/scope +/dependency +dependency + groupIdcom.google.web.bindery/groupId + artifactIdrequestfactory-apt/artifactId + version${gwtVersion}/version /dependency dependency groupIdcom.google.gwt/groupId @@ -75,12 +80,6 @@ /dependency !-- GWT RequestFactory will use JSR 303 javax.validation if you let it -- -dependency - groupIdjavax.validation/groupId - artifactIdvalidation-api/artifactId - version1.0.0.GA/version - classifiersources/classifier -/dependency dependency groupIdorg.hibernate/groupId artifactIdhibernate-validator/artifactId @@ -97,17 +96,7 @@ /exclusions /dependency -!-- GWT RequestFactory requires org.json -- -!-- TODO: can we declare the json and validation dependencies somewhere for the world to pick up, -rather than requiring everyone to know about them? -- -dependency - groupIdorg.json/groupId - artifactIdjson/artifactId - version20090211/version -/dependency - !-- Google App Engine (GAE) itself -- - dependency groupIdcom.google.appengine/groupId artifactIdappengine-api-1.0-sdk/artifactId @@ -172,11 +161,11 @@ version1.6.1/version /dependency /dependencies - + build -!-- Generate compiled stuff in the folder used for developing mode -- +!-- Generate compiled stuff in the folder used for developing mode -- outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/classes/outputDirectory - + plugins !-- GWT Maven Plugin-- plugin @@ -200,7 +189,7 @@ version${gwtVersion}/version /dependency /dependencies -!-- JS is only needed in the package phase, this speeds up testing -- +!-- JS is only needed in the package phase, this speeds up testing -- executions execution phaseprepare-package/phase @@ -209,8 +198,8 @@ /goals /execution /executions -!-- Plugin configuration. There are many available options, - see gwt-maven-plugin documentation at codehaus.org -- +!-- Plugin configuration. There are many available options, + see gwt-maven-plugin documentation at codehaus.org -- configuration !-- URL that should be automatically opened in the GWT shell (gwt:run). -- runTargetMobileWebApp.html/runTarget @@ -255,7 +244,7 @@ useManifestOnlyJarfalse/useManifestOnlyJar forkModealways/forkMode - !-- Folder for generated testing stuff -- + !-- Folder for generated testing stuff -- systemProperties property namegwt.args/name -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Updates pom.xml to use new Request Factory libraries (issue1541803)
LGTM Nice! On Tue, Sep 6, 2011 at 1:22 PM, rchan...@google.com wrote: Reviewers: rjrjr, drfibonacci, Description: Updates pom.xml to use new Request Factory libraries Please review this at http://gwt-code-reviews.**appspot.com/1541803/http://gwt-code-reviews.appspot.com/1541803/ Affected files: M samples/mobilewebapp/pom.xml Index: samples/mobilewebapp/pom.xml ==**==**=== --- samples/mobilewebapp/pom.xml(revision 10615) +++ samples/mobilewebapp/pom.xml(working copy) @@ -48,10 +48,15 @@ !-- Google Web Toolkit (GWT) itself -- dependency - groupIdcom.google.gwt/**groupId - artifactIdgwt-servlet/**artifactId + groupIdcom.google.web.**bindery/groupId + artifactIdrequestfactory-**server/artifactId version${gwtVersion}/**version scoperuntime/scope +/dependency +dependency + groupIdcom.google.web.**bindery/groupId + artifactIdrequestfactory-**apt/artifactId + version${gwtVersion}/**version /dependency dependency groupIdcom.google.gwt/**groupId @@ -75,12 +80,6 @@ /dependency !-- GWT RequestFactory will use JSR 303 javax.validation if you let it -- -dependency - groupIdjavax.validation/**groupId - artifactIdvalidation-api/**artifactId - version1.0.0.GA/version - classifiersources/**classifier -/dependency dependency groupIdorg.hibernate/**groupId artifactIdhibernate-**validator/artifactId @@ -97,17 +96,7 @@ /exclusions /dependency -!-- GWT RequestFactory requires org.json -- -!-- TODO: can we declare the json and validation dependencies somewhere for the world to pick up, -rather than requiring everyone to know about them? -- -dependency - groupIdorg.json/groupId - artifactIdjson/artifactId - version20090211/version -/dependency - !-- Google App Engine (GAE) itself -- - dependency groupIdcom.google.appengine**/groupId artifactIdappengine-api-1.0-**sdk/artifactId @@ -172,11 +161,11 @@ version1.6.1/version /dependency /dependencies - + build -!-- Generate compiled stuff in the folder used for developing mode -- +!-- Generate compiled stuff in the folder used for developing mode -- outputDirectory${project.**build.directory}/${project.** build.finalName}/WEB-INF/**classes/outputDirectory - + plugins !-- GWT Maven Plugin-- plugin @@ -200,7 +189,7 @@ version${gwtVersion}/**version /dependency /dependencies -!-- JS is only needed in the package phase, this speeds up testing -- +!-- JS is only needed in the package phase, this speeds up testing -- executions execution phaseprepare-package/phase @@ -209,8 +198,8 @@ /goals /execution /executions -!-- Plugin configuration. There are many available options, - see gwt-maven-plugin documentation at codehaus.org -- +!-- Plugin configuration. There are many available options, + see gwt-maven-plugin documentation at codehaus.org -- configuration !-- URL that should be automatically opened in the GWT shell (gwt:run). -- runTargetMobileWebApp.html/**runTarget @@ -255,7 +244,7 @@ useManifestOnlyJarfalse/**useManifestOnlyJar forkModealways/forkMode - !-- Folder for generated testing stuff -- + !-- Folder for generated testing stuff -- systemProperties property namegwt.args/name -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] less name mangling
Thanks Steve! We chatted, and Ray C is up for reviewing this, but I'm afraid it'll be the usual maybe-this-week drill. On Fri Sep 02 13:06:44 GMT-700 2011, Stephen Haberman wrote: I'd prefer this problem to be addressed in separate CL independent from of our effort. Here is a commit with just the name mangling. If there are any volunteers from the GWT team to review it, I'll promote it to an issue. https://github.com/stephenh/scalagwt-gwt/commit/5fb1f9717424b8c604f9f2c84b0bc713dcb2http://www.google.com/url?sa=Dq=https://github.com/stephenh/scalagwt-gwt/commit/5fb1f9717424b8c604f9f2c84b0bc713dcb2 I do have a dangling todo in there, but it's somewhat tangential, so I'll avoid it until prompted. - Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors