Hm.  This seems to fix it:

<t:loop source="department.people" value="person">
        <li>${person.name}</li>
</t:loop>

Is this a bug or should we expect different behavior with:

<li type="loop" source="department.people" value="person">
       ${person.name}
</li>

On Fri, Jul 8, 2011 at 6:04 PM, Mark <mark-li...@xeric.net> wrote:
> <li type="loop" source="department.people" value="person">
>        ${person.name}
> </li>
>
>
> If department.people is null or contains a collection with zero items,
> I would expect ${person.name} to never be evaluated.  However, I'm
> getting an error saying that person is null within the express
> person.name.
>
> Are there any conditions that will cause the interior of the loop to
> be evaluated even if there are no items in the collection?
>
> Mark
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to