Re: re-instantiate components in a loop

2006-01-17 Thread Ron Piterman
you could change direct link's stateful parameter to true. I would expect it will do the same? Stijn Christiaens wrote: Maybe this is also not such a good idea, as ActionLink is depecrated and will be removed in 4.1. I've seen someone ask what the replacement was, but it never saw the answer.

Re: re-instantiate components in a loop

2006-01-17 Thread Stijn Christiaens
Maybe this is also not such a good idea, as ActionLink is depecrated and will be removed in 4.1. I've seen someone ask what the replacement was, but it never saw the answer. The documentation also does not say what you should replace it by. Ciao, Stijn On Tue, 2006-01-17 at 16:37 +0100, Ron Pite

Re: re-instantiate components in a loop

2006-01-17 Thread Ron Piterman
Hallo Yael, I never really used contrib:table but I guess, this happens because the table uses the wrong link type for sorting, I guess the DirectLink, but am not really sure about that - instead you should "convince" the table to use ActionLink - this will make the page rerender (before rende

RE: re-instantiate components in a loop

2006-01-17 Thread yamsterdamer
Hi Ron I think you pretty much got it right. For |___Component |___Contrib Table Step 1: the loop is rendering itself 2: in the first iteration a component with current parameters and an id, let's say “myComp” is being created, and renders itself 3: in the second iteration the same comp

Re: re-instantiate components in a loop

2006-01-17 Thread Ron Piterman
Hallo Yael, you usually don't need to - what do you mean by "after rendering" - If I get this right, you are trying to access a component which is inside a loop from a component / method which is performed after the loop is ended? I still can't figure out what is bothering you or what you are tr

RE: re-instantiate components in a loop

2006-01-17 Thread yamsterdamer
The problem is not creating the page in the first time - that goes smoothly. Let me give you a more detailed description of the problem: I have a contrib table within my costume component. The link used to sort the table includes reference to the containing component using its id. But since the

Re: re-instantiate components in a loop

2006-01-17 Thread Ron Piterman
hallo yael, I could not quite figure what the problem is - what are you trying to achieve? basically you should use components binding inside a For loop to make each component render otherwise. In the For, you use the value and index parameter bindings to set the current iteration value/index to