[
https://issues.apache.org/struts/browse/WW-1784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40679
]
Musachy Barroso commented on WW-1784:
-------------------------------------
The head tag will take care of adding that to the page. If you have the head
tag on the page then it "should" work, I will see what I can find, thanks for
your help.
> 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
>
> <td class="tdLabel"><label for="test" class="label">Date:</label></td>
> <td><script type="text/javascript">
> dojo.require("dojo.widget.DatePicker");
> </script>
> <span id="test" style="white-space: nowrap;"><input name="dojo.test"
> value="2007-03-01" dojoattachpoint="valueNode" type="hidden"><input
> name="test" value="" style="vertical-align: middle; width: 7em;"
> dojoattachpoint="inputNode" autocomplete="off" type="text"> <img
> src="/rcm/struts/dojo/src/widget/templates/images/dateIcon.gif" alt="Select a
> date" dojoattachevent="onclick: onIconClick" dojoattachpoint="buttonNode"
> style="vertical-align: middle; cursor: pointer;"><div
> dojoattachpoint="containerNode" style="display: none; position: absolute;
> z-index: 10;" class="dojoPopupContainer"><div style=""
> class="datePickerContainer" dojoattachpoint="datePickerContainerNode">
> <table class="calendarContainer" cellpadding="0" cellspacing="0">
> <thead>
> **** this was generated from the jsp result action and does not show up
> <div class="cssScrollContent">
> <form id="logCreateShow" name="logCreateShow" onsubmit="return false; return
> true;" action="/rcm/logCreateShow.action" method="post" class="cssMain">
> <table class="cssMain">
> <input name="logname" value="System Log" id="logCreateShow_logname"
> type="hidden">
> <tbody><tr>
> <td class="tdLabel"><label for="createdDT" class="label">Date<span
> class="required">*</span>:</label></td>
> <td>
> <div dojotype="dropdowndatepicker" id="createdDT" value="2007-03-01T18:37:12"
> name="dojo.createdDT" inputname="createdDT" saveformat="rfc"
> onfocus="this.className='cssInput1';"
> onblur="this.className='cssInput0';"></div>
> </td>
> </tr>
> <tr>
> <td class="tdLabel"><label for="logCreateShow_entityName"
> class="label">ID<span class="required">*</span>:</label></td>
> <td><input name="entityName" size="26" maxlength="25" value=""
> id="logCreateShow_entityName" class="cssInput0"
> onfocus="this.className='cssInput1';" onblur="this.className='cssInput0';"
> type="text">
> </td>
> </tr>
> </div></td>
> </tr>
> </tbody></table></form>
> </div>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.