I need to create the custom component consisting of 3 input fields and provide the ability to create a binding the component to a backing bean. I inherited my component clas from the UIInput
. The issue that I need to convert all three inputs into the Date
format as follows:
Calendar c = Calendar.getInstance();
c.add(Calendar.DATE, 1);
c.add(Calendar.HOUR, 2);
c.add(Calendar.MINUTE, 3);
Date d = c.getTime();
and set it to the backing bean's property specified with the expression like
value = #{beanName.beanProperty}
.
What method should I override to do that?
BTW, this article says that we could provide a similar facility in the Tag
class ever. But there described a value-binding (to a bundle, for instance) which is not exactly what I want.