我希望在liferay中显示一个jsp页面作为aui对话框,目前我正在做这样的事情:
<portlet:renderURL var="editURL" windowState="<%= WindowState.MAXIMIZED.toString() %>" >
<portlet:param name="jspPage" value="/edit.jsp"/>
<portlet:param name="id" value="<%= id%>"/>
</portlet:renderURL>
<aui:script use="aui-dialog, aui-overlay-manager, dd-constrain">
var editDialogOptions = {
title: 'Dialog',
bodyContent: '',
centered: true,
group: 'default',
height: 400,
width: 400,
modal: true,
buttons: [
{
label: 'Cancel',
handler: function() {
this.close();
}
}
]
};
$("#btnEdit").on('click', function(event) {
var editFeelingDialog = new A.Dialog(
A.merge(editDialogOptions, {
title: 'Edit Product'
})
).plug(A.Plugin.IO, {uri: '<%= editURL %>'}).render();
});
</aui:script>
页面渲染,传入我的参数,但它包括整个控制面板和其他信息,如我不想显示的退出链接和导航等。反正只是在没有其他东西的情况下只显示edit.jsp页面吗?
我很感激有关此事的任何帮助!
答案 0 :(得分:0)
好的,我已经设法通过将windowState更改为“POP_UP”来修复它。