On 4/27/07, Supun Kamburugamuva <[EMAIL PROTECTED]> wrote:
Hi,
I have been playing with Velocity in the past few days. By doing so I
encountered couple of problems. I'm not sure weather these are the
documented behavior so I thought I should ask the list.

1.I couldn't set a property after I initialize the Velocity Engine
(After calling the init() method).  Here the particular property I was
trying to set was MAX_NUMBER_LOOPS property.

Correct.  Properties must be set prior to initialization/use of the
runtime.  At this point, there is no support for changing properties
in a runtime instance that's already in use.

2.I couldn't call inner class methods. I put an inner class object in
to Velocity context and then tried to call its methods from the
template. But it didn't work. Velocity just outputs the calling method
name.

Christopher is right here.  Inner classes work just fine (i use them a
lot), but they must be declared public just like any other classes you
are trying access in a template.

Thanks,
Supun.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to