martes 4 de noviembre de 2008

IWebMvc2 Technology Preview released

Update: The former WAR file (tested under 6.0.16) could not deploy to the latest version of Apache Tomcat (6.0.18) due to a double quotes issue. This issue is now fixed.


Today I'm happily announcing that IWebMvc2 first version is available for download. In fact, this version is nothing beyond a Technology Preview (and a simple one indeed!). It showcases the new architecture that right now basically amounts to the new project structure. Well, in fact, every single line of code has been rewritten from scratch putting the focus in code quality. The new markup is way better (I've tested in IE7/8, Chrome, FF3, Safari and Opera!) and overall everything has been simplified and it should be easier to read and use (but do not use it yet please :-).

I've released it as a WAR archive because I can't spend time right now providing complex build scripts with Jetty embedded. If you're interested in IWebMvc2 sources you can export/checkout them from the repository. The important projects there are core, model and ui.

The WAR includes its sources which amount to a couple of domain classes, a properties file and two practically empty Spring configuration files. It's not really an application but just a peek of one of the widgets (a complex one I guess). You should take a look at the index JSP and see how one line of actual code paints you a fully working CRUD screen!



Well, it's just Create, Read and Delete in this version :-) I'm devising an interesting solution for updates yet!

Just a note of caution, the code mostly works but it's been extracted from a dev build and hasn't been tested beyond a quick try done by yours truly and not in detail. The WAR works in Tomcat (probably in Glassfish v3 Prelude as well but I can't tell for sure), just create a database (in MySQL) named iwebmvc and a user named iwebmvc with password..well, yes, iwebmvc again (in GFv3 you should create a pool named iwebmvc). Deploy it and point a browser to your localhost. I'll try to have a screencast online in a day or two.

As always I'm open to comments, critics and help! Hope you like it!