Hello,
I'm currently trying to create a widget for date range. Instead of needing two separate instances of DateTextBox we would like to have one widget that displays both the from and to so the values may be referenced as myWidget.fromDate and myWidget.toDate as well as the validation would be embedded so that "To" could not be earlier than "From".
The problem I'm running into, is when I require the DateTextBox into my widget and then attempt to display both text boxes in the template, only the first is shown. Is there a way to display two of the same input type embedded within a wrapper widget?
I'm thinking I'll just make a copy of the DateTextBox in order to work around it, but that's obviously not an elegant solution.
Thank you

[code]dojo.provide(
dojo.provide("dojoc.sandbox.dateRangePicker.DateRangePicker");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit.form.DateTextBox");
dojo.declare("dojoc.sandbox.dateRangePicker.DateRangePicker",
[dijit._Widget, dijit._Templated, dijit.form.DateTextBox],
{
templatePath: dojo.moduleUrl("dojoc.sandbox.dateRangePicker","templates/DateRangePicker.html")
});
Using this I get 1 text box and it ignores the rest of the template. If I remove the dijit.form.DateTextBox from the list of functions, then the template displays properly, but obviously it doesn't do what I want at that point.
Got it
Ok, I was missing a couple bits from the definition.
templateString: "",
src: "",
widgetsInTemplate: true