We are using JSF 2.0.3 version with WebSpehere 8.5 as the application Server. We have a requirement to have two selectmanylistboxes with ability to move data between two boxes.Please note due to restrictions in our company I cannot use Rich faces,Ice faces etc. Hence I tried using Ajax calls and listener like below code to move data
<h:commandButton id="lefttoright" value="Left to Right" >
<f:ajax execute="listbox" render="sellistbox listbox" onevent="checkData" listener="#{bean.leftToRight}" />
</h:commandButton>
Please note I am using Viewscoped bean . Now the funtionality i.e. moving data around boxes works perfectly fine on my Local RAD set up with single node single server WebSphere.
When I deploy the same code on our WeSphere server which has 1 cell , 2 nodes with 2 servers each which are in cluster , the "left to Right" button only invokes the constructor but does not invoke the method i.e. "leftToRight" . There are no errors/exceptions reported in the logs directly on invoking "lefttoright" button. But there is a continuous exception being thrown regarding serialization. Not sure if this has any direct impact on Ajax calls.
E SessionContextMBeanAdapter findAttCausingNotSerializableException Miscellaneous data: Attribute "com.sun.faces.renderkit.ServerSideStateHelper.LogicalViewMap" is declared to be serializable but is found to generate exception "java.io.NotSerializableException" with message "com.sun.faces.context.FacesContextImpl". Fix the application so that the attribute "com.sun.faces.renderkit.ServerSideStateHelper.LogicalViewMap" is correctly serializable at runtime.
Any feedback is much appreciated. Please let me know if I need to provide additional information.