2 Replies Latest reply on Apr 2, 2012 6:55 AM by Andreas Hahne

    rich:tree selection while validation error

    Gen Sys Newbie

      Hi all,

       

      I am working with the following rich:tree:

       

          <rich:tree id="parametersTree"
               value="#{treeBean.parameterNodes}"
               nodeSelectListener="#{treeBean.processTreeSelection}"
               reRender="configPanel"
               ajaxSubmitSelection="true"
               adviseNodeSelected="#{treeBean.nodeSelected}"
               var="nodeName"
               <rich:treeNode>
                   <h:outputText value="#{nodeName}" />
               </rich:treeNode>
          </rich:tree>

       

      I want to prevent the change of the selected node if there is a validation error and <rich:message> is shown. treeBean.nodeSelected method has been called only when there is no validation error - which seams to be ok. Nevertheless, the selected node is changed in the brawser.

       

      Any suggestions?

       

      Thanks