%--
* Licensed Materials - Property of IBM
*
* 5724-U18
*
* (C) COPYRIGHT IBM CORP. 2006,2016 All Rights Reserved.
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with
* IBM Corp.
--%><%--
This JSP is the handler for Quick Insert portlet component. It provides user interface for the portlet
Events fired by this component are;
- Open application in INSERT mode.
--%>
<%@ include file="../common/simpleheader.jsp" %><%
String layoutId = component.getProperty("layoutid");
QuickInsertPortlet portletControl = (QuickInsertPortlet)control;
PortletStateImpl portletStateManager = portletControl.getStateManager();
//intially when the portlet has not been loaded
//if the portlet has not been loaded ever call this.
//once its loaded we do not clear the flag
if(portletStateManager.isPortletNotLoaded(component))
{
%><%@ include file="portletloader.jsp" %><%
}
else
{
synchronized (portletControl.getAppBean().getPortletLoadingSync())
{
boolean stateChanged = portletStateManager.isPortletStateChanged();
//if just porlet was minimised then don't re render as there is no need to redraw
//but this flag had to be turned on when these events were fired so that jsp could be hit
if(stateChanged)
portletControl.setChangedFlag(false);
if(portletStateManager.wasPortletLoadCalled())
{
holderId="portletbody_"+layoutId;
%>
<%="
<%="]]>"%>
<%
//mark the portlet state loaded
portletStateManager.setStateLoaded();
}
else
{
// /If the portlet state is changed then fire the javascript to toggle its state
if(portletStateManager.isPortletStateChanged())
{
portletStateManager.setPortletStateChanged(false); %>
><%="
<%="]]>"%>
<% }
}
}
} %><%@ include file="../common/componentfooter.jsp" %>