org.portletfaces.liferay.faces.lifecycle
Class LiferayLocalePhaseListener

java.lang.Object
  extended by org.portletfaces.liferay.faces.lifecycle.LiferayLocalePhaseListener
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.faces.event.PhaseListener

public class LiferayLocalePhaseListener
extends java.lang.Object
implements javax.faces.event.PhaseListener

This class is a JSF PhaseListener that applies the current Liferay Portal theme display's locale to the UIViewRoot. This is done after the restore view phase (to have the correct locale during the following phases) and before the render response phase (in case the view root has changed in the invoke application phase).

Author:
Neil Griffin
See Also:
Serialized Form

Constructor Summary
LiferayLocalePhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
           
 void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
           
 javax.faces.event.PhaseId getPhaseId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiferayLocalePhaseListener

public LiferayLocalePhaseListener()
Method Detail

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
Specified by:
afterPhase in interface javax.faces.event.PhaseListener

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
Specified by:
beforePhase in interface javax.faces.event.PhaseListener

getPhaseId

public javax.faces.event.PhaseId getPhaseId()
Specified by:
getPhaseId in interface javax.faces.event.PhaseListener


Copyright © 2011 portletfaces.org. All Rights Reserved.