What's the component's lifetime? Traversing the UIInput
sources I've noticed that there's local field called value
which is essentailly the value of the component. I've also noticed that after processing all convertion and validation we compare a new value with an old value of the component and if they're different fire valueChange event. Actually, here's the piece of code taking over the quing events:
if (isValid()) {
Object previous = getValue();
setValue(newValue);
setSubmittedValue(null);
if (compareValues(previous, newValue)) {
queueEvent(new ValueChangeEvent(this, previous, newValue)); // <-----
}
}
But if the component were killed after any request, we would simply get ValueChangeEvent
eny time we send a request. So, I presume the component's lifetime is the same as the bean's lifetime which the component bound to the property to. But I couldn't find any documental assurance...