Hi,
I am using the Tacos-alpha-7 release (and Tapestry beta-13) and dojo 0.22 and am having trouble with a simple AjaxDirectLink call. I have AjaxDirectLinks in components that are used within a page. When I click the link the listener is called just fine and no exceptions are thrown. I would expect the page to then be rendered and returned to dojo, but that is not happening. Just the processScripts portion is working and I only get _javascript_ back. I've debugged and was surprised to see that the page was rendered into a NullWriter. It seems that the DojoResponseBuilder just uses the updateComponents when it is a direct call.
I've had lots of success with the Tacos components but not in this page for some reason. The only difference with this page is that I'm using the debugConsole so maybe that doesn't display the HTML returned? The 'mainElements' div (it is a dojo widget) is present. I'm sure it is something silly that I forgot to do. Any ideas?
Here is my link:
<
span jwcid="forLoop"> <li jwcid="@Any" id="ognl:(payElement.name + 'L')"> <a jwcid="[EMAIL PROTECTED]:AjaxDirectLink" listener="listener:linkListener" updateComponents="ognl:{'mainElements'}" updateObject="basicUpdateObject" direct="ognl:false"><span jwcid="@Insert" value= "ognl:payElement.name" /></a></li > </span>
Here is what the Tacos debugConsole is spitting out:
INFO:Response:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [ <!ENTITY nbsp ' '> ]> <ajax-response><response type="element" id="scriptblock"> <script> //<![CDATA[
dojo.require("dojo.widget.FloatingPane"); dojo.require("dojo.widget.LayoutPane"); dojo.require("dojo.widget.ResizeHandle"); dojo.require("dojo.fx.html"); dojo.require("
dojo.io"); //]]> </script> <script> //<![CDATA[ dojo.event.connect(window, "onload", function() { tacos.initializeFloatingPane("debugconsole"); }); Tapestry.register_form('planSelectionFrm'); //]]> </script> </response><response type="element" id="jsincludes"> <script> //<![CDATA[
tacos.loadScriptFromUrl("/comp/assets/a7b0d1438f6ed53d6c52b9f7175adde6/net/sf/tacos/ajax/components/tacos.js"); //]]> </script> <script> //<![CDATA[ tacos.loadScriptFromUrl("/comp/assets/1f7008d3e65882519740d925d6c5a813/org/apache/tapestry/form/Form.js"); //]]> </script> <script> //<![CDATA[
tacos.loadScriptFromUrl("/comp/assets/8d5e65799c25b9017735332a0a8ddcc1/com/workscape/compadmin/web/MaintainPlan.js"); //]]> </script> <script> //<![CDATA[ tacos.loadScriptFromUrl("/comp/assets/1c86cd382631b3d03e913387f074e6be/net/sf/tacos/ajax/components/prototype.js"); //]]> </script> </response></ajax-response>
DEBUG: preProcessScripts id:scriptblock
DEBUG: preProcessScripts id:jsincludes
DEBUG: sync script eval of: //<![CDATA[ tacos.loadScriptFromUrl("/comp/assets/a7b0d1438f6ed53d6c52b9f7175adde6/net/sf/tacos/ajax/components/tacos.js"); //]]>
DEBUG: sync script eval of: //<![CDATA[ tacos.loadScriptFromUrl("/comp/assets/1f7008d3e65882519740d925d6c5a813/org/apache/tapestry/form/Form.js"); //]]>
DEBUG: sync script eval of: //<![CDATA[ tacos.loadScriptFromUrl("/comp/assets/8d5e65799c25b9017735332a0a8ddcc1/com/workscape/compadmin/web/MaintainPlan.js"); //]]>
DEBUG: sync script eval of: //<![CDATA[ tacos.loadScriptFromUrl("/comp/assets/1c86cd382631b3d03e913387f074e6be/net/sf/tacos/ajax/components/prototype.js"); //]]>
DEBUG: evaluating script: //<![CDATA[ dojo.require("dojo.widget.FloatingPane"); dojo.require("dojo.widget.LayoutPane"); dojo.require("dojo.widget.ResizeHandle"); dojo.require("dojo.fx.html
"); dojo.require("dojo.io"); //]]>
DEBUG: evaluating script: //<![CDATA[ dojo.event.connect(window, "onload", function() { tacos.initializeFloatingPane("debugconsole"); }); Tapestry.register_form('planSelectionFrm'); //]]>