inputCalendar.getPopupDateFormat());
}
Application application = facesContext.getApplication();
HtmlInputTextHelp inputText = getOrCreateInputTextChild(inputCalendar, application);
RendererUtils.copyHtmlInputTextAttributes(inputCalendar, inputText);
inputText.setId(inputCalendar.getId()+"_input");
boolean forceId = RendererUtils.getBooleanValue(
JSFAttr.FORCE_ID_ATTR,
inputCalendar.getAttributes().get(JSFAttr.FORCE_ID_ATTR),
false);
if (forceId) {
inputText.getAttributes().put(JSFAttr.FORCE_ID_ATTR, Boolean.TRUE);
}
inputText.setConverter(null); // value for this transient component will already be converted
inputText.setTransient(true);
inputText.setHelpText(inputCalendar.getHelpText());
inputText.setSelectText(true);
inputText.setValue(value);
/*
if (value == null && inputCalendar.getSubmittedValue() != null)
{
inputText.setValue(inputCalendar.getSubmittedValue());
}
else
{
inputText.setValue(getConverter(inputCalendar).getAsString(
facesContext,inputCalendar,value));
}*/
inputText.setDisabled(inputCalendar.isDisabled());
inputText.setReadonly(inputCalendar.isReadonly());
inputText.setEnabledOnUserRole(inputCalendar.getEnabledOnUserRole());
inputText.setVisibleOnUserRole(inputCalendar.getVisibleOnUserRole());
//This is where two components with the same id are in the tree,
//so make sure that during the rendering the id is unique.
//inputCalendar.setId(inputCalendar.getId()+"tempId");
inputCalendar.getChildren().add(inputText);
//Reset client id to ensure proper operation
inputText.setId(inputText.getId());
inputText.setName(inputCalendar.getClientId(facesContext));
inputText.setTargetClientId(inputCalendar.getClientId(facesContext));
ResponseWriter writer = facesContext.getResponseWriter();
writer.startElement(HTML.SPAN_ELEM, inputCalendar);