[ https://issues.apache.org/struts/browse/WW-1784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40675 ] Musachy Barroso commented on WW-1784: ------------------------------------- Then you would be right, dojo.require("dojo.widget.DatePicker") is missing. The problem is that dojo widgets are loaded from returned html (even if XHR is used), but the dojo.rquire() calls are stripped from the html, I don't know what is the reason, but look at Dojo comments on their code(the one that loads the widgets): // strip out all djConfig variables from script tags nodeValue // this is ABSOLUTLY needed as reinitialize djConfig after dojo is initialised // makes a dissaster greater than Titanic, update remove writeIncludes() to var sc = match[2].replace(/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g, ""); if(!sc){ continue; } // cut out all dojo.require (...) calls, if we have execute // scripts false widgets dont get there require calls // does suck out possible widgetpackage registration as well There isn't much we can do about it, as a workaround, you can use the head tag on the container page, so the dojo.require calls are in place. > DateTimePicker does not work from JSP action result > --------------------------------------------------- > > Key: WW-1784 > URL: https://issues.apache.org/struts/browse/WW-1784 > Project: Struts 2 > Issue Type: Bug > Components: Component Management > Affects Versions: 2.0.6 > Environment: Java 1.5 Apache Tomcat 5.5 Struts 2 2.0.6 > Reporter: Chris Kulseth > Assigned To: Musachy Barroso > Fix For: 2.1.0 > > > DateTimePicker works in main.jsp page with a HEAD tag but will not show in a DIV created from a JSP action result. > ****** this tag called test works and is part of the original html page with a HEAD section > > > > Select a date