From dev-return-50542-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Sat Nov 01 22:56:27 2003 Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 58165 invoked from network); 1 Nov 2003 22:56:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Nov 2003 22:56:27 -0000 Received: (qmail 68541 invoked by uid 500); 1 Nov 2003 22:56:10 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 68501 invoked by uid 500); 1 Nov 2003 22:56:10 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 68486 invoked from network); 1 Nov 2003 22:56:10 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 1 Nov 2003 22:56:10 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AG4fI-0008Ub-00 for ; Sat, 01 Nov 2003 23:56:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@cocoon.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AG4fG-0008UT-00 for ; Sat, 01 Nov 2003 23:56:14 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AG4fG-0004gR-00 for ; Sat, 01 Nov 2003 23:56:14 +0100 From: Sylvain Wallez Subject: Dynamic woody templates? Date: Sat, 01 Nov 2003 23:56:14 +0100 Lines: 39 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.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: fr, en, en-us 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 Woody'ers Lately, I encountered several use cases where I found that the current we have today is not enough. Here are some: - if the repeater is empty, the "delete selected items" should not appear underneath - I'm currently writing move up/move down row actions, and I don't want to display the "up" on the first row nor the "down" on the last one - when a repeater is empty, I want to display e.g. "there are currently no items" instead of just the table headers The first two items can eventually be solved by having the widgets generating nothing when some condition is verified, but the third cannot be solved without adding new information in the form template. So I was thinking to add new esql-like statements (analoguous to esql:results, esql:no-results, etc) in the woody template. What do you think? But I'm also wondering, as woody usage increases, if we will not need to write form templates involving more and more conditional parts. And for this, JXTemplate shines. But mixing jx-like access to the form model with wt: templates elements is likely to quickly become unnatural. A solution could be to augment the JXTemplate syntax with new Woody-related instructions. Taglibs for JXTemplate? What do you think (again)? Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } Orixo, the opensource XML business alliance - http://www.orixo.com