我已经下载了 Upcoming Events portlet 和我做了一些更改,我将 portlet 部署到 Liferay 6.2。
我收到这个错误:
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 仅适用于 v6.1。出现错误是因为日历 Portlet 现在与 Liferay 分离了。
关于java - 无法解析 CalEventServiceUtil,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21256327/