JavaEE框架,OpenXava 5.4 發布提供現代風格的界面

jopen 9年前發布 | 8K 次閱讀 OpenXava

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

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!