我下载了 portlet,并做了一些更改,并将portlet部署到Liferay6.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.p
是否可以检查是否已经编译了JSP?假设我正在做这样的事情:
read database
read an xml file
call a webservice
show data from all of above in JSP
但我不想每次都做前三次,我想:
if ( not already compiled JSP or data is out of date )
{
read database
read an xml file
call a webservice
}
show data in JSP
使用Freemarker这样的库很容易做到这一点,但是不确定如何使用JS
我正在尝试使用jpa验证来验证一个新的bean对象。
我得到了这个错误:
2012-09-24 11:19:55,584 WARN [AbstractModel:32] The object is not persisted yet, this operation requires the object to already be persisted.
java.lang.Exception
at org.oscarehr.common.model.AbstractModel.hashCode(AbstractModel.java:32)
at org.hib
我有一个菜单,当用户悬停在图标上时会出现。当用户悬停于该菜单或其父DIV时,我希望它关闭。为了做到这一点,我考虑使用onMouseOver并在ID不是我想要的ID时隐藏它。但是,当我移动鼠标时,光标似乎是我自己没有放在那里的输入和退出元素,带有未定义的ID或ID = '‘(空白)。有谁能解释是什么原因造成的,可能的话,如何阻止这种情况的发生?
这是菜单及其元素
<div class = "desktopToolbarSearchBoxWithoutOptions" id = "toolbarSearchBox">
<img sr