It looks right.
Turn on debugging with s:head
<s:head theme="ajax" debug="true"/>
and use the FireFox FireBug plugin to determine if it failed to find any
resources.
The template for the calendar is loaded via an ajax request. If that
request fails you see nothing.
tristan_colson wrote:
I am trying to use s:datetimepicker.
I have the <s:head theme="ajax" /> in my <head> section.
I have <s:datetimepicker> like this:
<s:datetimepicker name="campaign.startDate" /> to <s:datetimepicker
name="campaign.endDate" />
The html renders like this:
<link rel="stylesheet" href="/struts/xhtml/styles.css" type="text/css"/>
<script type="text/javascript">
// Dojo configuration
djConfig = {
baseRelativePath: "/struts/dojo",
isDebug: false,
bindEncoding: "UTF-8",
debugAtAllCosts: true // not needed, but allows the Venkman debugger
to work with the includes
};
</script>
<script type="text/javascript"
src="/struts/dojo/dojo.js"></script>
<script type="text/javascript"
src="/struts/simple/dojoRequire.js"></script>
<script type="text/javascript"
src="/struts/ajax/dojoRequire.js"></script>
<script type="text/javascript"
src="/struts/CommonFunctions.js"></script>
.....
script type="text/javascript">
dojo.require("dojo.widget.DatePicker");
</script>
<div
dojoType="dropdowndatepicker"
id="saveCampaign_campaign_startDate" name="dojo.campaign.startDate"
inputName="campaign.startDate" saveFormat="rfc"></div>
Note that the above div tag is empty. Seems like there should be something
in it.
The datetimepicker doesn't show up on the page.
Am I using the tag wrong? Or might my environment be missing something?
Many thanks for any help!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]