Fórum
Custom Velocity Tools on Liferay 6 from ext-plugin
Peter Fox, modificado 14 Anos atrás.
Custom Velocity Tools on Liferay 6 from ext-plugin
New Member Postagens: 18 Data de Entrada: 09/10/09 Postagens Recentes
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
Alex Galkin, modificado 11 Anos atrás.
RE: Custom Velocity Tools on Liferay 6 from ext-plugin
New Member Postagens: 9 Data de Entrada: 29/11/12 Postagens Recentes
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.