我使用以下代码在Popup窗口上加载WebContent编辑portlet:
<liferay-ui:icon
image="edit"
message="Edit"
url="<%= editUrl %>"
/>
Run Code Online (Sandbox Code Playgroud)
editUrl的值是:
editUrl = "javascript:Liferay.Util.openWindow({
dialog:{
width: 960,
modal:true,
destroyOnClose: true
},
id: '" + liferayPortletResponse.getNamespace() + "',
title: '" + article.getTitle(Locale.UK, true) + "',
uri:'" + HtmlUtil.escapeURL(editPortletURLString) + "'});";
Run Code Online (Sandbox Code Playgroud)
保存或发布内容时,将在弹出窗口中加载portlet.我希望关闭弹出窗口,并使用editURL链接刷新portlet.
当开发团队也是支持团队时,Scrum会发生什么?如何使用Jira改进?
我们不能拥有消防员,因为并非所有开发人员都可以解决前端和后端问题.但支持问题使得团队速度难以获得.
我正在使用Liferay 6.1,Tomcat和MySQL.我有一个list-sql句子用于列表portlet.custom-sql使用两个参数:groupIds数组和结果限制.
SELECT
count(articleId) as count,
...
FROM comments
WHERE groupId IN (?)
GROUP BY articleId
ORDER BY count DESC
LIMIT 0, ?
Run Code Online (Sandbox Code Playgroud)
我的FinderImpl类有这个方法:
public List<Comment> findByMostCommented(String groupIds, long maxItems) {
Session session = null;
session = openSession();
String sql = CustomSQLUtil.get(FIND_MOST_COMMENTS);
SQLQuery query = session.createSQLQuery(sql);
query.addEntity("Comment", CommentImpl.class);
QueryPos queryPos = QueryPos.getInstance(query);
queryPos.add(groupIds);
queryPos.add(maxItems);
List<Comment> queryResult = query.list();
return queryResult;
}
Run Code Online (Sandbox Code Playgroud)
这将返回0结果.如果我删除WHERE IN(),它的工作原理.
是否是有效的运营商?如果没有,如何在不同的组内搜索?