[ http://issues.apache.org/jira/browse/VELOCITY-232?page=comments#action_12329883 ]
Nathan Bubna commented on VELOCITY-232: --------------------------------------- I think given the workarounds offered by the ListTool in Velocity Tools (in svn head) and the PublicFieldUberspect on the wiki, this should be pretty well covered until Issue VELOCITY-365 is implemented, at which point this would be counter-productive. so i'd vote to have this closed as "won't fix" or as a duplicate of VELOCITY-365. > 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]
