Wednesday, July 2nd, 2008
Loom: Annotation based Java framework
Ignacio Coloma has announced Loom 1.0 RC 1. Loom is an annotation-based java web framework that includes a ton of new features in this release. After some selective process, these are the bits that could be of most interest for Ajax developers:
- Generates HTML 5 markup (with data-* fields), including CSS classes
with the property type. - Based on prototype
- An ever-growing list of (progressive-enhancement) web components,
including: multiple file upload, tabs, menus... - Dead-simple javascript validation library with i18n support.
- ...which mimics the process at the server, in case javascript is disabled.
Just give it a try at the demo. Try introducing invalid input, and check the sources by clicking the "View source" link at the top right of the page. Everything in the demo should work with javascript disabled, including multiple file upload.
The framework also includes a libraries repository which pulls debug/optimized javascript from the google CDN:
-
-
<l :script resource="prototype"/>
-
<l :script resource="scriptaculous">
-
<l :param name="load" value="builder,effects"/>
-
</l>
-
This snippet of code would translate into this, if development is disabled:
Or this if not:
More details about the framework are at the reference guide. Ignacio would be grateful for any feedback!












At the very least, this has been an awesome load benchmark. We wanted to perform some real-world tests (to complement our labs data), and the server CPU consumption stayed almost flat these two days, during the requests peaks.
Thanks, Dion!