You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by fachhoch <fa...@gmail.com> on 2010/12/11 05:08:31 UTC

wicket-velocity velocimacro.library

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. 
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-velocity-velocimacro-library-tp3083012p3083012.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: wicket-velocity velocimacro.library

Posted by richard emberson <ri...@gmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org