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

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

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


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


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

Posted by Andrea Chiumenti <ki...@gmail.com>.
+1,
tomorrow I'll make some test for adding it when clientValidation on form is
set to true.
kiuma

On 4/2/07, Jesse Kuhnert (JIRA) <de...@tapestry.apache.org> wrote:
>
>
>     [
> https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485935]
>
> Jesse Kuhnert commented on TAPESTRY-1379:
> -----------------------------------------
>
> No ....no and no. ;)
>
> I don't want core.js including anything but the most minimal necessary.
>
> I'm more ok with having tapestry.widget.Widget being require'd
> automatically somehow....but I don't have a clear picture of things right
> now so can't say for sure, just please don't put it in core.js.
>
> > 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
> >         Assigned To: Jesse Kuhnert
> >             Fix For: 4.1.2
> >
> >         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
>
>

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

Posted by "Andrea Chiumenti (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483487 ] 

Andrea Chiumenti commented on TAPESTRY-1379:
--------------------------------------------

Hi Andreas,

"but it won't really help if an ajax response requires a custom 'class' and the framework uses it before it gets
fully loaded"

do you have any not working example about this, so that I can help you to find a solution ?

kiuma

> 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


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

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-1379:
------------------------------------

    Fix Version/s:     (was: 4.1.2)
                   4.1.3

> 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
>            Assignee: Jesse Kuhnert
>             Fix For: 4.1.3
>
>         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


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

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485739 ] 

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

To reiterate, I think i'm in favor of adding that dojo.require("tapestry.widget.Widget"); inside core.js
even though it doesn't look like a good design (core file depending on non-core file)

Anyway, i'll have to leave the final word on this on Jesse's shoulders (or brain)!

> 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
>             Fix For: 4.1.2
>
>         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


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

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485978 ] 

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

Well, I did mention this for only one reason...
core.js already includes lots of stuff - esp. dojo.widget.* which is the only requirement of widget.js

> 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
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.2
>
>         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


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

Posted by "Marcus Schulte (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcus Schulte updated TAPESTRY-1379:
-------------------------------------

    Fix Version/s:     (was: 4.1.6)
                   4.1.7

> 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
>            Assignee: Jesse Kuhnert
>             Fix For: 4.1.7
>
>         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


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

Posted by "Andrea Chiumenti (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Chiumenti updated TAPESTRY-1379:
---------------------------------------


Hello,
Happy Easter!

I've found a cleaner solution to this problem.

A change to:
org.apache.tapestry.form. FormSupportImpl#render(String, IRender, ILink, String, Integer) should be done:
on the last instruction:

if (_form.isClientValidationEnabled()) {
            _pageRenderSupport.addDojoIncludes("tapestry.widget.Widget");
            _pageRenderSupport.addDojoIncludes("tapestry.form");
            _pageRenderSupport.addInitializationScript(_form, "dojo.require('tapestry.widget.Widget');dojo.require('tapestry.form');tapestry.form.clearProfiles('"
                    + formId + "'); tapestry.form.registerProfile('" + formId + "'," 
                    + _profile.toString() + ");");
        }

This solves the problem above and appears to be a cleaner solution to it.

A remark I'd like to do is the following:

When we render a page in the last script all the code is made into dojo.addOnLoad into this function whe have the dojo.require calls too.

Wouldn't be better to have calls to dojo.require outside the addOnLoad function, this shoul be a cleaner approach.

If yes, would you like me to refactor the code ?

kiuma


> 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
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.2
>
>         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


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

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou reassigned TAPESTRY-1379:
-----------------------------------------

    Assignee: Jesse Kuhnert

> 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
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.2
>
>         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


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

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-1379:
------------------------------------

    Fix Version/s:     (was: 4.1.3)
                   4.1.4

> 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
>            Assignee: Jesse Kuhnert
>             Fix For: 4.1.4
>
>         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


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

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485935 ] 

Jesse Kuhnert commented on TAPESTRY-1379:
-----------------------------------------

No ....no and no. ;) 

I don't want core.js including anything but the most minimal necessary. 

I'm more ok with having tapestry.widget.Widget being require'd automatically somehow....but I don't have a clear picture of things right now so can't say for sure, just please don't put it in core.js.

> 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
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.2
>
>         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


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

Posted by "Andrea Chiumenti (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Chiumenti updated TAPESTRY-1379:
---------------------------------------

    Attachment: WidgetDemo-1.0.0-SNAPSHOT-src.zip

This example has two pages one that work and one that doesn't.

Select the broken widget link:
when the page is displayed click on 'click me' link, but do not fill the textbox (needed to test required client validation) click then on save changes. The described exception will be thrown.

Do the same with the Working widget page. It will work because the page has already rendered a widget.

> 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


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

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
    [ 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


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

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-1379:
------------------------------------

    Fix Version/s:     (was: 4.1.5)
                   4.1.6

> 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
>            Assignee: Jesse Kuhnert
>             Fix For: 4.1.6
>
>         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


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

Posted by "Andrea Chiumenti (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485755 ] 

Andrea Chiumenti commented on TAPESTRY-1379:
--------------------------------------------

I didn't already have the time to test what I'm saying, but I think that tapestry.widget.Widget could be added  by the Form .script file when clientValidation is enabled in unique way (I think that it's cleaner).

Another thing that I haven't already tested: do we really need to load core.js in the standard way ? Isn't it better to call it via dojo.require ?

> 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
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.2
>
>         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


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

Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-1379:
------------------------------------

    Fix Version/s: 4.1.2

> 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
>             Fix For: 4.1.2
>
>         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