I was following the example from the Foreach documentation for Tapestry
4.0.2.

But I ended up removing that entry from the page specification altogether,
it worked perfectly without it.

On 8/3/06, Mul <[EMAIL PROTECTED]> wrote:

On 8/3/06, Rui Pacheco <[EMAIL PROTECTED]> wrote:
>
> Hi all
>
> I'm trying to pass a List from my class to my template, but I can't seem
> to
> find the proper way to do it.
>
>
> My list is named inventionList. I defined my @For this way:
> <TR jwcid="@For" source="ognl:inventionList" value="ognl:model"
> element="tr">
> <TD class="texto"><P><STRONG><span jwcid="@Insert"
> value="ognl:model.header"/></STRONG>
> (<span jwcid="@Insert"value="ognl:model.inventionDate"/>)<BR><span
> jwcid="@Insert" value="ognl:model.text"/><BR><BR></P>
> </TD>
> </TR>
>
>
> I defined the List in my component definition this way:
> <property name="inventionList" initial-value="java.util.List"
> persist="session"/>


the initial-value should've been:

<property name="inventionList" initial-value="new java.util.ArrayList()"
persist="session"/>

replace ArrayList w/ other type of List's collection.

You can't call the constructor of an interface.




--
Cumprimentos,
Rui Pacheco

Reply via email to