add add another jsp on click of button in dojo -


i developing web application using dojo, able add 1 jsp within jsp on click of button problem dojo component not display gives error "error undefined running custom onload code: deferred has been resolved contentpane.js:443 declare._onloadhandler contentpane.js:443" adding jsp onclick of button using following code

      var div = dijit.byid("centerdiv");       div.href = "../admincontroller/document";       div.refresh(); 

and jsp page contain simple content pan

    <div data-dojo-type="dijit.layout.contentpane"         data-dojo-props="region:'top'"></div>     <div data-dojo-type="dijit.layout.contentpane"         data-dojo-props="region:'center'"></div> 

the message "this deferred has been resolved" key here. looks either code trying resolve same deferred more once, isn't allowed, or way you've written code, it's causing dojo try resolve deferred more once. have tried stepping through using browser's development tool (e.g., firebug)?


Comments