I can't speak about your t:if bit because I don't know what "LastCrumb"
would be, but assuming that your page class has getters/setters (or the
property is annotated with @Property) for the "crumb" property, a getter
for your "breadCrumbs," and your crumb bean defines a "getName" method,
you *should* be good.

It would be helpful if you can include the exception, specifically the
line it references, etc.

chris

PS the list is good, the IRC channel (irc.freenode.net #tapestry) is
better ;-)

Jan Vissers wrote:
> Yep, sure, I may I add - This mailing list is great and Tapestry rocks!
>
>  <t:loop source="breadCrumbs" value="crumb" index="index">
>     <t:if test="LastCrumb">
>        ${crumb.name}
>        <t:parameter name="else">
>            <a href="#"
> t:type="pageLink" ....>${crumb.name}</a>                            
>               >
>        </t:parameter>
>     </t:if>
> </t:loop>
>
> -J.
>
> On Fri, 2008-04-18 at 14:34 +0200, Chris Lewis wrote:
>   
>> Can you share some code? At least the relevant part from template would
>> be helpful.
>>
>> chris
>>
>> Jan Vissers wrote:
>>     
>>> Hi,
>>>
>>> Just to make sure I'm not missing something.
>>>
>>> In T4 when I wrote a @For construct I could use value="..." as long as I
>>> provided a setter|getter pair for the class involved - in this case
>>> BreadcrumbBean. I want to iterate over a list of beans and use each
>>> instance individually. Now T5 throws up on me with this nice coercion
>>> message. Does this mean I need to contribute my own coercion - or is
>>> there a more simple way? In my case BreadcrumbBean is a simple class
>>> holding three String members.
>>>
>>> Thanks (again :-))
>>> -J.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>   
>>>       
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

-- 
http://thegodcode.net

Reply via email to