List template in dynamic data list in Liferay如何使用動作按鈕爲Liferay中的動態列表開發列表模板?
我已經閱讀這篇文章,也是另一種webapplicationdeveloper博文,但沒有找到任何想法得到customly應用的模板將動態數據列表操作按鈕。
我也曾嘗試包括在VM模板dynamicdatalist portlet的默認record_action.jsp但其沒有工作,也可以設置如下
journal.template.velocity.restricted.variables =
的財產門戶-EXT財產但還是我沒有得到在我的自定義模板動作按鈕
我已經嘗試過這樣的:
#
set (
$categoriesService = $portal.getClass().forName("com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil").getMethod("getService", null).invoke(null, null))
My answer is: Yessss, it works. But I want use a jstl lib (e.g. <aui> or <ui>) as well. In my opinion the simpliest way to do it is include jsp file to themeServletContext. Put your file.jsp into your theme:
your-theme/docroot/path/to/your/jsp/file.jsp
and paste this piece of code into your vm (for example portal_normal.vm):
$theme.include($themeServletContext, "/path/to/your/jsp/file.jsp")
在這種情況下,它無法找到$主題變量顯示$主題我的網頁,因爲它是... :( 請幫助:
你試過一個非常錯誤的方式來解決您的問題。你有沒有解決問題,還是一個懸而未決的問題? –
不,你有什麼想法嗎? –