You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org> on 2007/03/23 10:22:32 UTC

[jira] Commented: (TAPESTRY-1379) Exception when creating widgets on AJAX requests

    [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483479 ] 

Andreas Andreou commented on TAPESTRY-1379:
-------------------------------------------

As mentioned in one of your emails "it's sufficient to append to the bottom of core.js the line
dojo.require("tapestry.widget.Widget"); and it magically works"

So, this is probable a duplicate of https://issues.apache.org/jira/browse/TAPESTRY-1219

My workaround was the same as yours, i.e. add dojo.require as the page initially loads

Anyway, adding dojo.require("tapestry.widget.Widget") in core.js may solve this particular case (TAPESTRY-1379),
but it won't really help if an ajax response requires a custom 'class' and the framework  uses it before it gets 
fully loaded (TAPESTRY-1219)







> Exception when creating widgets on AJAX requests
> ------------------------------------------------
>
>                 Key: TAPESTRY-1379
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1379
>             Project: Tapestry
>          Issue Type: Bug
>          Components: JavaScript
>    Affects Versions: 4.1.1, 4.1.2
>         Environment: any
>            Reporter: Andrea Chiumenti
>         Attachments: WidgetDemo-1.0.0-SNAPSHOT-src.zip
>
>
> Teh problem is this:
> when you have a page with a form that initially doesn't display any widget and, on form ajax submission you want to display a widget, if you use client side validation you'll get this exception on next submit if a client validation exception is fired:
> ERROR: 14:35:46: Error validating Error : Could not locate widget implementation for "alertdialog" in "tapestry.widget" registered to namespace "tapestry" : http://localhost:8080/app?service=asset&path=%2Fdojo%2Fdojo.js : line 756

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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