Thanks, but that doesn't quite do what I need... it seems that it only gets the value returned by the method call and has no reference to the object the call was made on. For example, if my template has
$foo.bar I just get the following: "$foo.bar" "Some string returned by method bar" Is there any way to get a reference to $foo in this case and intercept the result returned by getBar()? Thanks, James -----Original Message----- From: Nathan Bubna [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2008 12:16 PM To: Velocity Users List Subject: Re: Filters? Sounds like something that the ReferenceInsertionEventHandler might be able to do: http://velocity.apache.org/engine/devel/developer-guide.html#Configuring _Event_Handlers http://velocity.apache.org/engine/devel/apidocs/org/apache/velocity/app/ event/ReferenceInsertionEventHandler.html On Thu, Nov 6, 2008 at 6:28 AM, James Carr <[EMAIL PROTECTED]> wrote: > Hi All, > > > > Is there some kind of way in the velocity API to implement filters that > can operate on objects on the context? Specifically, say object person > is on the context, if person.name is called, and the getName() method > has an annotation on it, I want to be able to transform the value > displayed on the rendered output. > > > > Is this possible? > > > > Thanks, > > James > > --------------------------------------------------------------------- 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]
