我遇到以下問題 我使用AlloyUI實現在Liferay中jodd.bean.BeanException:找不到簡單的屬性:CID無效的屬性:「TradingCategoryImpl#CID」
一個portlet用下面的代碼
<liferay-ui:search-container-row
className="com.handysoft.tp.model.TradingCategory"
keyProperty="cId"
modelVar="category">
<liferay-ui:search-container-column-text
name="category-name"
value="<%= category.getCName() %>" />
<liferay-ui:search-container-column-jsp
path="/admin/action.jsp"
align="right" />
</liferay-ui:search-container-row>
的Portlet仍然工作,但我遇到了以下錯誤
jodd.bean.BeanException: Simple property not found: cId Invalid property: 'TradingCategoryImpl#cId'
如果我改變一個小部分
<liferay-ui:search-container-column-text
name="category-name"
property="cName" />
錯誤發生在cName和cId中。什麼都沒有出現,你能幫我解決這個問題