掲示板
Custom Velocity Tools on Liferay 6 from ext-plugin
14年前 に Peter Fox によって更新されました。
Custom Velocity Tools on Liferay 6 from ext-plugin
New Member 投稿: 18 参加年月日: 09/10/09 最新の投稿
Hello all,
I've started playing with Liferay 6 from trunk.
Quite impressive so far.. but trying to migrate code from previous versions and to use custom velocity tools on CMS templates with liferay6.
http://www.liferay.com/web/raymond.auge/blog/-/blogs/2245146/maximized
So far...com.liferay.portal.spring.aop.BeanInterceptor does not exist on liferay6 and not sure which replacement to use...so I've copied old one from 5.2.x and I'm using it with my custom ext-plugin.
All seams to work at least $utilLocator or $serviceLocator are working from CMS template and debugging I can check that my AOP proxy class is being registered... problem is that MethodInterceptor seams to not be working.. this way for e.g:
#set ($myTool = $utilLocator.findUtil('com.mytool.MyToolUtil')) -->ok
$myTool.operationOne() --> does nothing! nok and ny kind of exception
Any ideas on this? and any example how to use freemarker template driven CMS articles too?
Thanks in advance
I've started playing with Liferay 6 from trunk.
Quite impressive so far.. but trying to migrate code from previous versions and to use custom velocity tools on CMS templates with liferay6.
http://www.liferay.com/web/raymond.auge/blog/-/blogs/2245146/maximized
So far...com.liferay.portal.spring.aop.BeanInterceptor does not exist on liferay6 and not sure which replacement to use...so I've copied old one from 5.2.x and I'm using it with my custom ext-plugin.
All seams to work at least $utilLocator or $serviceLocator are working from CMS template and debugging I can check that my AOP proxy class is being registered... problem is that MethodInterceptor seams to not be working.. this way for e.g:
#set ($myTool = $utilLocator.findUtil('com.mytool.MyToolUtil')) -->ok
$myTool.operationOne() --> does nothing! nok and ny kind of exception
Any ideas on this? and any example how to use freemarker template driven CMS articles too?
Thanks in advance
11年前 に Alex Galkin によって更新されました。
RE: Custom Velocity Tools on Liferay 6 from ext-plugin
New Member 投稿: 9 参加年月日: 12/11/29 最新の投稿
For Liferay 6 there is more up-to-date article
http://www.liferay.com/hu/web/raymond.auge/blog/-/blogs/6051129
That worked for me - try on your side.
http://www.liferay.com/hu/web/raymond.auge/blog/-/blogs/6051129
That worked for me - try on your side.