velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadesan, Binu" <>
Subject Problems with ViewRenderTool
Date Fri, 10 Dec 2004 21:14:44 GMT
Hi All,

I have problem with the Velocity ViewRender tool. Please see the macro

The problem lies with the statement $render.eval("$e.$text")

Here $e is an object and $text contains a string value that is a property of
the object.

Some how the tool is  not able to return the value of the object property. I
am I missing something here....

#macro (selectcontrol $name $selected $list $id $text)
	#set($s="NULL" )
	#set($s=$selected )
	<select name="$name">
	#foreach ($e in $list )
	#set($v = $render.eval("$e.$id"))
	<option value="$v"#if("$v"=="$s")

Binu Nadesan.
(513) 612-2206.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message