2 Replies Latest reply on Mar 14, 2012 7:14 PM by Ivan Costa

    Richfaces 4.2 -  Target Unreachable - identifier resolved to null in <ui:fragment>

    Ivan Costa Newbie

      Hi all,


      I'm migrating from RichFaces 3.3.3 to 4.2 Final and using Mojarra 2.1.7 and Tomcat 7.0.26



      PAGE with include


      <a4j:outputPanel id="contribuintePanel">

           <h:panelGroup rendered="#{pessoaFisica.regra}" >

                <ui:include src="/template/contribuicao.xhtml">

                     <ui:param name="nomeDoBean" value="#{pessoaFisica}" />

                      .... and many other param's












                          <a4j:commandLink value="Todos"


                                   render="mesesContribuicaoSelect, contribuicaoAnual">




      When the commandLink, or other component in the fragment are clicked, I get:


      Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'nomeDoBean' resolved to null

          at org.apache.el.parser.AstValue.getTarget(AstValue.java:98)

          at org.apache.el.parser.AstValue.invoke(AstValue.java:244)

          at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)

          at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:153)

          ... 28 more


      In RF 3.3.3 I faced the same null identifier issue inside my ui:fragment's and the solution was to set  facelets.BUILD_BEFORE_RESTORE to false


      What's I'm doing wrong? What should I do now on RF 4.2 ???



      Thanks in advance