[
https://issues.apache.org/jira/browse/MYFACES-2828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jakob Korherr resolved MYFACES-2828.
------------------------------------
Fix Version/s: 2.0.2-SNAPSHOT
Resolution: Fixed
An ELException saying "Cannot add parameters to a MethodExpression pointing to
cc.attrs" will be thrown now at the time the MethodExpression for the composite
component is created.
> Indicate a better error message if a composite component MethodExpression
> includes parameters
> ---------------------------------------------------------------------------------------------
>
> Key: MYFACES-2828
> URL: https://issues.apache.org/jira/browse/MYFACES-2828
> Project: MyFaces Core
> Issue Type: Task
> Components: JSR-314
> Affects Versions: 2.0.1
> Reporter: Jakob Korherr
> Assignee: Jakob Korherr
> Priority: Minor
> Fix For: 2.0.2-SNAPSHOT
>
>
> If you use something like this
> action="#{cc.attrs.method(cc.attrs.param)}"
> inside a composite component, you will get an unclear ELException, saying
> "Method method not found", because the ValueExpression which retrieves the
> MethodExpression from the composite component attribute map does not support
> params (of course). Thus a better exception message is clearly needed in this
> case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.