Re: Things in a loop go null

2010-12-18 Thread Mark
You probably want something like this in the loop. Notice that when the loop is looping, it creates an appropriate myZoneId and actually keeps it in what is sent to the client. When the client clicks on something, it contains the appropriate information so the server knows what zone needs to be u

Re: Things in a loop go null

2010-12-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Dec 2010 18:31:27 -0200, Tom van Dijk wrote: Alright, I suppose can add a context. But I find that it's not only the "Product" that's null, but also stuff like zones. Remember that everything is lost from one request (the one that render the page) to another (the one that handle

Re: Things in a loop go null

2010-12-15 Thread Tom van Dijk
Alright, I suppose can add a context. But I find that it's not only the "Product" that's null, but also stuff like zones. What I have, is a component inside a loop. Now within the component, I have a zone that I want to update as follows: zone="overviewOfStuff"> ... Because it's in a lo

Re: Things in a loop go null

2010-12-15 Thread Igor Drobiazko
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 wrote: > Hi, > > In an application, I'm making an editor for products in a group

Things in a loop go null

2010-12-15 Thread Tom van Dijk
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