Foros de discusión
call one class in velocity template liferay 6.0.6
maryam maryam masoudy, modificado hace 11 años.
call one class in velocity template liferay 6.0.6
Regular Member Mensajes: 149 Fecha de incorporación: 30/10/11 Mensajes recientes
hi friends
i am writing one velocity template in liferay 6.0.6
i want use AssetEntryQuery in my template but template can not use this class
what shall i do?
how can i call a class in template?
i want to use AssetEntryQuery 's methods of AssetEntryLocalService
i use AssetEntryLocalService and get good response for example:
i could get number of assetEntries but i need to use method getEntries(AssetEntryQuery assetEntryQuery) and i must use AssetEntryQuery for variable
thanks
i am writing one velocity template in liferay 6.0.6
i want use AssetEntryQuery in my template but template can not use this class
what shall i do?
how can i call a class in template?
i want to use AssetEntryQuery 's methods of AssetEntryLocalService
i use AssetEntryLocalService and get good response for example:
#set ($AssetEntryLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService" ))
$AssetEntryLocalService.getAssetEntriesCount()
i could get number of assetEntries but i need to use method getEntries(AssetEntryQuery assetEntryQuery) and i must use AssetEntryQuery for variable
#set ($AssetEntryLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService" ))
$AssetEntryLocalService.getEntries(AssetEntryQuery assetEntryQuery)
thanks