Hi,
What the best way to get custom post-processing after binding to a backing bean, similar to onBind event when using a Spring MVC controller ?
I suppose i need a PhaseListener (after phase Update Model Values) as follows
new PhaseListener() {
public void beforePhase(PhaseEvent event) {}
public void afterPhase(PhaseEvent event) {
// custom post-processing
}
public PhaseId getPhaseId() {
return PhaseId.UPDATE_MODEL_VALUES;
}
}
Is it a best practice or not ? If not, what should i use ?