Annotation Interface AfterViewChange


@Qualifier @Retention(RUNTIME) @Target({TYPE,METHOD,PARAMETER,FIELD}) public @interface AfterViewChange
ViewChangeEvent can be observed with this qualifier.

Observers are called after all non-cdi ViewChangeListener.afterViewChange(ViewChangeListener.ViewChangeEvent) listeners.

Keep in mind, context of new view is activated before event is fired. Accessing any NormalViewScoped bean through ViewChangeListener.ViewChangeEvent.getOldView() might lead to unexpected result, because it is looked up in the new context.

Though, context of new view, and context of old view can be the same according to selected ViewContextStrategy.