1 Reply Latest reply on Jun 11, 2009 5:46 AM by Nick Belaevski

    Dropdown Menu to select subviews does not refresh views

    Brian Antao Newbie


      I am trying to implement a dropdown menu to dynamically display two different types of trees within a subview. I am able to swtich the trees and select the two different trees from the dropdown menu. Bun on mouseclick the subview does not automatically refresh.
      I haave a poll in each of the trees and when I click the mouse within the tree node, the subview gets refreshed. that's how I know that the trees are indded getting switched from the menu selection logic. the only problem is that the subview itself needs to be updated or refreshed on mouseclick or selection from the menu itself instead of clicking within the tree and then getting refreshed.
      Following is the code segment for the dropdoen menu:
      <rich:dropDownMenu event="onclick">
      <f:facet name="label">
      <h:outputText value="View Selection"/>
      <rich:menuItem submitMode="ajax" value="Children"
      action="#{saBean.childrenViewClick}" reRender="saTree2">
      <rich:menuItem submitMode="ajax" value="Children and Features"
      action="#{saBean.childrenFeaturesViewClick}" reRender="saTree1">

      Many thanks for your help in advance --
      -- Brian