macro fails to access param properties with render.eval

kris <[email protected]>
Newsgroups gmane.comp.jakarta.velocity.user
Message-ID <[email protected]>
My VTL template looks like:
#macro(aMacro $par1)
	##$par1
	$par1.getId()
#end

#set($macroName = "aMacro") 
#set( $call = "#$macroName('$p1')" )
#evaluate($call)

I have filled the context with an object that has Id property. When I run
this template I would like to see the Id of the object. Instead it just
outputs "$par1.getId()" 



--
View this message in context: http://velocity.10973.n7.nabble.com/macro-fails-to-access-param-properties-with-render-eval-tp16194.html
Sent from the Velocity - User mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.