JSF2 工具庫,OmniFaces 2.2 發布
OmniFaces 是一個 JSF 2 的工具庫,其目的是為了讓 JSF 應用開發更加簡單。
如果你厭倦了重塑JSFUtil或FacesUtil實用程序類,為每個JSF web應用程序定制組件,使用 taghandlers 等來解決JSF的缺點的話,OmniFaces可能是你要找的東西!
OmniFaces 2.2 發布 ,OmniFaces 剛剛獲得一年一度的杜克選擇獎(Duke's Choice Awards)。
新特性
-
#124 -
</li><o:commandScript>
got newautorun
attribute, allowing for immediate execution during window load event -
#118 -
</li><o:viewParam>
got newdefault
attribute, allowing to set a default value when no view param is present -
572c118 - efd9347 - Added
</li>Faces#refresh()
andFaces#refreshWithQueryString()
which do basicallyredirect(getRequestURI())
; addedFaces#getRenderKit()
-
#157 - Added
</li>Messages#isEmpty()
,Messages#isEmpty(clientId)
andMessages#isGlobalEmpty()
-
465a78d - Added
</li>FacesConfigXml#getSupportedLocales()
which returns an ordered list in contrary toFaces#getSupportedLocales()
-
#116 -
</li><o:form>
now supports<f|o:param>
children -
1c912f7 - 62949a3 - ad44be1 - 5216b57 -
</li>@ViewScoped
now listens on browser unload event and gets destroyed sooner -
#148 -
</li>@ContextParam
which injects a<context-param>
value -
#1c912f7 - Added
</li>Components#addScriptXxx()
methods which can add an inline script or script resource to head or body -
#167 - Added
</li>Components#includeCompositeComponent()
overloaded method which takes an attribute map -
#149 - Added
</li>Components#buildView()
andComponents#encodeHtml()
allowing local building and encoding of (simple) templates -
#119 - New
</li><o:viewAction>
component which evaluatesif
attribute during invoke application phase -
1417fc0 - Added abstract template for "BalusC FileServlet" which supports a.o. cache and range (resume) requests
</li> </ul>
改進
-
55510fa -
</li>Html5RenderKit
is deprecated in favor of JSF 2.2 passthrough attributes; it will be removed in OmniFaces 3.0 -
d364daf -
</li><f:event type="(pre|post)InvokeAction">
is now supported on all components -
#164 -
</li><o:importFunctions">
will now throw a clearIllegalArgumentException
on non-existing function -
#167 - Migrated
</li> </ul>Components#includeCompositeComponent()
to JSF 2.2 approach withcreateComponent()
Bug 修復
-
6cf7123 - 96d5d17 -
</li>CombinedResourceHandler
failed when resource name contains a query string, and ordering w.r.t. suppressed resources failed during synchronous postback in MyFaces -
#141 -
</li>JNDI#lookup()
in GlassFish 4.x incorrectly threwNamingExcepion
instead of returningnull
-
f914b83 -
</li>Components#getParams()
didn't considerConverter
ofParamHolder
-
#127 - #179 -
</li>Ajax#updateRow()
failed in paginated tables and p:columns -
#156 -
</li>WebXml#findErrorPageLocation()
(andFullAjaxExceptionHandler
) didn't consider entire class hierarchy when matching exception types -
#150 -
</li><o:validateBean>
threw NPE on unrendered inputs -
#144 -
</li><o:validateBean>
threw IAE on boolean inputs -
#168 -
</li>ResetInputAjaxActionListener
is now also compatible with RichFaces 4.5+ -
#166 -
</li>@Eager
blocked deployment in Jetty -
#183 -
</li>OmniPartialViewContext
failed to handleweb.xml
form login page redirect in MyFaces 2.2+ -
d82d6a0 -
</li> </ul><o:graphicImage>
generated illegal URL when OpenWebBeans managed bean is used更多內容請看發行說明。
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-
-