Re: Manipulate components inside a @For with DirectLink.

2006-08-07 Thread Karthik N
The solution looks quite nice. After our experimentations with For, we realized that the state of each minimize of each TabGroup should be a part of a List and not in the component. And that's where the TabGroupView fits in. Quite an eye-opener!! I always had the impression that a For loop wou

Re: Manipulate components inside a @For with DirectLink.

2006-08-07 Thread Reto Hotz
Hi, Thanks for your reply. Yes, I found a solution: I created a new "wrapper"-component who does the for-loop stuff. I called it TabGroupView. Within this component I can save the maximize/minimize status of all my TabGroups. This means I moved my @For loop from the Home.html into this component

Re: Manipulate components inside a @For with DirectLink.

2006-08-07 Thread Karthik N
any luck with this issue? After some discussions and experimentation with a colleague of mine, it appears that there is only one component. that's the nature of the For loop. We did this in the listener on the page: Map comps = this.getComponents(); Set keyMap = comps.keySet();

Re: Manipulate components inside a @For with DirectLink.

2006-08-04 Thread Reto Hotz
The TabGroup has a @DirectLink to change the state: minimized/maximized. Home.html: TabGroup.html: TabGroup.jwc: TabGroup.java: public abstract class TabGroup extends BaseComponent implements PageAttachListener, IFormComponent { public abstract String getTitle(); @Pe

Re: Manipulate components inside a @For with DirectLink.

2006-08-04 Thread Karthik N
I am assuming that to the @DirectLink you are passing the appropriate parameter(s) that makes it render a unique URL for each iteration? Any code snippets would help. On 8/4/06, Reto Hotz <[EMAIL PROTECTED]> wrote: Hi Karthik, On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: > I think you wil

Re: Manipulate components inside a @For with DirectLink.

2006-08-04 Thread Reto Hotz
Hi Karthik, On 8/4/06, Karthik N <[EMAIL PROTECTED]> wrote: I think you will have to look at the parameters that are passed to your TabGroup component. ensure you have cache="false" on all of them in the .jwc file of TabGroup Makes no difference, unfortunately. Greetings Reto -

Re: Manipulate components inside a @For with DirectLink.

2006-08-04 Thread Karthik N
I think you will have to look at the parameters that are passed to your TabGroup component. ensure you have cache="false" on all of them in the .jwc file of TabGroup On 8/4/06, Reto Hotz <[EMAIL PROTECTED]> wrote: Hello, In T4, I have a custom component (TabGroup) in a @For loop. The componen

Manipulate components inside a @For with DirectLink.

2006-08-04 Thread Reto Hotz
Hello, In T4, I have a custom component (TabGroup) in a @For loop. The component has a @DirectLink to manipulate itself. Now I have the problem, that the @For-loop creates only one instance of my component and reuses it in every loop. And thus if I click on the components DirectLink to manipulate