5 Replies Latest reply on Mar 25, 2011 5:56 AM by Ilya Shaikovsky

    rich:tree and reRender problem in Chrome

    Ralu Jucan Newbie

      Hi everybody,

       

       

      I have the following problem.

      I have a richTree on my page and when I click an element a method is called and a list is rerendered. The problem is I also want to rerender the tree to display in bold the tree node that I have selected. I have tested my page in all browsers but in Chrome when I try to rerender the tree everything becomes blank. Everythig works ok if I refresh the whole page and use h:commandLink but I also need to use anchors so refreshing the whole page is not an option. Did anybody have this problem before?

       

      Here is my code:

       

                          <h:form>
                              <a4j:outputPanel id="richTree">
                                  <rich:tree switchType="client" style="width: 300px" id="tree"
                                      value="#{handler.categories}" var="category"
                                      adviseNodeOpened="#{handler.adviseNodeOpened}">
                                      <rich:treeNode>
                                          <a4j:commandLink value="..."
                                              action="#{handler.getListForCategory}" reRender="richTree, categoryArticles"
                                              rendered="#{handler.categoryId != category.id}" >
                                              <f:param value="#{category.id}" name="categoryId" />
                                          </a4j:commandLink>   
                                          <a4j:commandLink value="..." action="#{handler.getListForCategory}"
                                              reRender="richTree, categoryArticles"
                                              styleClass="bold" rendered="#{handler.categoryId == category.id}" >
                                              <f:param value="#{category.id}" name="categoryId" />
                                          </a4j:commandLink>
                                      </rich:treeNode>
                                  </rich:tree>
                              </a4j:outputPanel>
                          </h:form>

       

      Thanks