我已經下載了Upcoming Events portlet,我已經做了一些更改,並且將portlet部署到Liferay 6.2。CalEventServiceUtil無法解析
我得到這個錯誤:
Unable to compile class for JSP:
An error occurred at line: [36] in the generated java file: [D:\Liferay\Test\tomcat-7.0.42\work\Catalina\localhost\upcoming-events-portlet\org\apache\jsp\view_jsp.java]
Only a type can be imported. com.liferay.portlet.calendar.service.CalEventServiceUtil resolves to a package
An error occurred at line: 79 in the jsp file: /view.jsp
CalEventServiceUtil cannot be resolved
生成的文件的第36行:
import com.liferay.portlet.calendar.service.CalEventServiceUtil;
/view.jsp的線79:
lstEvents = CalEventServiceUtil.getEvents(scopeGroupId, gregCal, new String());
我要補充有些圖書館要投影,但哪一個?
任何幫助表示讚賞!謝謝!
我的看法是未來活動的Portlet僅適用於6.1版。出現錯誤是因爲Calendar Portlet現在與Liferay分離。 – Mark
@Mark我也這麼認爲 - 爲什麼不加這個作爲答案,以便它可以被表決/接受。市場信息指出該應用與* 6.1(任何版本)GA2 + *兼容,例如,可能與GA3,但它沒有說任何關於6.2(這將是* 6.1 + *) –
非常感謝你@Mark –