Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 24635 invoked from network); 4 Apr 2008 13:51:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2008 13:51:00 -0000 Received: (qmail 54097 invoked by uid 500); 4 Apr 2008 13:50:56 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 54072 invoked by uid 500); 4 Apr 2008 13:50:56 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 54061 invoked by uid 99); 4 Apr 2008 13:50:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2008 06:50:56 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [148.87.113.118] (HELO rgminet01.oracle.com) (148.87.113.118) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2008 13:50:13 +0000 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m34DoNBp023066 for ; Fri, 4 Apr 2008 07:50:24 -0600 Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m34DU3S3016961 for ; Fri, 4 Apr 2008 07:50:23 -0600 Received: from dhcp-burlington1-ma-4th-fl-east-10-149-119-176.usdhcp.oraclecorp.com by acsmt350.oracle.com with ESMTP id 3638433041207316969; Fri, 04 Apr 2008 06:49:29 -0700 Message-ID: <47F631EA.2000600@oracle.com> Date: Fri, 04 Apr 2008 09:49:30 -0400 From: Max Starets User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: [Trinidad] Custom collectionmodel References: <47F49D2F.1000304@kava.be> <47F5D622.2070302@kava.be> In-Reply-To: <47F5D622.2070302@kava.be> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Virus-Checked: Checked by ClamAV on apache.org Henk, I must be missing something - why don't you just instantiate your custom CollectionModel as a backing bean and EL-bind table's value to it? Max Henk Vanhoe wrote: > Hi, > I found one way to force the trinidad table to use our own collection > model: to extend > org.apache.myfaces.trinidad.component.core.data.CoreTable and override > the createCollectionModel method. But I don't like this solution > because for this to work I have to make this method non-final in the > trinidad source code itself and recompile it! Is there a reason why > createCollectionModel is final in the source code or could this be > removed in the source repository itself (or do I have to ask that on > the dev mailing list?) Or does anybody have a better solution? > Thanks > Henk > > Does anybody > > Henk Vanhoe wrote: >> Hi, >> >> In our tables we need to use our own collection model (a wrapper for >> org.apache.myfaces.trinidad.model.CollectionModel with its own >> implementation of getRowKey and setRowKey). However the getter in the >> backing bean for the value used in the table returns a java.util.List >> and the trinidad implementation of CoreTable wraps that in its own >> CollectionModel. Is there a way for us to force the trinidad table to >> use our own CollectionModel? >> >> Regards, >> Henk >> >> >