Liferay Symposium 2016 | Reserve your seat today.
4. Custom Theme Development
(Opens New Window)
Mark as an Answer
Custom velocity tool with ext plugin
October 13, 2011 2:04 AM
Rank: Junior Member
Join Date: April 14, 2010
I am trying to build a custom velocity tool as described
but using an ext plugin instead of a hook as in the example.
I tried to covert the hook into an ext plugin velotool-ext modifying the following statement in my velocity script to
#set ($myTool = $utilLocator.findUtil('velotool-ext', 'com.mytool.MyTool'))
But I got an exception in my log saying
com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set
I can't think what could be wrong. My applicationContext.xml is in WEB-INF and the context loader listener is registered in web.xml.
Sign in to vote.
Please sign in to flag this as inappropriate.