1 Reply Latest reply on Sep 20, 2010 7:45 AM by Sascha Janz

    JSF component binding and page scope

    Stephen Friedrich Novice

      Is component binding supposed to work when the backing bean has page scope?

      I tried to use


      on one of my components.
      "_reportProjectControlling" is a page scoped JavaBean.

      That works fine only on the initial request.
      On postback I am getting

      23:20:31,415 ERROR [ExceptionFilter] exception root cause
      javax.el.PropertyNotFoundException: /projectControllingReportFilter.xhtml @127,215 binding="#{_reportProjectControlling.employeeSelectOneChoice}": Target Unreachable, identifier '_reportProjectControlling' resolved to null
           at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:95)

      The docs say that conversation scope is illegal, but do not mention page scope.

      For now I just grab the component by searching from the view root, but that's ugly and leaves no trace in the xhtml file that the component is used on the java side.

      This is Seam 2.0.2.SP1 on JBoss 4.2.2.