Friday, January 29, 2010

GWT and MVP

Getting a handle on GWT and MVP.

MVP=Model-View-Presenter.

An AppController handles things like event bus utilization, page choreography (via History and ValueChangeHandler), creation of Presenters, and delegation of services.

In the value change handling of the app controller page display is controlled. Here new Presenter objects are created and activated.

Presenters hold and manage the Views (which may also be created at the time the Presenter is created).

Friday, November 20, 2009

Canon Vixia HF21

Canon Vixia HF21
  • 65G Flash memory
  • NTSC
  • HDMI output
  • USB Connection
  • multi-click/shutter photo capture
  • remote control
  • MAC-OSX support - will let you know :-)

Wednesday, November 11, 2009

Loading an image file from the base of the gwt app

Remember that the project module lives in an arbitrary location under the src folder.
So if I want to anchor my project at com.jed.healthcare.vitals I can place a file here at the base of the application.
Inside the application code I can load the image with the following code:

GWT.getModuleBaseURL() + "logo.gif"

Saturday, May 9, 2009

DWR 2 Good, DWR 3 BAD, Very-Very Bad

Lost time last few days messing with DWR 3, getting some exception:


failed dwr-invoker java.lang.NoClassDefFoundError: Could not initialize class com.google.apphosting.runtime.security.shared.stub.javax.swing.event.EventListenerList

me This was a problem in DWR 3.  Read a post on Google AppEngine for Java that mentioned a problem with DWR 3 and suggested that DWR 2 was ok.  So I went back to DWR 2 and all was well :-)


Friday, May 8, 2009

Getting Codehaus GWT-MAVEN to work

It has been a struggle.
Salvador Diaz's feed: feed:http://blog.salvadordiaz.fr/feed/

Archetype sample HERE.
mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=1.1-SNAPSHOT -DarchetypeRepository=http://snapshots.repository.codehaus.org/ -DgroupId=fr.salvadordiaz.gwt.sample -DartifactId=maven-example

Archetype generated pom.xml HERE.
Modified pom.xml HERE.
Promising HERE.
See group post HERE

http://milen.commsen.com/2009/04/run-gwt-application-in-hosted-mode-from-maven.html

Monday, May 4, 2009

Sample gwt + codehaus plugin

Farrukh Najmi to gwt-maven


Hi Guys,

I migrated from the original gwt-maven plugin to the codehaus one in the last few weeks as I needed to migrate to GWT 1.6.
Things went relatively smoothly. Here is a sample project that may help with the pom etc. Keep in mind I did this a while back and
some things could have changed:


http://www.wellfleetsoftware.com/files/stockwatcher.zip