The DojoAjaxResponseBuilder handler currently gets configured with the names of pages representing exceptions in order to detect an exception page and properly render the response so it is presented properly for ajax requests.
This configuration currently is done via hivemind : http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/service/tapestry.services.DojoAjaxResponseContributor.html This could possibly be a bug on my part but I'm not sure? Either way your feedback would be greatly appreciated, hopefully I can use your issues to enhance the 4.0->4.1 upgrade guide. On 1/11/07, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote:
I just noticed something that seems related. The browser reports a syntax error in dojo/src/browser_debug.js: missing } after function body browser_debug.js (line 17) document.write("<script type='text/javascript'>dojo.hostenv._global_omit_module_check = false;</script>");dojo.hostenv._loadedUrisListStart = 0;if (!willCallAgain) {dj_eval = old_dj_eval;dojo.hostenv.loadUri = dojo.hostenv.oldLoadUri;}} Since this file comes from the official Tapestry 4.1.1 release, I'd assume that others have experienced the same problem, but I don't see any mention of it in these forums. Jeremy F. Kassis wrote: > > Hi again, > > Still working out some issues migrating from Tap 4.0.2 to Tap 4.1.1. > > One of my XHR Ajax requests is returning an exception. Here is the XHR > 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 id="bumpq:PageErrorPage" type="exception"> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > > <!-- Application: bumpq --> > <!-- Page: bumpq:PageErrorPage --> > <!-- Generated: Thu Jan 11 00:42:47 PST 2007 --> > <html> > <head> > <meta name="generator" content="Tapestry Application Framework, version > 4.1.1" /> > <meta http-equiv="Content-Type" content="text/xml;charset=UTF-8" /> > etc... > > Problem is that this isn't popping up in Firefox. I'm actually getting a > Dojo Warning as follows: > > WARNING: 12:42:47 AM: No ajax-response elements recieved. > > Is there anything I've got to do to get XHR exceptions to popup like they > did in Tap 4.0.2? > > Many thanks, > Jeremy > -- View this message in context: http://www.nabble.com/XHR-Exception-Not-Rendering-to-Browser-tf2957595.html#a8273906 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]