Tag Archives: GWT

Need real world example of large GWT-platform with GWT MVP and GWT 2? Download here

Need real world example of large GWT-platform with GWT MVP and GWT 2? Download here

Get it here:

http://code.google.com/p/puzzlebazar/source/checkout

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

GWT and Microsoft .Net ranks top two in developer satisfaction for web frameworks. Ruby on Rails ranks low!

GWT and Microsoft .Net ranks top two in developer satisfaction for web frameworks. Ruby on Rails ranks low!

I just discovered this report of a survey done with ‘real’ developers. They ranked various web development frameworks. The top two that came out on top were Microsoft .Net and Google Web Toolkit. .Net was #1 but GWT was close behind. Oddly, Ruby on Rails was at the low end. It also compared other Java based frameworks like Struts, Spring, Zend, Java Server Faces, and many more. Also, the report costs $600 but get more details is here:

http://www.evansdata.com/reports/viewRelease.php?reportID=28

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Yo Google! When does GWT 2.1 GA come out?

Yo Google! When does GWT 2.1 GA come out?

Please let me know so I can tell my faithful readers. Also, will you have a standard MVP framework included like GWT-Platform not gwt-presenter or gwt-disptch

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

For the first time ever, I am able to move shared data between my wizard screens using MVP-Platform with Google's GWT

For the first time ever, I am able to move shared data between my wizard screens using MVP-Platform with Google’s GWT

This is a very big deal for me instead of wasting time on other useless GWT libraries. Search this blog to prevent you from wasting your valuable time.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Dump GWT-presenter and GWT-dispatch for GWT-platform for this Google's GWT MVP stuff?

This seems more up to date. I believe the older GWT-dispatch and GWT-presenter is for < GWT2.0. This seems more up to date for GWT 2.0+. I will give this a try as for the handler exceptions I am getting in my previous post. The following blog post could be a waste of time if you are using > GWT 2.0.

http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html

A comment thankfully pointed me to this:

http://code.google.com/p/gwt-platform/

http://uptick.com.au/content/getting-started-gwt-platform

This may work and I will post if I can apply to my GWT application. This tutorial is not even a day old! I hope it saves my ass on this project!!

Update: Hooray! I can confirm the 2 links above will help you! The following blog post seems useless if you are working with GWT 2.0+:

http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html

The 2 links above are better for GWT 2.0 + as it compiles under GWT 2.0 cleanly with no warnings on Serialization Exceptions! There are more real world examples and better documentation to get you started on GWT MVP with GWT 2.0 which we all use. I am currently using GWT 2.04 not GWT 2.1 preview versions!

You way also want to visit for further help:

http://cashforlifetv.com/blog/index.php/2010/10/10/how-to-cleanly-execute-gwt-2-mvp-gin-gin-with-mvp-platform-not-gwt-presenter-or-gwt-dispatch/

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

As I apply this GWT MVP project, i get an annoying SerializationException. Change the Java This is

As I apply this GWT MVP project, i get an annoying SerializationException. Change the Java serialVersionUID?

