You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by LLTYK <LL...@mailinator.com> on 2010/09/23 15:55:33 UTC

Silent js error (doesn't show up in browser error console or tapestry error console)

 I am using the onblur validation disable script that's unsurprisingly broken
since it's from 2009 (see mailing list post below). However, I'm worried
about how the error appears to be thrown off into oblivion.

The script breaks in a very subtle fashion. No indication of any javascript
failure is given in any js debugger, nor in the tapestry popup error
console. Only sign is that the ajax form submit fails (and it proceeds to do
a normal form submit).

This is in Tapestry 5.1.0.5. The error occurs at tapestry.js:1295, where the
broken script doesn't set this.translator. This error seems to bubble up the
stack, but disappears at some point, apparently uncaught.

I'm wondering if this is some kind of bug and that it should be caught (the
tapestry error console has caught and displayed js errors before).


Here's the post with the script:
http://tapestry.1045711.n5.nabble.com/Disabling-onBlur-field-validation-td2416314.html#a2416314
Here's a demo, with the script pasted into disable-onblur-validation.js
<html t:type="layout" title="About"
      xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
      xmlns:p="tapestry:parameter">

    <p>About application ...</p>
    <t:zone t:id="hi" id="hi">
    <t:beaneditform object="this" include="foo" zone="hi" />
    </t:zone>
</html>
@IncludeJavaScriptLibrary("context:/js/disable-onblur-validation.js")
public class Test
{
  @Property
  @Validate("required")
  private String foo;
  
  @Component
  private Zone hi;
  Object onSuccess()
  {
    return hi.getBody();
  }
}
-- 
View this message in context: http://tapestry-users.832.n2.nabble.com/Silent-js-error-doesn-t-show-up-in-browser-error-console-or-tapestry-error-console-tp5563130p5563130.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org