[ http://issues.apache.org/jira/browse/VELOCITY-232?page=all ]
Will Glass-Husain updated VELOCITY-232:
---------------------------------------
Bugzilla Id: (was: 25007)
Fix Version: 1.6
Description:
I know velocity can only introspect Methods, not member variables, but
perhaps you could make an exception for arrays?
Arrays are basically suported with foreach iteration.
Now it would be great if I could also say "$myarray.length items displayed".
Is this possible somehow now?
If not, does someone agree this could be implemented?
I think .length support should be possible only IF the passed variable is an
array, and for nothing else.
was:
I know velocity can only introspect Methods, not member variables, but
perhaps you could make an exception for arrays?
Arrays are basically suported with foreach iteration.
Now it would be great if I could also say "$myarray.length items displayed".
Is this possible somehow now?
If not, does someone agree this could be implemented?
I think .length support should be possible only IF the passed variable is an
array, and for nothing else.
Environment:
Operating System: other
Platform: Other
was:
Operating System: other
Platform: Other
Assign To: (was: Velocity-Dev List)
This keeps coming up on the user list. I think it makes sense. Someone needs
to write the patch, of course.
> Add support for array.length
> ----------------------------
>
> Key: VELOCITY-232
> URL: http://issues.apache.org/jira/browse/VELOCITY-232
> Project: Velocity
> Type: Improvement
> Components: Source
> Versions: 1.4
> Environment: Operating System: other
> Platform: Other
> Reporter: Gernot Hüller
> Priority: Minor
> Fix For: 1.6
>
> I know velocity can only introspect Methods, not member variables, but
> perhaps you could make an exception for arrays?
> Arrays are basically suported with foreach iteration.
> Now it would be great if I could also say "$myarray.length items displayed".
> Is this possible somehow now?
> If not, does someone agree this could be implemented?
> I think .length support should be possible only IF the passed variable is an
> array, and for nothing else.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]