Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7EC4790BD for ; Mon, 16 Jul 2012 15:26:44 +0000 (UTC) Received: (qmail 27954 invoked by uid 500); 16 Jul 2012 15:26:44 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 27764 invoked by uid 500); 16 Jul 2012 15:26:43 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 27729 invoked by uid 99); 16 Jul 2012 15:26:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2012 15:26:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sandro.martini@gmail.com designates 74.125.82.50 as permitted sender) Received: from [74.125.82.50] (HELO mail-wg0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jul 2012 15:26:36 +0000 Received: by wgbds11 with SMTP id ds11so2339790wgb.7 for ; Mon, 16 Jul 2012 08:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Y7kmq2KPi+p+iKYywhQHJBcQFtbMuQ043wMtREzTDys=; b=dCZkmIjaE9V6Tb1OEf3ltVqgHAWbOfhF6n3Fcs1ojgc7QRKaK1apJVFpQy4B2C8Vy2 6t85loKkierN7w1/cE3UMoq3FJ3sQviO2vEgKnEiRQaNLo5VCJ1DDfW4NAtBc7ukcWNL ou2alq83O6f27h+HlE+UgnH+IidtBdfIQCZh/RGCAln6euPCvDrORcXLzn7ODx07o7YH nbQrShl61XFHdaikXGaV86UMEItEgjof3666biWMhA2pRrxfm8NyTPYYJFZ2M2X/Pwxs yoOUz8zs8bWJ4VcOd89io5icfwwT7S5qI+L5XNuMcqi6qW/PGwylykBYncUEvFKtn5JU M8mg== MIME-Version: 1.0 Received: by 10.180.100.37 with SMTP id ev5mr19080110wib.5.1342452375075; Mon, 16 Jul 2012 08:26:15 -0700 (PDT) Received: by 10.216.187.13 with HTTP; Mon, 16 Jul 2012 08:26:14 -0700 (PDT) In-Reply-To: References: <4FFE61DD.5090107@telia.com> Date: Mon, 16 Jul 2012 17:26:14 +0200 Message-ID: Subject: Re: TableViewRowEditor or actually ListAdapter throws InstantiationException From: Sandro Martini To: user@pivot.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Tomas, I hope to understand in the right way your problem ... Did you tried to make a custom version od ListAdapter, like: public class ListAdapterWithDefaultList extends ListAdapter implements List, Serializable { private static final long serialVersionUID = -7329284780271109312L; public ListAdapterWithDefaultList() { super(new java.util.ArrayList()); } // TODO: here ... } and in the TODO maybe override the methods that gives to you problems, like remove (just a a idea to start, if appliable to your case) ? Pivot collections were made to be used extensively inside Pivot, but of course the counterpart is that conversions are needed between Java standard collections and Pivot version, I know ... so think of them as a "Pivot model" near to Components. Many frameworks need conversions between "models" so this shouldn't be a great problem (generally speaking). With Scala I made some prototypes (using Scala implicits) for transparent conversions between Scala and Pivot Collections, just as idea. I hope to give you some useful info, but if you have some minimal code to post we can try to see if/what to improve in Pivot to simplify it (maybe even with some API change, but for 2.1.x). Tell me. Bye, Sandro