2 Replies Latest reply on Mar 22, 2011 10:21 AM by Nick Belaevski

    RichFaces4+JSF2 Target Unreachable Exception

    ravi kuchika Newbie

      Hi all,

       

      Richfaces4 and JSF2 i am using(Richfaces4 CR1 release jars)

       

      I am getting below exception while generating <rich:TabPanel/> dynamically using binding variable:

       

       

      javax.el.PropertyNotFoundException: /tabs.xhtml @29,33 binding="#{obj.tab}": Target Unreachable, identifier 'obj' resolved to null
      at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:130)
      at com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotations(ApplicationImpl.java:1886)
      at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:1107)
      at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.createComponent(ComponentTagHandlerDelegateImpl.java:440)
      at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:144)

       

       

      XHTML look like this

       

       

      <a4j:outputPanel id="output">

      <rich:tabPanel id="tab" >

      <c:forEach var="obj" items="#{tabNavigationBean.tabList}">

      <rich:tab binding="#{obj.tab}">

        <f:param value="#{obj.name}" name="tabType"></f:param>

        <f:facet name="label">

          <h:panelGrid columns="2">

           <h:outputText value="#{obj.name}" />

           <h:graphicImage value="/images/icons/delete.gif"

               style="width:12px; height:12px;" onclick="myFun('#{obj.name}');"

              />

          </h:panelGrid>

          </f:facet>

         </rich:tab>

      </c:forEach>

      </rich:tabPanel>

      </a4j:outputPanel>

       

      Pls help me on this issue.

       

      Thanks