[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:20:52 EDT 2007


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

This is the exception I get any time I attempt to call a function from a valueBinding (method bindings work fine via Facelets, but not JSP)

Caused by: javax.el.ELException: Error Parsing: #{userFinder.getDataModel(3)}
	at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:160)
	at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:177)
	at com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:221)
	at com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:81)
	at org.jboss.seam.ui.facelet.SeamExpressionFactory.createValueExpression(SeamExpressionFactory.java:107)
	at com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:256)
	... 53 more
Caused by: com.sun.el.parser.ParseException: Encountered "(" at line 1, column 26.
Was expecting one of:
    "}" ...
    "." ...
    "[" ...
    ">" ...
    "gt" ...
    "<" ...
    "lt" ...
    ">=" ...
    "ge" ...
    "<=" ...
    "le" ...
    "==" ...
    "eq" ...
    "!=" ...
    "ne" ...
    "&&" ...
    "and" ...
    "||" ...
    "or" ...
    "*" ...
    "+" ...
    "-" ...
    "?" ...
    "/" ...
    "div" ...
    "%" ...
    "mod" ...
    
	at com.sun.el.parser.ELParser.generateParseException(ELParser.java:1651)
	at com.sun.el.parser.ELParser.jj_consume_token(ELParser.java:1531)
	at com.sun.el.parser.ELParser.DeferredExpression(ELParser.java:134)
	at com.sun.el.parser.ELParser.CompositeExpression(ELParser.java:61)
	at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:128)
	... 58 more
13:14:32,248 ERROR [DebugPageHandler] redirecting to debug page
com.sun.el.parser.ParseException: Encountered "(" at line 1, column 26.
Was expecting one of:
    "}" ...
    "." ...
    "[" ...
    ">" ...
    "gt" ...
    "<" ...
    "lt" ...
    ">=" ...
    "ge" ...
    "<=" ...
    "le" ...
    "==" ...
    "eq" ...
    "!=" ...
    "ne" ...
    "&&" ...
    "and" ...
    "||" ...
    "or" ...
    "*" ...
    "+" ...
    "-" ...
    "?" ...
    "/" ...
    "div" ...
    "%" ...
    "mod" ...
    
	at com.sun.el.parser.ELParser.generateParseException(ELParser.java:1651)
	at com.sun.el.parser.ELParser.jj_consume_token(ELParser.java:1531)
	at com.sun.el.parser.ELParser.DeferredExpression(ELParser.java:134)
	at com.sun.el.parser.ELParser.CompositeExpression(ELParser.java:61)
	at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:128)
	at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:177)
	at com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:221)
	at com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:81)
	at org.jboss.seam.ui.facelet.SeamExpressionFactory.createValueExpression(SeamExpressionFactory.java:107)
	at com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:256)
	at com.sun.facelets.tag.jsf.ComponentRule$ValueBindingMetadata.applyMetadata(ComponentRule.java:90)
	at com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
	at com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
	at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:140)
	at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
	at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
	at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
	at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
	at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
	at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
	at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:510)



> 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