CALLING WEBSERVICE FROM SMART GWT
Hi , I want to call a web service from my smart gwt client. I am very new to webservices and soap. I want to test it locally first,if i have a sample web service in my tomcat server,how can i call that service from smart gwt client? I have a small idea ,the first step is to send a soap request to the webservice,second is to get the soap response.I am sending one XML to the webservice ,getting another XML from the webservicev,XSD for validation . In these steps ,how can i use XML and XSD,i have XML and XSD . If you have any experience with this ,please help me to start -- 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/-/buhL83q5mUUJ. 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.
SEAT MAP
Hi , I want to include a *AIRLINE SEAT MAP* in my SMART GWT application. Did anyone do this ? if yes can you help me out ? I googled a lot but i did not find any links Thanks Nitheesh -- 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/-/S_Ibele1_z0J. 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 AND SOAP
Okay thanks for the information. Do you have experience of writing a soap client on the GWT server ? or else can i get any links regarding that ?Or do we have any alternatives that can be used instead of SOAP ? On Thursday, July 26, 2012 1:59:28 AM UTC+5:30, Rob Whiteside wrote: You are right that GWT does NOT have built in support for making SOAP calls. GWT (like all javascript that runs in the browser) is subject to Same-Origin-Policy rules. So you couldn't call any remote soap service anyway. You can to do GWT-RPC to get to your server, then write a soap client on the server that sorta proxies the calls to the soap webservice. --Rob On Tuesday, July 24, 2012 10:54:52 PM UTC-7, Nitheesh Chandran wrote: HI, Can we use GWT and SOAP ? i read from some documents that GWT does not have a built in support for SOAP and another document says it can be used in server side of GWT. it is a little bit confusing. Can anyone give me a clarification on this. Also i read SMART GWT has built in support for SOAP webservices. But i am looking for GWT AND SOAP. Is that possible ? Thanks Nitheesh -- 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/-/Jm6kSQORFkgJ. 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 AND SOAP
Thanks Black and Rob .. Blake , I would be happy if i get the packages you created. Since i am new to SOAP ,it would be really helpful. Please send me to my mail id :*nitheesh...@gmail.com * Thanks Nitheesh On Friday, July 27, 2012 4:30:31 AM UTC+5:30, Rob wrote: Hi, If you are new to web services and SOAP. Then I would recommend Eben Hewitt's book Java SOA Cookbook and soapUI: - http://www.soapui.org/ Cheers Rob Kiahu.com On Thursday, July 26, 2012 9:03:37 PM UTC+10, Nitheesh Chandran wrote: Okay thanks for the information. Do you have experience of writing a soap client on the GWT server ? or else can i get any links regarding that ?Or do we have any alternatives that can be used instead of SOAP ? On Thursday, July 26, 2012 1:59:28 AM UTC+5:30, Rob Whiteside wrote: You are right that GWT does NOT have built in support for making SOAP calls. GWT (like all javascript that runs in the browser) is subject to Same-Origin-Policy rules. So you couldn't call any remote soap service anyway. You can to do GWT-RPC to get to your server, then write a soap client on the server that sorta proxies the calls to the soap webservice. --Rob On Tuesday, July 24, 2012 10:54:52 PM UTC-7, Nitheesh Chandran wrote: HI, Can we use GWT and SOAP ? i read from some documents that GWT does not have a built in support for SOAP and another document says it can be used in server side of GWT. it is a little bit confusing. Can anyone give me a clarification on this. Also i read SMART GWT has built in support for SOAP webservices. But i am looking for GWT AND SOAP. Is that possible ? Thanks Nitheesh -- 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/-/LPkkhTTZsngJ. 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 AND SOAP
Hi , Can we use SOAP with GWT ? i found from some documents that GWT does not have a built in support for SOAP. I read that can be used in server side of GWT. It is confusing. Can anyone clarify this -- 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/-/EMjkOnpqmXUJ. 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 AND SOAP
HI, Can we use GWT and SOAP ? i read from some documents that GWT does not have a built in support for SOAP and another document says it can be used in server side of GWT. it is a little bit confusing. Can anyone give me a clarification on this. Also i read SMART GWT has built in support for SOAP webservices. But i am looking for GWT AND SOAP. Is that possible ? Thanks Nitheesh -- 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/-/zWkpG33P58YJ. 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 SERIALIZATION PROBLEM
Hello Guys , I have a problem ,I want to save an object to the database. I passed the object to the server using a function. Like this http://www.easywayserver.com/blog/how-to-serializable-object-in-java-2/. But my RPC is getting failed every time. What will be the problem ? i used isSerializable marker interface for serialization. Cant we send client object to the server through 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.
GWT portlet issue
Hello , I used gwt-portlets.jar file to create portlet in GWT. But i got compile time error like compiling module test.Testing2 [ERROR] Errors in 'jar:file:/home/user/Desktop/GWT%20PORTLET%20/gwt- portlets-0.0/gwt-portlets.jar!/org/gwtportlets/portlet/client/layout/ LayoutUtil.java' [ERROR] Internal compiler error java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at org.gwtportlets.portlet.rebind.WidgetFactoryHelperGenerator.generate(WidgetFactoryHelperGenerator.java: 58) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java: 647) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:78) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 268) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 257) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 96) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:254) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:173) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:288) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access $400(AbstractCompiler.java:139) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: 588) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java: 97) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java: 52) at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java: 569) at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java: 33) at com.google.gwt.dev.Precompile.precompile(Precompile.java:284) at com.google.gwt.dev.Precompile.precompile(Precompile.java:233) at com.google.gwt.dev.Precompile.precompile(Precompile.java:145) at com.google.gwt.dev.Compiler.run(Compiler.java:232) at com.google.gwt.dev.Compiler.run(Compiler.java:198) at com.google.gwt.dev.Compiler$1.run(Compiler.java:170) at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java: 88) at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java: 82) at com.google.gwt.dev.Compiler.main(Compiler.java:177) [ERROR] Unexpected internal compiler error java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected at org.gwtportlets.portlet.rebind.WidgetFactoryHelperGenerator.generate(WidgetFactoryHelperGenerator.java: 58) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java: 647) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:78) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 268) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java: 257) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 96) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:254) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:173) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:288) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
Re: GWT PORTLET
I have used that link and followed the instructions but it does not seem to be worked. In that tutorial they are saying about the integration of GWT to portlet ,i mean to display GWT output inside a portlet. I want the opposite ,i want to display a portlet which i created using LifeRay when a user clicks on a button on the GWT application. GWT works on apache tomcat and Liferay portlet works on Liferay portlet container On Mar 16, 2:18 pm, dodo dard keratonj...@gmail.com wrote: Follow this tutorial, is within the liferay website : http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/How+to+bu... Give us the feedback if there is something you dont understand. =www.html5bydemo.com Le jeudi 15 mars 2012 11:33:29 UTC+1, Nitheesh Chandran a écrit : As you people suggested i have created liferay portlet and its working. My actual requirement is to display the portlet in my GWT application in response to a user event. I mean if i click a button ,the portlet should come. How to get this portlet in my GWT application ?? should i follow the same steps above ? On Mar 13, 9:18 pm, Joseph Lust lifeofl...@gmail.com wrote: You could also use Ext GWT. It has out of the box working examples of portlets in GWT. I found it quite simple to implement. http://www.sencha.com/examples/pages/portal/portal.html Sincerely, Joe -- You received 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: GWT PORTLET
As you people suggested i have created liferay portlet and its working. My actual requirement is to display the portlet in my GWT application in response to a user event. I mean if i click a button ,the portlet should come. How to get this portlet in my GWT application ?? should i follow the same steps above ? On Mar 13, 9:18 pm, Joseph Lust lifeofl...@gmail.com wrote: You could also use Ext GWT. It has out of the box working examples of portlets in GWT. I found it quite simple to implement. http://www.sencha.com/examples/pages/portal/portal.html Sincerely, Joe -- You received 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 PORTLET
Hello , I want to create portlet using GWT. I searched in the Internet and downloaded get-portlet.jar. But the hello world app failed. Is there any other way for creating portlet in GWT. ? Helps will be appreciated. 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.
Re: GWT PORTLET
Sorry gwt-portlet.jar On Mar 9, 3:20 pm, Nitheesh Chandran nithe...@dotentreprise.com wrote: Hello , I want to create portlet using GWT. I searched in the Internet and downloaded get-portlet.jar. But the hello world app failed. Is there any other way for creating portlet in GWT. ? Helps will be appreciated. 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.
Re: GWT PORTLET
Can you tell me more specifically ? I want to create a portlet then integrate that with GWT app. How to create portlet ,then how to integrate it with gwt app ? On Mar 9, 3:26 pm, Nitheesh Chandran nithe...@dotentreprise.com wrote: Sorry gwt-portlet.jar On Mar 9, 3:20 pm, Nitheesh Chandran nithe...@dotentreprise.com wrote: Hello , I want to create portlet using GWT. I searched in the Internet and downloaded get-portlet.jar. But the hello world app failed. Is there any other way for creating portlet in GWT. ? Helps will be appreciated. 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.
flex table help
Hello , I want to get the row and column index when the mouse over event occurs.When the user put mouse over a cell i want the row and cell number so i used the following code..But i am not getting it. Can anyone tell me the reason ? com.google.gwt.user.client.Element td = DOM.getParent(getElement()); com.google.gwt.user.client.Element tr = DOM.getParent(td); com.google.gwt.user.client.Element body = DOM.getParent(tr); int r = DOM.getChildIndex(body, tr); int c = DOM.getChildIndex(tr, td); -- You received 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: flex table help
Thanks ,it works On Feb 23, 2:54 pm, Paul Robinson ukcue...@gmail.com wrote: public class MyTable extends FlexTable { public MyTable() { sinkEvents(Event.ONMOUSEOVER | Event.ONMOUSEOUT | Event.ONCLICK); } public void onBrowserEvent(Event event) { Element td = super.getEventTargetCell(event); Element tr = td == null ? null : DOM.getParent(td); Element body = td == null ? null : DOM.getParent(tr); int row = body == null ? -1 : DOM.getChildIndex(body, tr); int column = tr == null ? -1 : DOM.getChildIndex(tr, td); } } On 23/02/12 09:21, Nitheesh Chandran wrote: Hello , I want to get the row and column index when the mouse over event occurs.When the user put mouse over a cell i want the row and cell number so i used the following code..But i am not getting it. Can anyone tell me the reason ? com.google.gwt.user.client.Element td = DOM.getParent(getElement()); com.google.gwt.user.client.Element tr = DOM.getParent(td); com.google.gwt.user.client.Element body = DOM.getParent(tr); int r = DOM.getChildIndex(body, tr); int c = DOM.getChildIndex(tr, td); -- You received 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.
MVP event generation
Hello , I am working on a MVP project. I want to generate an event when the user clicks on the FlexTable cell. So using the MVP pattern i have created a event class and its corresponding handler interface in the event package. And the following way i fired the event. I want anyone of you to tell me is this the correct way of generating events and i am getting exceptions when i am implementing some what to do code on the successful event generation The code below shows the event firing when the user clicks on the cell of the FlexTable table.addTableListener(new TableListener() { @Override public void onCellClicked(SourcesTableEvents sender, int row, int cell) { eventBus.fireEvent(new ChartEvent()); } }); Suppose i want to generate a chart when the user clicks on the cell ,i would be writing the code for that like this eventBus.addHandler(ChartEvent.TYPE, new ChartEventHandler() { @Override public void ChartEvent(ChartEvent event) { Window.alert(event created ); DialogBox db=new DialogBox(); db.setWidget( (IsWidget) new ChartGenericPresenter(rpcService,eventBus,new LineView())); db.show(); } }); } Where ChartGenericPresenter is the presenter and LineView() is its view. I am getting the following exception while i am using this com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 129) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:124) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java: 116) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java: 172) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1321) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1277) 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.GeneratedMethodAccessor16.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: com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 129) at com.dotentreprise.pulsev1.client.view.SystemStatusDisplay $1.onCellClicked(SystemStatusDisplay.java:96) at com.google.gwt.user.client.ui.ListenerWrapper $WrappedTableListener.onClick(ListenerWrapper.java:713) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java: 54) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java: 193) at
Re: MVP event generation
Yeah that helped me to display the DialogBox when the user clicks on the cell. i have used like this db.setWidget(new LineView()); Now the DialogBox is displaying but i am creating a chart in the LineView() with database records. That chart is not coming. But when i simply use by passing a token like this in the AppController (not using any click event ,just passing the token chart ) ,it works if (token.equals(chart)) { presenter = new ChartGenericPresenter(rpcService,eventBus,new LineView()); If i use the above code. The chart will come in the DialogBox. But unfortunately i want to display the chart depending on the user event. So like you said i used db.setWidget(new LineView()); And now DialogBox is showing but no chart inside On Feb 21, 11:16 am, Alfredo Quiroga-Villamil laww...@gmail.com wrote: It seems as if the call: *db.setWidget((IsWidget) new ChartGenericPresenter(rpcService,eventBus,new LineView()));* is not accurate. You are passing to a DialogBox, which is ultimately extending SimplePanel, a presenter and not a widget. The flow would be more or less as follows: 1. Instantiate the view. 2. Instantiate your presenter. 3. Set the presenter on your view. 4. Add the view to your widget (DialogBox) in this case. Regards, Alfredo On Tue, Feb 21, 2012 at 12:09 AM, Nitheesh Chandran nithe...@dotentreprise.com wrote: Hello , I am working on a MVP project. I want to generate an event when the user clicks on the FlexTable cell. So using the MVP pattern i have created a event class and its corresponding handler interface in the event package. And the following way i fired the event. I want anyone of you to tell me is this the correct way of generating events and i am getting exceptions when i am implementing some what to do code on the successful event generation The code below shows the event firing when the user clicks on the cell of the FlexTable table.addTableListener(new TableListener() { @Override public void onCellClicked(SourcesTableEvents sender, int row, int cell) { eventBus.fireEvent(new ChartEvent()); } }); Suppose i want to generate a chart when the user clicks on the cell ,i would be writing the code for that like this eventBus.addHandler(ChartEvent.TYPE, new ChartEventHandler() { @Override public void ChartEvent(ChartEvent event) { Window.alert(event created ); DialogBox db=new DialogBox(); db.setWidget( (IsWidget) new ChartGenericPresenter(rpcService,eventBus,new LineView())); db.show(); } }); } Where ChartGenericPresenter is the presenter and LineView() is its view. I am getting the following exception while i am using this com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 129) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:124) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java: 116) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java: 172) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1321) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1277) 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
GWT DialogBox
Hello , I want to display a dialog-box component when a user clicks on the flux table cell. So i just write the code like this. But it is not working table.addTableListener(new TableListener() { @Override public void onCellClicked(SourcesTableEvents sender, int row, int cell) { Window.alert(getContent(row,cell)); cell_content=getContent(row,cell); DialogBox db=new DialogBox(); db.setText(hello); } }); Can anyone tell me why ? -- You received 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: RPC call fails on remote server
Hi , I have faced similar problem before. Nothing to do with GWT in this. Contact the remote server people where you deployed your application. Probably they are using Apache server only. Tell them to integrate Tomcat with Apache. On Feb 15, 2:23 pm, gerry gtzoga...@gmail.com wrote: Hi all, I have a very strange problem I have not been able to debug the last 3 days. I am using GWT 2.4, and the problem happens only on the remote server. Not in development mode, nor on a Tomcat I have installed on my PC. My application needs to contact a web service that runs on an external server. So I created a servlet that calls this web service using GET, like this: HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); connection.setHostnameVerifier(new CustomizedHostnameVerifier()); and then I read the response in an input stream. CustomizedHostnameVerifier is a hostname verifier I created to verify the self-signed certificate we are using. In the client's onSuccess I read this input stream as a string. It used to work perfectly, but the last days, every rpc call fails with this message: com.google.gwt.user.client.rpc.StatusCodeException: 501 htmlheadtitleApache Tomcat/6.0.28 - Rapport d'erreur/ titlestyle!--H1 {font-family:Tahoma,Arial,sans- serif;color:white;background-color:#525D76;font-size:22px;} H2 {font- family:Tahoma,Arial,sans-serif;color:white;background- color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans- serif;color:white;background-color:#525D76;font-size:14px;} BODY {font- family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background- color:#525D76;} P {font-family:Tahoma,Arial,sans- serif;background:white;color:black;font-size:12px;}A {color : black;} A.name {color : black;}HR {color : #525D76;}--/style / headbodyh1Etat HTTP 501 - Le méthode OST n'est pas définie dans la RFC 2068 et n'est pas supportée par l'API Servlet/h1HR size=1 noshade=noshadepbtype/b Rapport d'état/ppbmessage/b uLe méthode OST n'est pas définie dans la RFC 2068 et n'est pas supportée par l'API Servlet/u/ppbdescription/b uLe serveur ne supporte pas la fonctionnalité demandée pour satisfaire cette requête (Le méthode OST n'est pas définie dans la RFC 2068 et n'est pas supportée par l'API Servlet)./u/pHR size=1 noshade=noshadeh3Apache Tomcat/6.0.28/h3/body/html Sorry for the french, it's because the remote server is in french. The bottom line is that the method OST is not defined for the HTTP protocol, and that causes a 501 error. But where does this OST come from? As I said, I am using the default GET of servlet's openConnection(). Even if I use POST, like this HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); connection.setHostnameVerifier(new CustomizedHostnameVerifier()); connection.setRequestMethod(POST); the same happens. And if I misspell and write connection.setRequestMethod(OST); , the servlet throws as expected another exception, different than the above described. Please help, I am really stuck here. 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.
Re: GWT Designer Not Visiible in IDE
Hi, You cant open your entry point class using GWT designer . Though you can open other classes which you write using java on the GWT designer. You have to extend the Composite class for getting the designer of a particular class. Just right click on the class which extends composite and go to OPENWITH-GWT DESIGNER. On Feb 11, 12:20 am, Mike mike.copp...@gmail.com wrote: I downloaded the google sample MVP code (Contacts) and am trying to look at one one of the View Java files ContactsView.java in Design mode. Is that not possible? On Feb 10, 1:47 pm, Eric Clayberg (Google) clayb...@google.com wrote: Have you tried opening a UI file (UiBinder XML file or GWT Java file) using the GWT Designer editor? If you are having problems using GWT Designer, I would highly recommend taking a look at the docshttp://code.google.com/webtoolkit/tools/gwtdesigner/index.html . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hosting issue
Yes..You are right On Jan 27, 2:07 pm, Sudhakar Fernando sudhakar.ferna...@gmail.com wrote: Hi Nitheesh, my assumptions of the problem is as below. 1. you have created a GWT project with RPC and connect database from MySQL. 2. if you deploy the GWT War files in Tomcat which is installed in your local machine,it is working properly. 3. if you deploy in tomcat which is installed in any of the shared webhosting server or VPS,the RPC is not working. Right? On Thu, Jan 26, 2012 at 1:23 PM, Nitheesh Chandran nithe...@dotentreprise.com wrote: Hello , Please reply on the following issue , fed up with this one I just tried to deploy a starter project in the remote server. I am getting the following error in the server log [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not exist: /home/spectrum/public_html/prism/rpctesting/greet, referer: http://yellowlemon.in/prism/Rpctesting.html [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not exist: /home/spectrum/public_html/404.shtml, referer: http://yellowlemon.in/prism/Rpctesting.html Does anyone know or has anyone successfully hosted a GWT RPC application on a server ?? please reply -- You received 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. -- Regards, Sudhakar -- You received 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: Hosting issue
this will explain it more clearly: Eclipse project: Myproject GWT module com.mycompany.myproject.Mymodule module contains module rename-to='mymodule' Your eclipse project structure will haveworkspace/Myproject/war (and src, test, etc) in /Myproject/war there will be a folder called mymodule which will contain all your gwt compiler output (JS files) - this folder is generated automatically by GWT and if you change the module name ('rename-to') it will generate a new folder with the new name. If you deploy this to tomcat, you cannot use the Export--Web-War option because eclipse does not recognize a GWT project as a WebApplication project by default, but lets imagine that you call the war file mywar.war. consequently any RPC requests will be: http://www.mycompany.com/mywar/mymodule/greet tomcat handles this |gwt handles this I suggest that you read through what I've written above very carefully and compare it to your project and then trace the actual calls with Firebug or Wireshark and see what's happening. There are lots of opportunities for typos and misunderstandings. If this does not help the next thing to do is to put some logging or debugging in your project and try and work out where in the code the problem is. That's not really an issue for this list, because only you can debug your program. As for your earlier question does anyone actually host gwt files with tomcat, I've done maybe 10 or 15 separate installations of tomcat6 and tomcat7 hosting war files generated from GWT and they work just fine. HTH Alan On 1/26/2012 8:58 PM, Nitheesh Chandran wrote: Ok , Its just a web application starter project. I ran the project in the development mode and in the local apache tomcat server . Its working there. The same thing i have deployed to a remote server and i am facing the issue. Our version of GWT is : GWT 2.3.0 server OS : cent os 5.0 The servlet container in the server is : Tomcat development platform is : windows 7 I have deployed the WAR files to the server by using normal FTP first. It was not working .So we have tried by converting war to .war file and deployed in the server. That is also not working now. The same issue i am facing. /home/spectrum/public_html/prism/rpctesting/greet , greet is the remote servlet path to my servlet. The server is not mapping to this servlet ,that is why it is not working.But it works fine in local machine and even in the app engine also. On Jan 26, 6:24 pm, Alan Chaneya...@mechnicality.com wrote: On 1/26/2012 1:23 AM, Nitheesh Chandran wrote: Hello , Please reply on the following issue , fed up with this one You don't actually give very much information: - version of GWT - server OS - are you running Jetty or Tomcat? - development platform? How are you deploying? Copying files to remote server? Bundling as a war? I just tried to deploy a starter project in the remote server. I am getting the following error in the server log [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not exist: /home/spectrum/public_html/prism/rpctesting/greet, referer: http://yellowlemon.in/prism/Rpctesting.html [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not exist: /home/spectrum/public_html/404.shtml, referer: Where is the file /home/spectrum/public_html/prism/rpctesting/greet ? On your local machine? On the server? Why are you trying to read a file from the filing system? http://yellowlemon.in/prism/Rpctesting.html Does anyone know or has anyone successfully hosted a GWT RPC application on a server ?? please reply -- You received 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.
Hosting issue
Hello , Please reply on the following issue , fed up with this one I just tried to deploy a starter project in the remote server. I am getting the following error in the server log [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not exist: /home/spectrum/public_html/prism/rpctesting/greet, referer: http://yellowlemon.in/prism/Rpctesting.html [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not exist: /home/spectrum/public_html/404.shtml, referer: http://yellowlemon.in/prism/Rpctesting.html Does anyone know or has anyone successfully hosted a GWT RPC application on a server ?? please reply -- You received 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: Hosting issue
Ok , Its just a web application starter project. I ran the project in the development mode and in the local apache tomcat server . Its working there. The same thing i have deployed to a remote server and i am facing the issue. Our version of GWT is : GWT 2.3.0 server OS : cent os 5.0 The servlet container in the server is : Tomcat development platform is : windows 7 I have deployed the WAR files to the server by using normal FTP first. It was not working .So we have tried by converting war to .war file and deployed in the server. That is also not working now. The same issue i am facing. /home/spectrum/public_html/prism/rpctesting/greet , greet is the remote servlet path to my servlet. The server is not mapping to this servlet ,that is why it is not working.But it works fine in local machine and even in the app engine also. On Jan 26, 6:24 pm, Alan Chaney a...@mechnicality.com wrote: On 1/26/2012 1:23 AM, Nitheesh Chandran wrote: Hello , Please reply on the following issue , fed up with this one You don't actually give very much information: - version of GWT - server OS - are you running Jetty or Tomcat? - development platform? How are you deploying? Copying files to remote server? Bundling as a war? I just tried to deploy a starter project in the remote server. I am getting the following error in the server log [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not exist: /home/spectrum/public_html/prism/rpctesting/greet, referer: http://yellowlemon.in/prism/Rpctesting.html [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not exist: /home/spectrum/public_html/404.shtml, referer: Where is the file /home/spectrum/public_html/prism/rpctesting/greet ? On your local machine? On the server? Why are you trying to read a file from the filing system? http://yellowlemon.in/prism/Rpctesting.html Does anyone know or has anyone successfully hosted a GWT RPC application on a server ?? please reply -- You received 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 HOSTING ISSUE
I tried to host a sample default GWT application which uses RPC . I did not do any changes in the program because GWT default program uses RPC service for getting a reply from the server. This program runs correctly in the local Apache server. When i put the same program in the external server ,it does not work. this is the deployment descriptor file : web.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Servlets -- servlet servlet-namegreetServlet/servlet-name servlet-classrp.server.GreetingServiceImpl/servlet-class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/rpctesting/greet/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileRpctesting.html/welcome-file /welcome-file-list /web-app The error i am getting now is [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not exist: /home/spectrum/public_html/program/rpctesting/greet, referer: http://myserver.in/program/Rpctesting.html [Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not exist: /home/spectrum/public_html/404.shtml, referer: http:// myserver .in/program/Rpctesting.html [Tue Jan 24 04:31:23 2012] [error] [client 91.121.183.61] File does not exist: /usr/local/apache/htdocs/aggregator [Tue Jan 24 04:31:24 2012] [error] [client 91.121.183.61] File does not exist: /usr/local/apache/htdocs/aggregator can anyone help me on this issue -- You received 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: GWT HOSTING ISSUE
So this has to be configured on the server right ? No need to configure anything on the client side On Jan 25, 4:18 pm, Thomas Broyer t.bro...@gmail.com wrote: These logs are from Apache HTTPD, not Apache Tomcat. So either you're not using the appropriate port (Tomcat generally listens on 8080), or you forgot to configure (or misconfigured) mod_proxy to relay requests from HTTPD to Tomcat. -- You received 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: GWT HOSTING ISSUE
is it necessary to convert GWT default WAR to .war file for deploying in the tomcat server ?? On Jan 25, 6:49 pm, Thomas Broyer t.bro...@gmail.com wrote: That's right, nothing to do with GWT, only with the deployment of HTTPD / Tomcat, and then your WAR within Tomcat. -- You received 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] GWT HOSTING ISSUE
We need a help. Has anyone hosted GWT application to an external web server ? Remote procedure call is not working on the server. The same working fine with local Apache server. Just for checking i put sample GWT default application on the server. Its not working there -- http://groups.google.com/group/Google-Web-Toolkit-Contributors