Created
December 12, 2011 18:45
-
-
Save lfryc/1468531 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void processEvent(SystemEvent event) throws AbortProcessingException { | |
if (event instanceof PostRestoreStateEvent) { | |
FacesContext.getCurrentInstance().getApplication().subscribeToEvent(PreRenderViewEvent.class, this); | |
preDecode(getFacesContext()); | |
} | |
if (event instanceof PreRenderViewEvent) { | |
FacesContext.getCurrentInstance().getApplication().unsubscribeFromEvent(PreRenderViewEvent.class, this); | |
preEncodeBegin(getFacesContext()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment