2017年6月17日 星期六

PrimeFaces p:calendar 元件套用 bootstrap form-control 樣式

技術問題

PrimeFaces p:calendar 套用 bootstrap .form-control 是無法正確顯示。p:calendar 的輸入外框會超出元件邊界外框,如下圖所示:


2017年6月10日 星期六

EJB 3.1 Embeddable API + Junit 技術心得整理

簡介

在 Junit 中使用 Embedded GlassFish Server 做爲 EJB 元件的測試環境。The EJB 3.1 Embeddable API is designed for unit testing of EJB modules.

參考範例 Using the Embedded EJB Container to Test Enterprise Applications (https://netbeans.org/kb/docs/javaee/javaee-entapp-junit.html?print=yes)