Use UIViewRoot#subscribeToViewEvent()
.
context.getViewRoot().subscribeToViewEvent(PreRenderViewEvent.class, new MySystemEventListener);
Note that this would be too late if the bean is constructed during render response phase as would happen during GET requests. You'd better just do the very job inside the constructor of the request scoped bean itself (or, cleaner, in a @PostConstruct
).