I want to know how to set a default value to a date input in CAF screen. It has to take current date as default value.
I added the Control Accessor. It created the below code: public com.webmethods.caf.faces.component.input.DateInput getHtmlInputText() {
return (com.webmethods.caf.faces.component.input.DateInput)findComponentInRoot("defaultForm1:htmlInputText");
}
but how to in Initialize method set the current date time using the control accessor..? plz help ?
Neelima
I want to know how to set a default value to a date input in CAF screen. It has to take current date as default value.
I added the Control Accessor. It created the below code: public com.webmethods.caf.faces.component.input.DateInput getHtmlInputText() {
return (com.webmethods.caf.faces.component.input.DateInput)findComponentInRoot("defaultForm1:htmlInputText");
}
but how to in Initialize method set the current date time using the control accessor..? plz help ?
Tomas
get the current date in required format... and then use getHtmlInputText.setValue(currentDate); this should work.