Wednesday, July 2nd, 2008

Loom: Annotation based Java framework

Category: Framework, Java

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:

  1. <l :script resource="prototype"/>
  2. <l :script resource="scriptaculous">
  3.  <l :param name="load" value="builder,effects"/>
  4. </l>

This snippet of code would translate into this, if development is disabled:

  1. <script type="text/javascript"
  2. src="//">
  3. </script>
  4. <script type="text/javascript"
  5. src="//,effects">
  6. </script>

Or this if not:

  1. <script src="/js/prototype-1.6.0/prototype-"
  2. type="text/javascript"></script>
  3. <script type="text/javascript"
  4. src="//,effects">
  5. </script>

More details about the framework are at the reference guide. Ignacio would be grateful for any feedback!

Posted by Dion Almaer at 10:28 am
1 Comment

3.6 rating from 22 votes

1 Comment »

Comments feed TrackBack URI

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!

Comment by icoloma — July 2, 2008

Leave a comment

You must be logged in to post a comment.