Re: [5.4-beta-6] Passing a loop's index as a context to an enclosed submit button

2014-08-02 Thread Muhammad Gelbana
​Yea ! I read it but I still implemented it wrong. I'm now using it correctly. Thanks.​ *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Sat, Aug 2, 2014 at 9:40 PM, Lance Java wrote: > Form supports a "context" parameter which will be passed to the form events

Re: [5.4-beta-6] Passing a loop's index as a context to an enclosed submit button

2014-08-02 Thread Lance Java
Form supports a "context" parameter which will be passed to the form events eg: onSubmit(Foo context)

[5.4-beta-6] Passing a loop's index as a context to an enclosed submit button

2014-08-02 Thread Muhammad Gelbana
In a page, I loop over a list of objects. In the page's template I specify an index parameter to track the loop like this: In the page there is a property with the name "*elementIndex*". @Property > private int *elementIndex*; The event handler for the submit button click is @OnEvent(comp