2 Replies Latest reply on Dec 2, 2008 9:21 AM by Thomas Kessler

    java.io.NotSerializableException: org.richfaces.component.ht

    Thomas Kessler Newbie

      I am running JBoss 4.2.2, RichFaces 3.2.2, and Java 1.5.0_15. I have a rich:dataTable I would like bind to a UIData object in my backing bean. I am also using a4j:keepAlive for the backing bean. When the page loads I get java.io.NotSerializableException: org.richfaces.component.html.HtmlDataTable. I understand that the HtmlDataTable is not serializable and by marking UIData as transient the exception no longer occurs, but then the UIData is not saved between requests. I can solve this by marking my backing bean as session scope and removing the a4j:keepAlive or by stuffing the UIData in the SessionMap with request scope. I was wondering if there is a more elegant way to solve this and still keep the request scope on my backing bean?

      Thanks,

      TK