0 Replies Latest reply on Jul 10, 2007 3:09 PM by vh

    why my nodeSelectListener on rich:tree is never called

    vh

      Here is my code. When I click on the tree node, I see this:
      12:06:35,657 DEBUG <http-8080-Processor25> [TidyXMLFilter] Parsers pool empty - create new JTidy parser
      12:06:35,657 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : unknown attribute "xmlns:rich"
      12:06:35,657 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : missing <!DOCTYPE> declaration
      12:06:35,657 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : inserting missing 'title' element
      12:06:35,657 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : unknown attribute "rich:nodeid"
      12:06:35,673 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : img lacks "alt" attribute
      12:06:35,673 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : img lacks "alt" attribute
      12:06:35,673 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : unknown attribute "rich:dropzoneoptions"
      12:06:35,673 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : unknown attribute "rich:draggableoptions"
      12:06:35,673 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : unknown attribute "rich:ajaxselectedlistener"
      12:06:35,673 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : img lacks "alt" attribute
      12:06:35,673 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : unknown attribute "rich:selectedclass"
      12:06:35,673 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : unknown attribute "rich:highlightedclass"
      12:06:35,673 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : meta isn't allowed in elements
      12:06:35,673 DEBUG <http-8080-Processor25> [TidyParser] Message for HTML parsing : meta isn't allowed in elements
      12:06:35,688 DEBUG <http-8080-Processor25> [BaseXMLFilter] Parsing html total time 31ms

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
      <h:form id="templateForm"
       xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
       xmlns:rich="http://richfaces.ajax4jsf.org/rich">
      <f:loadBundle basename="com.vmware.vdi.admin.ui.messages.MessageBundle" var="bundle"/>
       <a4j:keepAlive beanName="desktopBean" />
       <table>
       <tr>
       <td align="left">
       <h:outputText value="#{bundle.TemplateSelection}"/>
       </td>
       </tr>
       <tr>
       <td align="left">
       <h:outputText value="#{bundle.TemplateDesc}"/>
       </td>
       </tr>
       <tr>
       <td align="left">
       <rich:panel>
       <rich:tree style="width:300px"
       value="#{desktopBean.templateRoot}"
       ajaxSubmitSelection="true"
       nodeSelectListener="#{desktopBean.cancel}"
       var="item" nodeFace="leaf">
       <rich:treeNode type="leaf">
       <h:outputText value="#{item.name}"/>
       </rich:treeNode>
       </rich:tree>
       </rich:panel>
       </td>
       </tr>
       <tr>
       <td colspan="3">
       <rich:spacer height="20px">
       </rich:spacer>
       </td>
       </tr>
       <tr>
       <td align="center" colspan="3">
       <a4j:commandButton action="back" value="#{bundle.Back}" reRender="wizard"/>
       <rich:spacer width="5px"></rich:spacer>
       <a4j:commandButton action="next" value="#{bundle.Next}" reRender="wizard"/>
       <rich:spacer width="5px"></rich:spacer>
       <a4j:commandButton
       action="cancel"
       actionListener="#{desktopBean.cancel}"
       value="#{bundle.Cancel}"
       oncomplete="Richfaces.hideModalPanel('addDesktopMp');"
       reRender="wizard"/>
       </td>
       </tr>
       </table>
      </h:form>