Thanks Wash@idn.. 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");
cabj4klt
Guys pls help.. 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..
George
Create a control accessor for it. in Initialize method set the current date time using the control accessor.
cabj4klt
Thanks Wash@idn.. 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");
cabj4klt
but how to in Initialize method set the current date time using the control accessor..? pls help..
George
get the current date in required format... and then use getHtmlInputText.setValue(currentDate); this should work..