0 Replies Latest reply on Jan 24, 2008 8:04 AM by Eleas

    A4J update nodes problem

    Eleas Newbie

      Good day,

      I wrote my own component with the aid of CDK(very usefull tool!). But I have some trouble.

      My Ajax component correctly send AJAX requiest. Then request handled and response sended to client side. But in client side in a4j:log following warn appear:

      warn[15:36:16,460]: Node for replace by response with id _id73:casesincategory:_id89 not found in document
      


      But the real node to replace in html defined as:
      <span class="vote" id="_id73:casesincategory:0:_id89">
      ....
      </span>
      


      As you can see, the difference in zero! Where's the problem? Please help me!

      P.S. I use custom element within <h:dataTable
      P.P.S The begining of renderer template for my custom component
      <?xml version="1.0" encoding="UTF-8"?>
      <f:root
       xmlns:f="http://ajax4jsf.org/cdk/template"
       xmlns:c="http://java.sun.com/jsf/core"
       xmlns:h="http://ajax4jsf.org/cdk/headers"
       xmlns:ui="http://ajax4jsf.org/cdk/ui"
       xmlns:u="http://ajax4jsf.org/cdk/u"
       xmlns:x="http://ajax4jsf.org/cdk/x"
       xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
       class="xxx.renderkit.html.VoteRenderer"
       baseclass="xxx.renderkit.VoteRendererBase"
       component="xxx.component.UIVote"
       >
       <f:clientid var="clientId"/>
      
       <jsp:scriptlet>
       <![CDATA[if("default".equalsIgnoreCase(component.getState()))
       {
       ]]>
       </jsp:scriptlet>
       <span id="#{clientId}" class="vote" x:passThruWithExclusions="value,name,type,id">