Question

this is my view.jsp. when i click hyperlink on view.jsp i want to display jpop.jsp page in popup? can any one tell me is this possible with this? iam new to liferay. i have error at LiferayWindowState.EXCLUSIVE cannot be resolved to a type

<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>
Était-ce utile?

La solution

You forgot to import

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

HTH

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top