JavaEE框架,OpenXava 5.4 发布提供现代风格的界面

jopen 8年前

OpenXava 是一个用来快速简洁开发JavaEE/J2EE应用的框架。
OpenXava的核心是用Java annotations或XML来定义,用Java来编码;定义越多编码越少就越好。
OpenXava的主要目的是简化业务应用系统开发中的典型工作,同时仍然保持必要的灵活性让开发人员根据需要开发高级特性。

OpenXava 5.4 拥有一组新的和现代的图标集,一个简单化的UI可以来绘制图表,搜索框当列表增加一个新列时,图片编辑器等更多内容。

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:
 OpenXava 5.4 发布
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:
 OpenXava 5.4 发布
 

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:
 OpenXava 5.4 发布
 

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:
 OpenXava 5.4 发布
 

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.

Download OpenXava 5.4