掲示板
call one class in velocity template liferay 6.0.6
11年前 に maryam maryam masoudy によって更新されました。
call one class in velocity template liferay 6.0.6
Regular Member 投稿: 149 参加年月日: 11/10/30 最新の投稿
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