incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Vangasse" <st...@boardshop.co.uk>
Subject Re: Iteration in Trinidad Tables
Date Fri, 25 Aug 2006 07:00:22 GMT
Thanks Adam. The iterator tag works perfectly. Maybe I should have looked a 
little deeper into the list of tags.

Steve Vangasse
www.boardshop.co.uk
----- Original Message ----- 
From: "Adam Winer" <awiner@gmail.com>
To: <adffaces-user@incubator.apache.org>
Sent: Wednesday, August 23, 2006 4:54 PM
Subject: Re: Iteration in Trinidad Tables


> It can't be solved, not with a forEach tag;  the short answer
> is that forEach iterates during page construction, while table
> iterates during page rendering.
>
> As a consequence, you can use forEach around a table,
> but not forEach inside of a table.  That's where
> ui:repeat (from facelets) and tr:iterator (from Trinidad)
> come in.
>
> -- Adam
>
>
> On 8/23/06, Steve Vangasse <steve@boardshop.co.uk> wrote:
>> I'm not sure whether this is a general JSF question or specific to 
>> Trinidad - it does involve the use of Trinidad's forEach tag so here we 
>> go:
>>
>> I'm trying to create a table representing a list of products. Each 
>> product has a list of options (small, medium, large etc). At present I'm 
>> using a table within each row that lists these options. Ideally I would 
>> like to use the panelList component with iteration supplied by Trinidad's 
>> forEach component but the product variable created by the table is not 
>> availble to the forEach tag. It just so happens that I'm using facelets 
>> but the same problem applies to it's version of JSTL forEach tag.
>>
>> Does anyone have a solution to this problem?
>>
>> Thanks in advance,
>>
>> Steve Vangasse
>> www.shopformat.com
>>
> 



Mime
View raw message