Wednesday, February 1, 2012

Metawidget v2.0: Runtime and Static Form Generator

Version 2.0 of Metawidget is now available! We bumped the version number to reflect the fact we've broken binary compatibilty: this release no longer supports JDK 1.4. It also represents a significant maturing of the static form generation code:
  • Drop support for JDK 1.4 (was causing a number of issues with frameworks that scan the classpath)
  • Implement long-standing refactorings (taking the opportunity now that we've broken binary compatibility)
  • Static Metawidget improvements (ready for Forge CR1)
  • Bug fixes, documentation and unit tests
Existing code should not be impacted too much. Breaking refactorings were:

  • There is no longer a separate Java5Inspector: it has been rolled into PropertyTypeInspector
  • FacesInspector has been renamed FacesAnnotationInspector
All existing examples have been migrated as a point of reference.

As always, the best place to start is the Reference Documentation:

http://metawidget.org/doc/reference/en/pdf/metawidget.pdf


Your continued feedback is invaluable to us. Please download it and let us know what you think.

6 comments:

asm0dey said...

Maybe, it would be cool to tell in docs, that JexlProcessor now works with String arrays?

Richard said...

Thanks for reminding me! Updated for 2.1. Also updated FacesInspectionResultProcessor and JspInspectionResultProcessor, and added Collection support too.

asm0dey said...

That's really cool! Any iterable collection?

Richard said...

Yeah. Like this:

if ( valueObject instanceof Collection ) {
value = CollectionUtils.toString( (Collection) valueObject );
}

asm0dey said...

Updated for 2.1.
Does it mean. that this functionality is not still avaliable in 2.0 release?

Richard said...

JEXL Arrays are in 2.0. But JEXL Collections will have to wait until 2.1, sorry.

But you can already download them in 2.1-SNAPSHOT.