LiferayWindowState.EXCLUSIVE无法解析为某个类型?

时间:2013-09-13 05:07:45

标签: liferay liferay-aui

这是我的view.jsp。当我点击view.jsp上的超链接我想在弹出窗口中显示jpop.jsp页面?任何人都可以告诉我这可能吗?我是Liferay的新手。我在LiferayWindowState.EXCLUSIVE有错误无法解析为类型

 
<portlet:defineObjects />

<portlet:renderURL var="portletSettingsURL" windowState="<%=LiferayWindowState.EXCLUSIVE.toString()%>">
      <portlet:param name="jspPage" value="/html/jsppop/jpop.jsp"/>
 </portlet:renderURL>

 <a href="#" onClick="openConfigPopup()">jsp url</a>

 <script type="text/javascript">
    function openConfigPopup() 
    {
        AUI().use('aui-dialog', 'aui-io', 'event', 'event-custom', function(A) {
            var dialog = new A.Dialog({
                    title: 'Configuration',
                    centered: true,
                    draggable: true,
                    modal: true,
                    width: 635, 
                   height: 400,
                }).plug(A.Plugin.IO, {uri: '<%=portletSettingsURL%>'}).render();
            dialog.show();
        });
  }
</script>

1 个答案:

答案 0 :(得分:2)

您忘了导入

<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>

HTH