4 Replies Latest reply on Sep 30, 2015 8:45 AM by vidyasagar penugonda

    TypeError: f is null from jsf.js when I click on h:commandLink in rich:treeNode

    vidyasagar penugonda Novice

      Hi,

       

      I've got a strange problem with my richfaces tree node. I am doing RF migration from 3.3.3 to 4.5.6 Final. We have a commandLinks which are calling the another page with some parameters and this works fine in RF 3.3.3. we are getting ' TypeError: f is null ' javascript error when I click on command link. Even it is not invoking any action method from bean. Tree is forming without any issues. below is my code.

       

                          <rich:tree id="testTree1" toggleType="client" var="report">                           

                                  <rich:treeModelRecursiveAdaptor id="treeAdaptor"

                                      roots="#{bean.reports}" nodes="#{report.views}">

                                      <rich:treeNode iconCollapsed="/images/spacer.gif" iconExpanded="/images/spacer.gif" iconLeaf="/images/spacer.gif">

                                          <h:outputText id="nodeText" value="#{ report.label }" rendered="#{ report.loadDate == null }" />

                                          <h:commandLink id="nodeText1"

                                              rendered="#{ report.loadDate != null }"

                                              value="#{report.label}"

                                              title="#{report.desc}"

                                              type="submit"

                                              action="#{bean.switchReportPage}"

                                              actionListener="#{bean.processReportName}"

                                              immediate="true"                                  

                                              onclick="useWaitCursor();">   

                                              <f:attribute name="report" value="#{report.label}"/>

                                          </h:commandLink>

                                      </rich:treeNode>

                                  </rich:treeModelRecursiveAdaptor>   

                              </rich:tree>

       

      below are my jars :

      richfaces-4.5.6.Final.jar

      richfaces-a4j-4.5.6.Final.jar

      richfaces-core-4.5.6.Final.jar

      jsf-api-2.2.6.jar

      jsf-impl-2.2.6.jar

       

      Please help me to resolve this. this is stopping my work to move forward. Thanks in advance.