Return-Path: Delivered-To: apmail-roller-user-archive@www.apache.org Received: (qmail 29819 invoked from network); 29 Apr 2008 06:03:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Apr 2008 06:03:13 -0000 Received: (qmail 47548 invoked by uid 500); 29 Apr 2008 06:03:14 -0000 Delivered-To: apmail-roller-user-archive@roller.apache.org Received: (qmail 47524 invoked by uid 500); 29 Apr 2008 06:03:13 -0000 Mailing-List: contact user-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@roller.apache.org Delivered-To: mailing list user@roller.apache.org Received: (qmail 47513 invoked by uid 99); 29 Apr 2008 06:03:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 23:03:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=MISSING_MID,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of odelya@jpost.com designates 192.114.66.101 as permitted sender) Received: from [192.114.66.101] (HELO mail.update.co.il) (192.114.66.101) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 29 Apr 2008 06:02:20 +0000 Received: (qmail 4939 invoked by uid 7794); 29 Apr 2008 06:02:40 -0000 Received: from odelya@jpost.com by blue by uid 7791 with qmail-scanner-1.16 (clamscan: 0.60. Clear:. Processed in 0.401777 secs); 29 Apr 2008 06:02:40 -0000 Received: from user93ddd38a5d ([192.114.66.120]) by ns2.update.co.il ([192.114.66.102]) with ESMTP via TCP; 29 Apr 2008 06:02:39 -0000 From: "Odelya YomTov-Glick" To: Subject: RE: ambiguousness in getMostCommentedWeblogEntries Date: Tue, 29 Apr 2008 09:04:51 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-reply-to: <4816449A.60100@Sun.COM> Thread-Index: AcipeMz3AWI0cxtzT6CpXNQ5J2MLywATljgQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Qmail-Scanner-Message-ID: <12094489605264933@blue> X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20080429060228.E718C4DA07D@nike.apache.org> Hi Allen, thanks for the answer. I still don't get results for the $theEntries object. When I try to print it, I get: $theEntries.size() instead of 100. What could be the problem? -----Original Message----- From: Allen.Gilliland@Sun.COM [mailto:Allen.Gilliland@Sun.COM] Sent: Monday, April 28, 2008 11:42 PM To: user@roller.apache.org Subject: Re: ambiguousness in getMostCommentedWeblogEntries templates don't actually have the ability to directly call into the backend manager classes, instead the calls first go through a model class. you need to be looking for that method in the SiteModel class, that will show you what is happening when you make the call in your template. -- Allen Odelya YomTov-Glick wrote: > Hi, > When I try to use the method as Dave wrote to me like this: > #set ($theEntries = $site.getMostCommentedWeblogEntries(20, 100)) > #foreach($entryStatCount in $theEntries) > $entryStatCount.subjectNameLong > $entryStatCount.subjectNameShort > #end > Nothing returns. > > I looked in the source code, and saw that actually WeblogManager expects to > use the method with different parameters! > ** > * Get weblog enties ordered by descending number of comments. > * @param website Weblog or null to get for all weblogs. > * @param startDate Start date or null for no start date. > * @param endDate End date or null for no end date. > * @param offset Offset into results for paging > * @param length Max comments to return (or -1 for no limit) > * @returns List of WeblogEntryData objects. > */ > public List getMostCommentedWeblogEntries( > Weblog website, > Date startDate, > Date endDate, > int offset, > int length) > throws WebloggerException; > > what's the right way to use it? > > Thanks > > Odelya YomTov - Glick > **************************************************************************** ******** This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. **************************************************************************** ********