I have to develop a web application with database connection. So I checked on Wikipedia’s “Web application comparison”
Here I was mainly looking for Java based frameworks. The first thing that looked interesting to me was “GWT”. But there are some points that are not clear to me.
-
The page doesn’t contain any information on whether GWT uses the MVC-pattern. Does it?
-
Further it doesn’t say anything about push or pull functionalities. So what does GWT use?
-
On “DB migration frameworks” it says, “via java”. Does that mean that I can use any database that I can connect with Java?
-
Is it a reasonable decision to choose GWT to implement a web based application with database connection which is used in a company network? Or are there any arguments which would make me consider any other frameworks?
-
I am originaly a .Net (C#) developer and I also heard about the .NET “StockTrader” sample application. What would be pros & cons vs GWT? Or are those two different things?
As you can see I am totaly new to this things and I would strongly appreciate it if that question doesn’t get closed because it is about forming an opinion. I am openminded for any advice or suggestions on other frameworks.
Greets,
BC++
First, a clarification: GWT is mostly an UI lib – that is, you write your interface in Java, it translates it to JavaScript and you can run it in the browser. That said:
The patterns you use are independent of the library. If you use GWT eclipse’s project creator, it will split your project in three packages (client, server, and shared)… and you can take it from there.
GWT usually uses the pooling model, where the client ask the server for data. You can however try some pushing.
The server-side code is just Java, no GWT involved. You can do anything “java” on the server and then send it to your client-side code.
If you are using it on your company intranet, you might want to consider a full framework like SmartGWT instead of the pure GWT implementation. Those provide you with more tools and a faster development, considering you follow the intended model.
As a side note, it’s worth mentioning that you might want to develop your interface using pure HTML/CSS as you would normally and then just use GWT to add dynamic widgets or Ajax call. Building your whole interface in GWT (from scratch) is usually a bad idea, performance-wise… and you might have many problems positioning things the way you actually want.