You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Paul McMahan (JIRA)" <de...@myfaces.apache.org> on 2007/04/18 22:52:15 UTC

[jira] Created: (MYFACES-1588) managed beans are not resolved when scope is "none"

managed beans are not resolved when scope is "none"
---------------------------------------------------

                 Key: MYFACES-1588
                 URL: https://issues.apache.org/jira/browse/MYFACES-1588
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-252
    Affects Versions: 1.2.0-SNAPSHOT
            Reporter: Paul McMahan
         Assigned To: Paul McMahan


When a manged bean is defined in an application's config like this:
        <managed-bean>
                <managed-bean-name>MyBean</managed-bean-name>
                <managed-bean-class>foo.MyBean</managed-bean-class>
                <managed-bean-scope>none</managed-bean-scope>
        </managed-bean>

the bean should be resolvable from a ValueBinding but instead it returns null as shown below:
        ValueBinding binding = application.createValueBinding("#{MyBean}");
        binding.getValue(facesContext);   // returns null;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (MYFACES-1588) managed beans are not resolved when scope is "none"

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

Paul McMahan resolved MYFACES-1588.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.0-SNAPSHOT

> managed beans are not resolved when scope is "none"
> ---------------------------------------------------
>
>                 Key: MYFACES-1588
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1588
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-252
>    Affects Versions: 1.2.0-SNAPSHOT
>            Reporter: Paul McMahan
>         Assigned To: Paul McMahan
>             Fix For: 1.2.0-SNAPSHOT
>
>
> When a manged bean is defined in an application's config like this:
>         <managed-bean>
>                 <managed-bean-name>MyBean</managed-bean-name>
>                 <managed-bean-class>foo.MyBean</managed-bean-class>
>                 <managed-bean-scope>none</managed-bean-scope>
>         </managed-bean>
> the bean should be resolvable from a ValueBinding but instead it returns null as shown below:
>         ValueBinding binding = application.createValueBinding("#{MyBean}");
>         binding.getValue(facesContext);   // returns null;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.