0    [main] DEBUG org.apache.jasper.compiler.JspRuntimeContext  – Parent class loader is: ContextLoader@null
0    [main] DEBUG org.apache.jasper.servlet.JspServlet  – Scratch dir for the JSP engine is: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_127_0_0_1_8888_war____-g0qk00\jsp
0    [main] DEBUG org.apache.jasper.servlet.JspServlet  – IMPORTANT: Do not modify the generated servlets
(Contribute1Presenter.java:70) 2010-10-10 14:05:52,718 [INFO ] Calling doNext in Contribute1Presenter
(Contribute1Presenter.java:80) 2010-10-10 14:05:52,953 [ERROR] Handle Failure:
com.google.gwt.user.client.rpc.SerializationException:
null
at com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:161)
at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:145)
at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)
at net.customware.gwt.dispatch.client.service.DispatchService_Proxy.execute(DispatchService_Proxy.java:33)
at net.customware.gwt.dispatch.client.DefaultDispatchAsync.execute(DefaultDispatchAsync.java:27)
at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter.doNext(Contribute1Presenter.java:74)
at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter.access$1(Contribute1Presenter.java:69)
at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter$2.onClick(Contribute1Presenter.java:107)
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.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)
at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178)
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52)
at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116)
at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:100)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1307)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1263)
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:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(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:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
at java.lang.Thread.run(Unknown Source)

0    [main] DEBUG org.apache.jasper.compiler.JspRuntimeContext  – Parent class loader is: ContextLoader@null0    [main] DEBUG org.apache.jasper.servlet.JspServlet  – Scratch dir for the JSP engine is: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_127_0_0_1_8888_war____-g0qk00\jsp0    [main] DEBUG org.apache.jasper.servlet.JspServlet  – IMPORTANT: Do not modify the generated servlets(Contribute1Presenter.java:70) 2010-10-10 14:05:52,718 [INFO ] Calling doNext in Contribute1Presenter(Contribute1Presenter.java:80) 2010-10-10 14:05:52,953 [ERROR] Handle Failure:com.google.gwt.user.client.rpc.SerializationException:null    at com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:161)    at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:145)    at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:199)    at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129)    at net.customware.gwt.dispatch.client.service.DispatchService_Proxy.execute(DispatchService_Proxy.java:33)    at net.customware.gwt.dispatch.client.DefaultDispatchAsync.execute(DefaultDispatchAsync.java:27)    at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter.doNext(Contribute1Presenter.java:74)    at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter.access$1(Contribute1Presenter.java:69)    at co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter$2.onClick(Contribute1Presenter.java:107)    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.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)    at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)    at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178)    at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52)    at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116)    at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:100)    at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1307)    at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1263)    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:157)    at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714)    at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165)    at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)    at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)    at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(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:157)    at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669)    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401)    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)    at java.lang.Thread.run(Unknown Source)

This will generate the following GT compiler warning which is obvisouly related: (I am using GWT 2.0.4)

Compiling module co.uk.hivedevelopment.greet.GreetMvp

Scanning for additional dependencies: jar:file:/C:/Documents%20and%20Settings/Administrator/workspace/SiloMvp/war/WEB-INF/lib/gwt-dispatch-1.0.0-SNAPSHOT.jar!/net/customware/gwt/dispatch/client/DefaultDispatchAsync.java

Adding ’38’ new generated units

Validating newly compiled units

[WARN] Warnings in ‘generated://41F000321E9BFD855275D653B74C311A/net/customware/gwt/dispatch/client/service/DispatchService_TypeSerializer.java’

[WARN] Line 61: Referencing deprecated class ‘com.google.gwt.user.client.rpc.SerializableException’

See snapshot: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\DispatchService_TypeSerializer61132.java

Help????

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

How to resolve Google Java GWT error: Presenter.Display' must be a class

if you get gwt compiler error of:

Compiling module co.uk.hivedevelopment.greet.GreetMvp

[ERROR] Errors in ‘generated://9B81F6AEEE75C63EED871823CE63F3E2/co/uk/hivedevelopment/greet/client/gin/GreetingGinjectorImpl.java’

[ERROR] Line 38:  Rebind result ‘co.uk.hivedevelopment.greet.client.mvp.Contribute1Presenter.Display’ must be a class

[ERROR] Line 140:  Rebind result ‘co.uk.hivedevelopment.greet.client.mvp.Contribute2Presenter.Display’ must be a class

Scanning for additional dependencies: jar:file:/C:/Documents%20and%20Settings/Administrator/workspace/SiloMvp/war/WEB-INF/lib/gwt-dispatch-1.0.0-SNAPSHOT.jar!/net/customware/gwt/dispatch/client/DefaultDispatchAsync.java

Adding ’34’ new generated units

Validating newly compiled units

[WARN] Warnings in ‘generated://0552CFB5A257AA676965545B12FA4F6B/net/customware/gwt/dispatch/client/service/DispatchService_TypeSerializer.java’

[WARN] Line 41: Referencing deprecated class ‘com.google.gwt.user.client.rpc.SerializableException’

See snapshot: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\DispatchService_TypeSerializer54699.java

[ERROR] Cannot proceed due to previous errors

make sure it is defined in gin/GreetingClientModule.java like:

package co.uk.hivedevelopment.greet.client.gin;

import net.customware.gwt.presenter.client.DefaultEventBus;

import net.customware.gwt.presenter.client.EventBus;

