0 Replies Latest reply on Feb 27, 2012 4:44 AM by Sreenivasulu N

    a4j:commandLink is not working for single click in rich:tree

    Sreenivasulu N Newbie

      <rich:panelBarItem id="core" label="Core">

              <div

                  style="height: 526px; width: 276px; overflow-x: auto; overflow-y: auto;">

              <rich:tree value="#{menuTreeBean.rootNode}" var="node"

                  componentState="#{menuTreeBean.treeState}"

                  style="font-size:10px;font-family:Verdana;" switchType="ajax"

                  ajaxSubmitSelection="true">

                  <rich:treeNode ajaxSubmitSelection="true"

                      selectedClass="tree-node-selected">

                      <a4j:commandLink value="#{node.menuName}"  immediate="true"

                          reRender="bodyRender,poll,examinationPoll"

                          action="#{rmasNavigationBean.doNavigation}" ajaxSingle="true">

                          <f:param name="pageNavigation" value="#{node.menuId}"></f:param>

                          <f:param name="menuLabel" value="#{node.labelFlag}"></f:param>

                          <a4j:support event="oncomplete"

                              action="#{menuTreeBean.doSessionReset}"></a4j:support>

                      </a4j:commandLink>

                  </rich:treeNode>

              </rich:tree></div>

          </rich:panelBarItem>

       

      In the above code snippet, i am using a4j:commandLink in rich:tree. when user click on that link, just same page will rernder with corresponding responce.

      single click of that link, the correspond action method has to call......

      but it is not happening like that.

      it is working for next click...........

      Its urgent please...... give me solution as early as possible please

       

      Heartly thanks in advance