[ 
https://issues.apache.org/struts/browse/WW-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40243
 ] 

Musachy Barroso commented on WW-1755:
-------------------------------------

You are right, my bad, I was confused with "afterLoading" which is used to 
notify after an ajax request, that's the one that will be dropped.

> dojo binddiv fails to load onLoad functions on refresh.
> -------------------------------------------------------
>
>                 Key: WW-1755
>                 URL: https://issues.apache.org/struts/browse/WW-1755
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Misc
>    Affects Versions: 2.0.5
>         Environment: N/A
>            Reporter: Thaddeus Foudray
>         Assigned To: Musachy Barroso
>
> The binddiv (extending the dojo ContentPane widget) has a method called 
> "onLoad" that triggers events after the entire div has been loaded 
> completely. This allows functions to be added that do things to the loaded 
> content. (added via "addOnLoad", also in ContentPane). 
> In the BindDiv implementation, the first load of the page properly runs the 
> onLoad function, and correctly triggers any functions there. However, the 
> refresh function ( reloadContents) does not call onLoad.  The superclass 
> (ContentPane) does call onLoad in _downloadExternalContent(), which is called 
> by the contentPane's refresh function, so it seems like that behavior should 
> be duplicated in the binddiv widget.
> After a quick look, the reloadContents exists in bind.js, and the handler 
> (Line ~225) is what should be calling the inLoad (to mirror what the 
> ContentPane does), although I haven't tested this theory at all.

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

Reply via email to