Funny, just yesterday I was trying to get wicket-velocity to work.
So, I downloaded the velocity source and went code spelunking.
The singleton, org.apache.velocity.app,Velocity,
has a method setProperty which, if set before the init
method is called, allows you to override the velocimacro.library
property.
The Velocity.init method is called in
org.apache.wicket.velocity.Initializer which, in turn,
is created and call from Application.scala (the wicket.properties
file contains: initializer=org.apache.wicket.velocity.Initializer
which is read by Application.scala). Now, Application.scala
does this work from the call to its initApplication method.
So, if you set the Velocity property before calling
Application.initApplication it should work.
I said, should, since this is not what I did; I simply commented
out the line
velocimacro.library = VM_global_library.vm
in the velocity.properties file.
An alternative is to find the VM_global_library.vm file in the
Velocity distribution (under test/templates) and put it where
it can be loaded. Again, I did not do this.
Richard
On 12/10/2010 08:08 PM, fachhoch wrote:
I want to use wicketstuff yui and this has dependency on wicket-velocity
, this was failing my application becasue of property
velocimacro.library = VM_global_library.vm
its working after disabling the property , I disabled the porperty by
modifying the velocity.property from the jar wicket-velocity.jar , Please
tell me how to remove this property programatically.
--
Quis custodiet ipsos custodes
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org