[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-user
Subject:    Iterator Tools?
From:       "Chacko, Raj" <rchacko () cincom ! com>
Date:       2004-11-22 19:06:41
Message-ID: 4B851475D63BD411BEFF00D0B746E5B40821AFA6 () professor ! cincom ! com
[Download RAW message or body]


Hi, 

Can anyone please review this code snippet? I am using the Iterator tools to
iterate through a vector object that is stored in a session object. The data
is populated to an array on the client side. I use the iterator tool to
check for any existing object and if so, add a comma delimiter, for the
array.

#if ($taskcount.intValue() > 0)    
	aData = [
	#set($results = $mill.wrap($tasksearchresults))
	#foreach($sitem in $results)
	
['$sitem.DueDate','$sitem.Severity','$sitem.Priority','$sitem.CaseCategory']
		#if ($results.hasMore()) , #end
	#end
	];
#end


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic