Javier has posted 48 posts at DZone. View Full User Profile

OpenXava 4.3: AJAX applications from JPA entities

12.15.2011
| 1624 views |
  • submit to reddit
OpenXava is a framework for Rapid Java Web Development, well-suited for business and database oriented applications.
OpenXava allows you develop applications just by writing simple domain classes with Java or Groovy. The user interface is generated automatically in runtime, without code generation.

OpenXava 4.3 adds support for total properties in collections, it has a new editor for HTML_TEXT stereotype, add info and warning messages and some other useful new features.

Total properties in collections

Now you can use square brakets in @ListProperties to asociate one or more properties of the container entity to a property of the collection. In this way you can add arbitrary values as totals.


 

Read more about total properties in the wiki.

New editor for HTML_TEXT

Apart from upgrading to the latest CKEditor version, now the editor is embedded in the view instead of using a popup windows. Therefore, if you write:

@Stereotype("HTML_TEXT")
private String recipe;

You get:


 

New message types

In addition to the classic addError() and addMessage() now you can use addWarning() and addInfo() from an action. So, if you write a code like this one:

 

addError("this_is_an_error");
addWarning("this_is_a_warning");
addMessage("this_is_a_message");
addInfo("this_is_an_info");

You get:


 



These are only some of the new features, you can view the full list in the changelog.

Download OpenXava 4.3 and try it
0
Published at DZone with permission of its author, Javier Paniza.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)