Topic:   Default value for date input in CAF screen
Jan 10, 2014 03:31 2 Replies 799 Views Neelima
Prev Next
Topic Replies (2)
  1. 1
    idnkx user


    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 ?

    idnkx user


    get the current date in required format... and then use getHtmlInputText.setValue(currentDate); this should work.

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.

Let`s Connect