JSF2 工具庫,OmniFaces 2.2 發布

jopen 9年前發布 | 6K 次閱讀 OmniFaces

OmniFaces 是一個 JSF 2 的工具庫,其目的是為了讓 JSF 應用開發更加簡單。

如果你厭倦了重塑JSFUtil或FacesUtil實用程序類,為每個JSF web應用程序定制組件,使用 taghandlers 等來解決JSF的缺點的話,OmniFaces可能是你要找的東西!

OmniFaces 2.2 發布 ,OmniFaces 剛剛獲得一年一度的杜克選擇獎(Duke's Choice Awards)。


JSF2 工具庫,OmniFaces 2.2 發布

新特性


  • #124 - <o:commandScript> got new autorun attribute, allowing for immediate execution during window load event

    </li>

  • #118 - <o:viewParam> got new default attribute, allowing to set a default value when no view param is present

    </li>

  • 572c118 - efd9347 - Added Faces#refresh() and Faces#refreshWithQueryString() which do basically redirect(getRequestURI()); added Faces#getRenderKit()

    </li>

  • #157 - Added Messages#isEmpty(), Messages#isEmpty(clientId) andMessages#isGlobalEmpty()

    </li>

  • 465a78d - Added FacesConfigXml#getSupportedLocales() which returns an ordered list in contrary to Faces#getSupportedLocales()

    </li>

  • #116 - <o:form> now supports <f|o:param> children

    </li>

  • 1c912f7 - 62949a3 - ad44be1 - 5216b57 - @ViewScoped now listens on browser unload event and gets destroyed sooner

    </li>

  • #148 - @ContextParam which injects a <context-param> value

    </li>

  • #1c912f7 - Added Components#addScriptXxx() methods which can add an inline script or script resource to head or body

    </li>

  • #167 - Added Components#includeCompositeComponent() overloaded method which takes an attribute map

    </li>

  • #149 - Added Components#buildView() and Components#encodeHtml() allowing local building and encoding of (simple) templates

    </li>

  • #119 - New <o:viewAction> component which evaluates if attribute during invoke application phase

    </li>

  • 1417fc0 - Added abstract template for "BalusC FileServlet" which supports a.o. cache and range (resume) requests

    </li> </ul>


    改進


    • 55510fa - Html5RenderKit is deprecated in favor of JSF 2.2 passthrough attributes; it will be removed in OmniFaces 3.0

      </li>

    • d364daf - <f:event type="(pre|post)InvokeAction"> is now supported on all components

      </li>

    • #164 - <o:importFunctions"> will now throw a clear IllegalArgumentException on non-existing function

      </li>

    • #167 - Migrated Components#includeCompositeComponent() to JSF 2.2 approach with createComponent()

      </li> </ul>


      Bug 修復


      • 6cf7123 - 96d5d17 - CombinedResourceHandler failed when resource name contains a query string, and ordering w.r.t. suppressed resources failed during synchronous postback in MyFaces

        </li>

      • #141 - JNDI#lookup() in GlassFish 4.x incorrectly threw NamingExcepion instead of returning null

        </li>

      • f914b83 - Components#getParams() didn't consider Converter of ParamHolder

        </li>

      • #127 - #179 - Ajax#updateRow() failed in paginated tables and p:columns

        </li>

      • #156 - WebXml#findErrorPageLocation() (and FullAjaxExceptionHandler) didn't consider entire class hierarchy when matching exception types

        </li>

      • #150 - <o:validateBean> threw NPE on unrendered inputs

        </li>

      • #144 - <o:validateBean> threw IAE on boolean inputs

        </li>

      • #168 - ResetInputAjaxActionListener is now also compatible with RichFaces 4.5+

        </li>

      • #166 - @Eager blocked deployment in Jetty

        </li>

      • #183 - OmniPartialViewContext failed to handle web.xml form login page redirect in MyFaces 2.2+

        </li>

      • d82d6a0 - <o:graphicImage> generated illegal URL when OpenWebBeans managed bean is used

        </li> </ul>

        更多內容請看發行說明


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