-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loop / ForEach Controller should expose a variable for current iteration #4606
Comments
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1816519&view=rev Modified: |
@pmouawad (migrated from Bugzilla):
|
@pmouawad (migrated from Bugzilla):
PRs welcome :-) |
@pmouawad (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=1816602&view=rev Modified: |
@pmouawad (migrated from Bugzilla): |
@pmouawad , sorry for pinging you here, however, I'm trying to figure out the use cases for the added feature. At the same time, the feature adds CPU-intensive code (it allocates memory on string concatenation to build variable names): #5875 (comment) Even though we could try removing the allocations (e.g. cache the output of Alternative implementations could be:
WDYT? |
@pmouawad (Bug 61802):
When I introduce those components, newbies don't understand why we don't expose OOTB this information which is very useful in many cases. Workaround is to use a Counter but why ?
I propose to name variable :
_jm_<controller name>_it
If I missed an element that should also do, please update.
Thanks
OS: All
Blocks:
The text was updated successfully, but these errors were encountered: