* {@inheritDoc}
*/
protected void renderFormWidget(IMarkupWriter writer, IRequestCycle cycle)
{
// dojo dates are in POSIX style formats so we format the value manually
DateTranslator translator = (DateTranslator) getTranslator();
renderDelegatePrefix(writer, cycle);
// the html output doesn't matter very much as dojo
// will create an inline input field for us anyways, but we do need
// a node to reference
writer.begin("div");
renderIdAttribute(writer, cycle);
renderDelegateAttributes(writer, cycle);
getValidatableFieldSupport().renderContributions(this, writer, cycle);
renderInformalParameters(writer, cycle);
writer.print(" ");
writer.end();
renderDelegateSuffix(writer, cycle);
// now create widget parms
JSONObject json = new JSONObject();
json.put("inputId", getClientId());
json.put("inputName", getName());
json.put("iconAlt", getIconAlt());
json.put("displayFormat", translator.getPattern(getPage().getLocale()));
json.put("saveFormat", translator.getPattern(getPage().getLocale()));
if (getValue() != null) {
json.put("value", translator.formatRfc3339(getValue()));
}
json.put("disabled", isDisabled());
Map parms = new HashMap();