Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any good tips for a PHP programmer starting a GWT project?

Tags:

java

php

gwt

struts

Coming from PHP with some Java Struts 2.0 experience any tips/tricks on learning GWT? I have been looking at some tutorials but just wanted to know if anyone has some great gems to pass along?

like image 443
Phill Pafford Avatar asked Feb 06 '26 00:02

Phill Pafford


1 Answers

As someone that has done PHP, Struts2 and GWT, a good tips from me for someone that is coming from web framework like Struts2.0/PHP would be:

  1. Throw away the old mindset, the mindset that a web framework works in request-response way. That's not how GWT works. GWT is a full ajax framework. Get a good understanding of AJAX and throw away those old mindset to get a good grasps of GWT.
  2. Think in application development and not website development. That would affect the way you build navigation in your application with GWT.
    • You are not building hyperlinks to navigate between html pages, but you are using an event listener to update a partial content in your application. Get a good understanding of this.
    • With that in mind, always remember that you are not throwing back full html pages, but just updating a partial content in your application
  3. Get a good understanding of Java anonymous class and inner class because you will use this alot in GWT. This is something that is used rarely if you are building with Struts2.0
  4. The last tips would be to learn how to organize your code. If you can do it from beginning, please do so. Because you can write everything in one class if you want to. A good tip would be to take a look at this video on best practice on GWT.
like image 60
Joshua Partogi Avatar answered Feb 07 '26 13:02

Joshua Partogi