Over a million developers have joined DZone.

New OpenXava Features Improve Rapid Java Development

The open source Java development tool has been updated, and includes a new UI, features, and bug fixes.

· Web Dev Zone

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

OpenXava is a tool for rapid development of enterprise web applications.

In OpenXava you only have to write the domain classes in plain Java to get a web application ready for production.

OpenXava 5.4 has a new and modern icon set, a simplified UI for charts, a search box when adding new columns to list, image editor supported in @ElementCollection, and many more things.

We invite you to download it and upgrade your OpenXava applications. Look at the migration instructions

New Icons

This is the new look of OpenXava:

All modern applications use monochrome icons, so now your OpenXava applications will have a more modern look. The monochrome icons allow you to use the color to emphasize important data and actions in your application. Moreover, these icons are scalable, therefore when the user zooms the page the quaility is not altered.

To define icons for your own actions you have to use icon instead of image when you define your action in controllers.xml, thus:

<action name="delete" mode="detail" confirm="true"
    class="com.mycompany.myapp.actions.MyDeleteAction"
    icon="delete"
    keystroke="Control D"/>

In this case you use delete as id for the icon. To see all the available icons look at Material Design Icons.

Of course, the old image attribute is still supported, even more if you still prefer the old colorful icons you can configure OpenXava to use them.

Simplified UI For Charts

Just three type of charts, no dialog, Y properties on top left and X property on bottom right. This is the new clean UI for charts:

Search Box When Adding New Columns

We have optimized the adding columns dialog to work fine even with a huge amount of properties. For that, we have put a 20 properties limit for first dialog show (though the user can show all on demand) and we have added a search box to delimit the properties shown in real time just typing some letters:

Image Editor For @ElementCollection

Therefore now you can apply the PHOTO stereotype to a property of an @Embeddable of an @ElementCollection, in this way:

@Embeddable
public class CarPhoto {

    @Stereotype("PHOTO")
    private byte [] photo;
    
    @Column(length=50)
    private String description; 

 ...   

}

To get a user interface like this:

Other Improvements

We have done a lot of improvements in other areas:

  • Added the library for auditing Hibernate Envers.
  • "empty" and "not empty" filters for list and collections.
  • Split mode starts with the first object selected, unless you come from detail mode. 
  • New textWithSuffixEditor.jsp editor that allows put a suffix label after the field textbox.
  • CSS files in web/xava/editors/style are loaded automatically. 
  • New methods assertNoWarnings() and assertNoInfos() in ModuleTestBase.
  • New useIconsInsteadOfImages property in xava.properties to choose between new monochrome icons or old color images.
  • New resources.xml in WEB-INF for defining resource-ref elements. 
  • Automatically schema update for new projects.
  • Optimal Hibernate connection release mode for new projects.
  • start-manager-hsqldb.bat/.sh no longer need the JAVA_HOME environment variable.
  • Dropped support for Internet Explorer 9 and 10.
  • asm.jar, cglib.jar and ehcache.jar removed from distribution.

Bug Fixes

Though this is not a maintenance version we have done some fixes:

  • Fix: Numbers left aligned in list and collections.
  • Fix: From time to time the user is not redirected to the correct current module.
  • Fix: CSS changes are not automatically refreshed on version upgrade.
  • Fix: Charts style missing inside portals.
  • Fix: Liferay navigation bar shown over dialogs.
  • Fix: setConditionComparators method did not set conditions for collections in ModuleTestBase.

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.

Topics:
java ,announcement ,web dev

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}