Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 11934 invoked from network); 2 Dec 2005 23:59:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Dec 2005 23:59:41 -0000 Received: (qmail 83432 invoked by uid 500); 2 Dec 2005 23:57:22 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 83202 invoked by uid 500); 2 Dec 2005 23:57:20 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 82934 invoked by uid 99); 2 Dec 2005 23:57:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 15:57:19 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE,MIME_BOUND_NEXTPART X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.148.227.154] (HELO rwcrmhc12.comcast.net) (216.148.227.154) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 08:01:04 -0800 Received: from rmailcenter88.comcast.net ([204.127.197.188]) by comcast.net (rwcrmhc14) with SMTP id <2005120215591401400rcen9e>; Fri, 2 Dec 2005 15:59:14 +0000 Received: from [165.127.77.148] by rmailcenter88.comcast.net; Fri, 02 Dec 2005 15:59:13 +0000 From: gvanmatre@comcast.net (Gary VanMatre) To: "Struts Users Mailing List" Subject: Re: [shale] Clay - Logic components? Date: Fri, 02 Dec 2005 15:59:13 +0000 Message-Id: <120220051559.17013.43906F510002C16F0000427522092299270A9D9B0E03020E9009@comcast.net> X-Mailer: AT&T Message Center Version 1 (Dec 17 2004) X-Authenticated-Sender: Z3Zhbm1hdHJlQGNvbWNhc3QubmV0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="NextPart_Webmail_9m3u9jl4l_17013_1133539153_0" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --NextPart_Webmail_9m3u9jl4l_17013_1133539153_0 Content-Type: text/plain Content-Transfer-Encoding: 8bit > Hi, > > I am wondering right now how is it possible to generate a dynamic data > list component (dl) since no faces package offer it. First, I taught > no problem, Clay solves this situation quite easily but right now I am > stuck. I don't know how to make a loop to render all list elements. > Tapestry offers the forEach component to solve this problem. Is Shale > going to go this way too? Gary any suggestions? Clay doesn't have a forEach component yet. The Clay component is a Naming Container so I don't think it would be too bad to implement. I've been thinking about it but for now the best Clay solution would be to use the shapeValidator event to generate your list at runtime. Take a look at the Rolodex example. The tabs are generated using the runtime callback method to the ViewController. All you are doing here is creating the same metadata generated by digesting the XML config files. It looks kind of messy but it's very powerful. Gary > -- > Alexandre Poitras > Qu�bec, Canada > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > --NextPart_Webmail_9m3u9jl4l_17013_1133539153_0--