[
http://jira.jboss.com/jira/browse/JBSEAM-1089?page=all ]
Gavin King closed JBSEAM-1089.
------------------------------
Fix Version/s: 1.3.0.BETA1
Resolution: Done
Assignee: Gavin King
Was already done.
Allow extended EL method expression construction programmatically
-----------------------------------------------------------------
Key: JBSEAM-1089
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1089
Project: JBoss Seam
Issue Type: Feature Request
Components: JSF
Affects Versions: 1.1.6.GA
Environment: Any
Reporter: Mike Quilleash
Assigned To: Gavin King
Fix For: 1.3.0.BETA1
The enhanced EL parser for method parameters is not available programmatically.
e.g.
facesContext.getApplication().getExpressionFactory().createMethodExpression(
"#{bean.func( param )}" );
This is because the expression factory is only loaded into the facelets compiler not the
JSF application. As Seam already has an overriden Application implementation
(SeamApplication12) it should be trivial to change this so getExpressionFactory() returns
the SeamExpressionFactory which would delegate down to the default getExpressionFactory().
Then the enhanced EL would be available in the API as well as facelets files. (Facelets
just calls Application.getExpressionFactory() so this should work as it did before).
This would be extremely useful for me as I do a fair bit of dynamic component/EL
generation.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira