-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: liferay-faces-3.1.3-ga4
-
Component/s: Liferay Faces Bridge Impl / Demos / Tests
-
Labels:None
-
Environment:Liferay Faces Bridge + PrimeFaces + Clustered App Server (like JBoss AS)
The com.liferay.faces.bridge.renderkit.primefaces.FileUploadRendererPrimeFacesImpl class has an inner-class named PrimeFacesFileItem that implements java.io.Serializable. However, the parent FileUploadRendererPrimeFacesImpl class does not implement java.io.Serializable which causes a problem in a clustered environment. Specifically, the instance of PrimeFacesFileItem is set as the "submitted" value on the PrimeFaces p:fileUpload component, and needs to be serialized as part of the javax.faces.ViewState.
The fix for this bug would be to refactor things so that PrimeFacesFileItem is no longer an inner-class.