Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 22564 invoked from network); 14 Jan 2004 13:44:21 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Jan 2004 13:44:21 -0000 Received: (qmail 67607 invoked by uid 500); 14 Jan 2004 13:44:10 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 67587 invoked by uid 500); 14 Jan 2004 13:44:10 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 67569 invoked from network); 14 Jan 2004 13:44:09 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 14 Jan 2004 13:44:09 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AglJa-0001dR-00 for ; Wed, 14 Jan 2004 14:44:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AglJZ-0001dI-00 for ; Wed, 14 Jan 2004 14:44:09 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AglJZ-0000fN-00 for ; Wed, 14 Jan 2004 14:44:09 +0100 From: Olivier Billard Subject: [Cocoon Forms] How to deal with empty repeaters in XSP ? Date: Wed, 14 Jan 2004 14:43:07 +0100 Lines: 14 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: fr-fr, fr, en, ja Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi cocooners ! I would like not to display an array of repeater content if it is empty... instead, a string like "no entry". For the moment, I must set the form widget to request or session parameter from flow to get it in the XSP that generates the template file, and manually use Repeater.getSize(), but it's a little bit hacky, no ? Thanks, -- Olivier BILLARD --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org