MyFaces Extensions Scripting
  1. MyFaces Extensions Scripting
  2. EXTSCRIPT-121

removing an annotated managed property causes an error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-Final
    • Fix Version/s: 1.0-Final
    • Component/s: MyFaces 2.0 Extension
    • Labels:
      None

      Description

      The removal of an annotated managed property causes following error (see below)
      I assume the reason for this is a bug in the annotation scanner which does not seem to remove
      managed properties currently if they are not present anymore.

      Caused by: javax.el.PropertyNotFoundException: The class 'org.apache.myfaces.javaloader.test.TestBean2' does not have the property 'bean4'.
      at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:574)
      at javax.el.BeanELResolver.setValue(BeanELResolver.java:360)
      at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:283)
      at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.setValue(FacesCompositeELResolver.java:180)
      at org.apache.myfaces.extensions.scripting.jsf.dynamicdecorators.implemetations.ELResolverProxy.setValue(ELResolverProxy.java:118)
      at org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:349)
      at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:169)
      at org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.createManagedBean(ManagedBeanResolver.java:303)
      at org.apache.myfaces.el.unified.resolver.ManagedBeanResolver.getValue(ManagedBeanResolver.java:266)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
      at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:140)
      at org.apache.myfaces.extensions.scripting.jsf.dynamicdecorators.implemetations.ELResolverProxy.getValue(ELResolverProxy.java:49)
      at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:64)

        Activity

        Hide
        Werner Punz added a comment -

        done you now can add and pull managed props on the fly

        Show
        Werner Punz added a comment - done you now can add and pull managed props on the fly

          People

          • Assignee:
            Werner Punz
            Reporter:
            Werner Punz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development