You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matt Benson (JIRA)" <de...@myfaces.apache.org> on 2011/05/27 17:22:47 UTC

[jira] [Commented] (MYFACESTEST-51) MockValueExpression should use the ELResolver provided by the ELContext instance passed to its methods

    [ https://issues.apache.org/jira/browse/MYFACESTEST-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040284#comment-13040284 ] 

Matt Benson commented on MYFACESTEST-51:
----------------------------------------

>From the EL spec:
{quote}
The ELResolver in the ELContext is used to resolve the top-level variables and to determine the behavior of the . and [] operators.
{quote}

> MockValueExpression should use the ELResolver provided by the ELContext instance passed to its methods
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACESTEST-51
>                 URL: https://issues.apache.org/jira/browse/MYFACESTEST-51
>             Project: MyFaces Test
>          Issue Type: Bug
>          Components: Mock Objects
>            Reporter: Matt Benson
>         Attachments: MYFACESTEST-51.patch.txt
>
>
> For code that uses custom ELContext instances (e.g. myfaces-extval) the MockValueExpression behaves wrongly by directly fetching the ELResolver from the active FacesContext; this can be deferred to MockELContext for "normal" situations, and still function correctly for extraordinary situations such as described.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira