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/20 16:10:47 UTC

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

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

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

Posted by "Matt Benson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACESTEST-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040284#comment-13040284 ] 

Matt Benson edited comment on MYFACESTEST-51 at 5/27/11 3:22 PM:
-----------------------------------------------------------------

>From the EL spec:

  The ELResolver in the ELContext is used to resolve the top-level variables and to determine the behavior of the . and [] operators.


      was (Author: mbenson):
    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

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

Posted by "Rudy De Busscher (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACESTEST-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rudy De Busscher updated MYFACESTEST-51:
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.4-SNAPSHOT
         Assignee: Rudy De Busscher
           Status: Resolved  (was: Patch Available)

> 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
>            Assignee: Rudy De Busscher
>             Fix For: 1.0.4-SNAPSHOT
>
>         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

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

Posted by "Matt Benson (JIRA)" <de...@myfaces.apache.org>.
    [ 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

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

Posted by "Matt Benson (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACESTEST-51?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Benson updated MYFACESTEST-51:
-----------------------------------

    Status: Patch Available  (was: Open)

> 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