Thanks very much!

As pointed out, I was incorrectly using the keyword volatile instead
of transient. All is well now with IDataProvider and
SerializableChecker.

SerializableChecker is great!

Bernard

On Thu, 5 Nov 2009 22:30:59 -0800, you wrote:

>class mydataprovider implements idataprovider {
>   private transient list cache;
>   private list getresult() {
>       if (cache==null) {
>            // load the list from db;
>            cache=list;
>        } return cache;
>     }
>
>     public iterator iterator() { return getresult().iterator(); }
>     public int size() { return getresult().size(); }
>     public void detach() { cache=null; }
>}
>
>-igor


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to