liferay/liferay-faces — pull request #59 by schoes (2013-06-14 05:11:22+00:00)
Title: Fix for isolated JSF deployment inside JBoss EAP 6.0.0

Hello Neil
we're using a JBoss EAP 6.0.0 and want to deploy the jsf libs(api,impl) within the portlet itself. but now if we use the LiferayLocalePhaseListener there is always a nullpointer exception.
and the following log entry can be seen every time:

07:05:18,660 INFO [stdout] (http-localhost/127.0.0.1:9443-2) 07:05:18,659 ERROR LiferayFacesContext:41 - Instance not initialized -- caller might be static

So I made a little quickfix in the LiferayLocalePhaseListener Class to check if the LiferayFacesContext is null. If so I will initialize a new one. and from now on it works fine for me.
So here is my pull request. if you got a better idea how to fix this issue i would appreciate your feedback.

Thanks a lot
Regards
Sven