import net.customware.gwt.presenter.client.gin.AbstractPresenterModule;

import net.customware.gwt.presenter.client.place.PlaceManager;

import co.uk.hivedevelopment.greet.client.CachingDispatchAsync;

import co.uk.hivedevelopment.greet.client.mvp.AppPresenter;

import co.uk.hivedevelopment.greet.client.mvp.GreetingPresenter;

import co.uk.hivedevelopment.greet.client.mvp.GreetingResponsePresenter;

import co.uk.hivedevelopment.greet.client.mvp.GreetingResponseView;

import co.uk.hivedevelopment.greet.client.mvp.GreetingView;

import com.google.inject.Singleton;

public class GreetingClientModule extends AbstractPresenterModule {

@Override

protected void configure() {

bind(EventBus.class).to(DefaultEventBus.class).in(Singleton.class);

bind(PlaceManager.class).in(Singleton.class);

bindPresenter(GreetingPresenter.class, GreetingPresenter.Display.class, GreetingView.class);

bindPresenter(GreetingResponsePresenter.class, GreetingResponsePresenter.Display.class, GreetingResponseView.class);

bind(AppPresenter.class).in(Singleton.class);

bind(CachingDispatchAsync.class);

}

}

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

My code analysis review of boiler code for Java Spring Source Roo with Google GWT 2.1

My code analysis review of boiler code for Java Spring Source Roo with Google GWT 2.1

All the code is there with Hibernate jars, Spring, and some other complex looking. It seems to work but the code is nothing like you have seen as compared to the Hive development blog.

http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html

That is better explained. I see potential with this but as I have said, Spring Roo has got quite a ways to go. As Google has been integrated with it, I would leave it for a while. Maybe try 2.x release? Seems to be ok but not worth.

As for code generation, there seem to be no visual tools included which makes life easier. Maybe I should try it with the GWT Designer. Any comments or feedback would be appreciated!

All code was built from tutorial of:

http://www.ke-cai.net/2010/05/simple-google-web-toolkit-project-with.html

Update: This Spring Roo generated source does not work with Google’s Webbuilder or GWT Designer. Too bad. That would rule. back to the drawing board.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

So do I blow my ‘legacy’ Google GWT 2.0.4 app for best processes with MVP from GWT 2.1? Use Spring Roo

So do I blow my ‘legacy’ Google GWT 2.0.4 app for best processes with MVP from GWT 2.1? Use Spring Roo

I have been developing with GWT for about 3 months now. I like it until the day I heard about this MVP (model view presenter) framework. It seems to be a futuristic thing with GWT 2.1 and Google. Now they have this thing called Spring Roo which is suppos

So do I blow my ‘legacy’ Google GWT 2.0.4 app for best processes with MVP from GWT 2.1? Use Spring Roo

I have been developing with GWT for about 3 months now. I like it until the day I heard about this MVP (model view presenter) framework. It seems to be a futuristic thing with GWT 2.1 and Google. Now they have this thing called Spring Roo which is supposed to make the coding of MVP much easier. I might give it a whirl. It seems to work. These are the best practices now for developing GWT applications. Too bad I did not know about a few months ago. What a waste of development?
As for the coding and framework from the tutorial of:

http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html

I do understand the importance of this style as it is similar to how Spring works. This is Google’s own interpretation of it. Wish me luck!

ed to make the coding of MVP much easier. I might give it a whirl. It seems to work. These are the best practices now for developing GWT applications. Too bad I did not know about a few months ago. What a waste of development?
As for the coding and framework from the tutorial of:

http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html

I do understand the importance of this style as it is similar to how Spring works. This is Google’s own interpretation of it. Wish me luck!

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Stupid Google ? Why do they leave their GWT deferred binding undocumented? It would save so much hassle

Stupid Google ? Why do they leave their GWT deferred binding undocumented?

This could save so much time if they promoted this feature. Here is a decent tutorial I will try out.

http://pgt.de/2008/01/29/gwt-deferred-binding-tutorial/

Good article. Working link: http://blog.zenika.com/index.php?post/2007/08/03/GWT-databinding:-English-version

Update: I tried implementing this, surprise it throws an casting exception when I apply to my GWT application. Again, little documentation that leaves it unproven. Also, appears to work before GWT 2.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!