9 Jan 2012 4:05 PM #1
Unanswered: New to GXT: Development Questions
Unanswered: New to GXT: Development Questions
I'm a newbie with regard to GWT and GXT, and have tried to get the most rudimentary application going as per http://www.sencha.com/learn/setting-...ct-in-eclipse/, however the call to MessageBox.info() is unrecognized in GXT 3.0. Is there another method that should be used to display a simple message box? (BTW: I've already been able to get some basic GWT apps working)
Aside from the API documentation and the explorer demo, are there any other 'how to' guides? I was also unable to get the explorer demo compiling and running under eclipse, so any information regarding how to do that would also be greatly appreciated.
Finally, I've read that there are no plans to support the GWT Designer, which surprises me. Although I have no need for code generation (or even hooking events), the ability to layout various complex forms without some form of designer seems to be a major hindrance. Long ago, desktop frameworks like VB and Delphi removed the need for a laborious cycle of code/compile/run steps to simply position controls on a form. I've heard mention that designers are 'not necessary' when coding with GWT/GXT, but I find that hard to believe (especially when an application may have hundreds of screens, like ours). If someone could shed any light on how they recommend we go about designing our forms with a minimum of fuss and without said designer, please let me know. Perhaps there is something I'm missing when it comes to web development in general with these tools.
Much thanks in advance,
10 Jan 2012 1:44 PM #2
I've figured out how to get the message box to work via the online demos.
I'm still curious if there are any 'How To' guides aside from the API docs and online demos (which are excellent, btw). Specifically, regarding application architecture and creating a secure login form that can be integrated into my application to validate user credentials before allowing access to it. I assume the history mechanism in GWT can be used in conjunction with GXT framework to provide this feature? I know these are really boring, rudimentary questions, but any tips or links to such info would be appreciated - I've got to start somewhere and I'd prefer to have a solid foundation before hacking something together (I'm familiar with MVC/MVP patterns).
I can also see how layout panels can be used to simplify creating forms in code, but would still like feedback from anyone else regarding form development/design in a production environment as to what's worked best for them.
If there is another forum or area where these questions are more appropriate, please let me know.
24 Jan 2012 9:54 PM #3
Since nobody responded, I can only assume this is the wrong place for such questions or everyone's too busy to answer.
For anyone else who reads this and is new to GWT/GXT, I can recommend the following:
Google I/O 2009 - Best Practices for Architecting GWT App
These best practices are implemented with the Mvp4g framework:
A very basic tutorial (you can find others on the mvp4g site and via Google):
And the following books:
Essential GWT: Building for the Web with Google Web Toolkit 2 (advanced, but covers some important topics and despite the fact it could be better organized IMO is worth having)
Ext GWT 2.0: Beginner's Guide (covers GXT 2.0, but still useful)
I hope this helps someone out there.
25 Jan 2012 12:45 AM #4
"Since nobody responded, I can only assume this is the wrong place for such questions or everyone's too busy to answer. "
Or there is no good answer?
The good thing with GXT 3 is that it uses standard GWT architecture, with all the good new things like UiBinder and resource bundles. And the framework libraries like MVP4G as you discovered, or his evil twin GWT-Platform (joking on the "evil", of course, it is my personal choice anyway), and probably GWT-Pectin (seems interesting to use, I have yet to try it) and similar libraries are fully usable with GXT.
The bad thing is that despite some good blog articles, slide decks and demos, the doc. is still a bit sparse, even the JavaDoc is sometime lacking. That's the inconvenience of the beta status. We have to discover things, based on the source of the demos, or even of the library itself. And ask for help here, on specific topics...
25 Jan 2012 9:56 AM #5
Thanks for the reply. I understand GXT 3 is in beta, and do understand the lack of documentation due to this status. I see my question strayed from specific questions about the framework to general architecture, hence my concern earlier about this being the wrong place for them.
Regarding GWT-Platform, could you briefly elaborate on the reason you prefer it to MVP4G?
25 Jan 2012 6:37 PM #6
You might find the series of posts on the upTick blog helpful:
and these samples (that use GWT, GWTP, Gin, Guice, smartGWT, Ext GWT, JPA, HSQLDB, ...):
-> http://gwt-cx.com/gwt-basic/Basic.html (GWT demo)
-> http://gwt-cx.com/serendipity/Serendipity.html (Smart GWT demo)
-> http://gwt-cx.com/extgwt-serendipity/Serendipity.html (Ext GWT demo)
And these excellent blogs:
26 Jan 2012 7:27 AM #7
http://code.google.com/p/mvp4g/wiki/Mvp4g_vs_GWTP debate, I found the GWTP philosophy closer of mine and a bit because GWTP also provides integrated facilities, like code generator, a dispatcher easing async calls, the command pattern, etc.
Now, I have only a very superficial knowledge of MVP4G...
8 Feb 2012 9:35 AM #8
Thanks Rob, the links proved to be very helpful.