+1<br clear="all">---<br>Kito D. Mann -- Author, JavaServer Faces in Action<br><a href="http://twitter.com/kito99">http://twitter.com/kito99</a> <a href="http://twitter.com/jsfcentral">http://twitter.com/jsfcentral</a><br>
JSF 2 Seminar Sep 1st: <a href="http://www.regonline.com/jsf2seminar">http://www.regonline.com/jsf2seminar</a><br>JSF Summit Conference Dec 1st-4th in Orlando: <a href="http://www.jsfsummit.com">http://www.jsfsummit.com</a><br>
<a href="http://www.JSFCentral.com">http://www.JSFCentral.com</a> - JavaServer Faces FAQ, news, and info<br>+1 203-404-4848 x3<br>
<br><br><div class="gmail_quote">On Tue, Jul 28, 2009 at 9:00 AM, Pete Muir <span dir="ltr"><<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I would like to propose adding ExpressionFactory to the list of classes required to support the decorator pattern. This is to aid integration with CDI (JSR-299) implementations, which are require a callback when EL expression evaluation completes; the necessary hook into EL is via the ExpressionFactory. Adding ExpressionFactory to this list would make implemetors have to jump through fewer hoops to obtain the callback [1].<br>
<br>
I propose this change to the MR so it can be used in the EE6 platform, the target for JSR-299.<br>
<br>
Changes to spec required<br>
-----------------------------------<br>
<br>
* Add ExpressionFactory to the list of classes required to support the decorator pattern<br>
* Add ExpressionFactoryWrapper class to support the decorator pattern<br>
<br>
Changes to implementation required<br>
--------------------------------------------------<br>
<br>
* Add support for exposing and using wrapped ExpressionFactory<br>
<br>
Impact on users and frameworks<br>
--------------------------------------------<br>
<br>
Users can now:<br>
<br>
* call application.setExpressionFactory(new WebBeansExpressionFactory(application.getExpressionFactory());<br>
* configure a wrapping expression factory in faces-config.xml<br>
<application><br>
<expressionFactory>org.jboss.webbeans.el.WebBeansExpressionFactory</expressionFactory><br>
</application><br>
<br>
[1] Currently this is possible by wrapping the application via the application factory and overriding the getExpressionFactory method<br>
</blockquote></div><br>