Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-523

No error condition was raised when managed bean contained a reference to another bean with a potentially shorter scope than what the bean was configured for.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.9m9
    • 1.1.0
    • JSR-127
    • None

    Description

      Acording to the spec (section 5.3.1.3, p5-11):

      "It is an error for a managed bean created through this facility to have a property
      that points at an object stored in a scope with a (potentially) shorter life span.
      Specifically, this means, for an object created with the specified <managed-beanscope>,
      then <value> evaluations can only point at created objects with the
      specified managed bean scope:

      • none – none
      • application – none, application
      • session – none, application, session
      • request – none, application, session, request"

      I guess the ManagedBeanFactory should throw a FacesException in that case.

      (managedBeanScopedReferencesTest)

      Attachments

        Activity

          People

            oros Oliver Rossmueller
            bruno_dev Bruno Aranda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: