OSP REQUEST OUTPUT VIEW 이벤트

  • 샘플 예제
    Liferay.on(
          OSP.Event.OSP_REFRESH_OUTPUT_VIEW,
          function(e){
              var myId = '<%=portletDisplay.getId()%>';
              if( myId !== e.targetPortlet ) return;
    
              var eventData = {
                      portletId: '<%=portletDisplay.getId()%>',
                      targetPortlet: <portlet:namespace/>connector
              };
    
              Liferay.fire(OSP.Event.OSP_REQUEST_OUTPUT_PATH, eventData);
          }
    );