我已经下载了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 –