[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1309) Hook Faces Application.createValueBinding / createMethodBinding so that the Expression Language enhancements are available to all bindings created

Chris Rudd (JIRA) jira-events at lists.jboss.org
Mon May 14 14:58:03 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-1309?page=comments#action_12362203 ] 
            
Chris Rudd commented on JBSEAM-1309:
------------------------------------

Was it your intention that you could make normal calls to objects from within value bindings like you added to method bindings?

I.e. currently you added support for a method binding (namely action method) to be specified like this :
#{someBean.actionMethod( parameter )}

Did you intend for a value binding to have the same flexability, such that you could call any method of an object and return its result / use it in a value expression?

> Hook Faces Application.createValueBinding / createMethodBinding so that the Expression Language enhancements are available to all bindings created
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-1309
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1309
>             Project: JBoss Seam
>          Issue Type: Feature Request
>    Affects Versions: 1.2.1.GA
>            Reporter: Chris Rudd
>
> Currently the expression language extensions are only available from facelets views. If the Faces Application is hooked into then the createMethodBinding/createValueBinding can be extended to support the extensions as well.
> The issue is that currently you cannot do this :
> FacesContext.getCurrentInstance().getApplication().createValueBinding("#{s:hasPermission('g','g',null)}");
> Likewise if you are in a faces request this also failes (due to it delegating to the facesContext)
> Expressions.instance().createValueBinding("#{s:hasPermission('g','g',null)}");

-- 
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

        



More information about the seam-issues mailing list