title: Wicket: how to get rid of WicketNotSerializableException?
body: <p>Ok, so here is the code for the page</p>
  
  <pre><code>public class ViewDocument extends BasePage{
  
      private List&lt;WeinSyncFileContent&gt; transactions;
      ....
  
      public ViewDocument(){
          transactions = ....;
          ....
          listContainer.add(listView = new ListView&lt;WeinSyncFileContent&gt;("transactions", transactions){
             @Override
             public void populateItem(final ListItem&lt;WeinSyncFileContent&gt; item)
             {
                ....
             }
          });
      }
  }
  </code></pre>
  
  <p>The page does get displayed but I get errors:
      Error serializing object class kz.wein.wicket.pages.documents.ViewDocument</p>
  
  <p>and it's complaining about the transactions field: 
      transactions [class=java.util.ArrayList$SubList] &lt;----- field that is not serializable</p>
  
  <p>Also I want to note that objects I am displaying in the list are initially taken from library and are not serializable. Wicket wants serializable objects inside lists so to deal with it I take each object and make it serializable with class like this</p>
  
  <pre><code>public class WeinSyncFileContent extends SyncFileContent implements Serializable{
  
  public WeinSyncFileContent(SyncFileContent obj){
      ... setting fields ...
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>so initially I get SyncFileContent objects (that are not serializable) 
  What can I do about the errors? </p>