This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I just created a new JSF component, which consists of two input fields. One for the date input and one for the time.
The Renerer-Class is quite nice:
Everything works fine so far and I can use the component in my xhtml-file:
When I send the form, the converters convert the input and the backing bean is updated. It works like expected.
But now, I want to add support for a4j to enable something like this:
When the user changes the input of one of the input fields, the backing-bean has to be updated and the calendarDisplay, displaying the selected date, should be updated as well.
But how can I do that? First of all: how can I fire an event like "onchange", so that the a4j-Tag is working and the reRender is done? Do I have to do something else to update the backing bean (before), when the input changes?