-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: liferay-faces-3.0.2-legacy-ga3, liferay-faces-3.0.2-ga3, liferay-faces-3.1.2-ga3
-
Component/s: Liferay Faces Bridge Impl / Demos / Tests
-
Labels:None
Several of the Liferay Faces demo portlets have a pattern at the top of classes that looks like this:
// Self-Injections private LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
This will work OK except for classes that implement java.io.Serializable (i.e. @ViewScoped managed-beans) because the value of liferayFacesContext might not be restored properly after deserialization.
So the purpose of this task is to move this code down into the methods so that it is evaluated at runtime when methods are called.