Because the product set inside the loop is lost, when the user clicks on the
ActionLink. You need to provide a context for your ActionLink in order to
restore the state.

On Wed, Dec 15, 2010 at 1:13 PM, Tom van Dijk <t...@tvandijk.nl> wrote:

> Hi,
>
> In an application, I'm making an editor for products in a group and my
> client wants everything in one page. So, there are product groups, with
> products in each group and every product has a number of subproperties, and
> so on (4 levels deep). So what I get is a loop inside a loop inside a loop.
>
> I have a loop with a custom component in it:
>
> <tr t:type="loop" source="group.products" value="productInLoop"
> <t:productEditor product="productInLoop"/>
> </tr>
>
> The Product Editor has
> @Parameter (required=true) Product product;
>
> Now the Product Editor component has an actionLink, and in
> onActionFromActionLink, product is null.
>
> Why?
>
> Sincerely,
> Tom.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de

Reply via email to