public class FacesViewsViewHandlerInstaller extends Object implements SystemEventListener
FacesViewsViewHandler
.
Implementation note: this needs to be done during the PostConstructApplicationEvent
, in
which it's guaranteed that Faces initialization (typically done via a ServletContextListener
) has
been done. Setting a view handler programmatically requires the Faces Application
to be present
which isn't the case before Faces initialization has been done.
Additionally, the view handler needs to be set BEFORE the first faces request is processed. Putting
the view handler setting code in a Filter.init(javax.servlet.FilterConfig)
method only works
when all init methods are called during startup, OR when the filter filters every request.
Constructor and Description |
---|
FacesViewsViewHandlerInstaller() |
Modifier and Type | Method and Description |
---|---|
boolean |
isListenerForSource(Object source) |
void |
processEvent(SystemEvent event) |
public boolean isListenerForSource(Object source)
isListenerForSource
in interface SystemEventListener
public void processEvent(SystemEvent event) throws AbortProcessingException
processEvent
in interface SystemEventListener
AbortProcessingException
Copyright © 2012–2016 OmniFaces. All rights reserved.