summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-09-12 09:32:11 (EDT)
committerStephan Born2013-09-12 09:32:11 (EDT)
commitf07e47e2c3141b31c0650bafa1dac6e24f75bcea (patch)
tree12552d547aaacf174b75970884ccdba214140287
parentd54caa97b066650ae4243ff3bc7af8a472b810c4 (diff)
downloadorg.eclipse.stardust.ui.web-f07e47e2c3141b31c0650bafa1dac6e24f75bcea.zip
org.eclipse.stardust.ui.web-f07e47e2c3141b31c0650bafa1dac6e24f75bcea.tar.gz
org.eclipse.stardust.ui.web-f07e47e2c3141b31c0650bafa1dac6e24f75bcea.tar.bz2
Jira-ID: CRNT-30362
Removed pre html5 framework .xhtml and .js files and removed references for same from .xhtml. git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/ui.web@67254 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Sidharth Singh <sidharth.singh@sungard.com>
-rw-r--r--portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/PortalApplication.java102
-rw-r--r--portal-common/src/main/resources/META-INF/faces-config.xml18
-rw-r--r--portal-common/src/main/resources/META-INF/xhtml/main.xhtml43
-rw-r--r--portal-common/src/main/resources/META-INF/xhtml/overflowTabIframePopup.xhtml85
-rw-r--r--portal-common/src/main/resources/META-INF/xhtml/perspectiveMenuIframePopup.xhtml3
-rw-r--r--portal-common/src/main/resources/META-INF/xhtml/portalContent.xhtml81
-rw-r--r--portal-common/src/main/resources/META-INF/xhtml/portalFooter.xhtml17
-rw-r--r--portal-common/src/main/resources/META-INF/xhtml/portalHeader.xhtml112
-rw-r--r--portal-common/src/main/resources/META-INF/xhtml/portalMain.xhtml78
-rw-r--r--portal-common/src/main/resources/META-INF/xhtml/views/toolbar/commonMenuIframePopup.xhtml3
-rw-r--r--process-portal/src/main/resources/META-INF/xhtml/processportal/IppProcessPortal.js1055
-rw-r--r--process-portal/src/main/resources/META-INF/xhtml/processportal/integration/trinidad/facelet-panel-container.xhtml1
-rw-r--r--process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/notesIframePopup.xhtml2
-rw-r--r--process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/processAttachmentsIframePopup.xhtml2
-rw-r--r--process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/qualityAssuranceCodesIframePopup.xhtml2
-rw-r--r--process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/suspendActivityIframePopup.xhtml3
-rw-r--r--process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/suspendAndSaveIframePopup.xhtml3
-rw-r--r--views-common/src/main/resources/META-INF/xhtml/common/abortIframePopup.xhtml3
-rw-r--r--views-common/src/main/resources/META-INF/xhtml/common/caseIframePopup.xhtml3
-rw-r--r--views-common/src/main/resources/META-INF/xhtml/common/linkedProcessIframePopup.xhtml3
20 files changed, 0 insertions, 1619 deletions
diff --git a/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/PortalApplication.java b/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/PortalApplication.java
index f3d10cd..6d6bf28 100644
--- a/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/PortalApplication.java
+++ b/portal-common/src/main/java/org/eclipse/stardust/ui/web/common/app/PortalApplication.java
@@ -126,7 +126,6 @@ public class PortalApplication
private PortalApplicationEventScript portalApplicationEventScript;
private TimeZone clientTimeZone = null;
- private boolean overflowTabPopupOpened = false;
private RuntimeEnvironmentInfoProvider runtimeEnvironmentInfoProvider;
private String version;
@@ -214,8 +213,6 @@ public class PortalApplication
{
launchPanelsActivated = true;
- closeOverflowTabIframePopup();
-
getPortalUiController().broadcastNonVetoablePerspectiveEvent(PerspectiveEventType.LAUNCH_PANELS_ACTIVATED);
getPortalUiController().broadcastVetoableViewEvent(getFocusView(),
@@ -238,8 +235,6 @@ public class PortalApplication
{
launchPanelsActivated = false;
- closeOverflowTabIframePopup();
-
getPortalUiController().broadcastVetoableViewEvent(getFocusView(),
ViewEventType.LAUNCH_PANELS_DEACTIVATED);
@@ -262,8 +257,6 @@ public class PortalApplication
{
getPortalUiController().broadcastNonVetoablePerspectiveEvent(PerspectiveEventType.LAUNCH_PANELS_DEACTIVATED);
- closeOverflowTabIframePopup();
-
boolean success = getPortalUiController().broadcastVetoableViewEvent(getFocusView(),
ViewEventType.TO_BE_FULL_SCREENED);
if(!success)
@@ -320,8 +313,6 @@ public class PortalApplication
// broadcast activation events
setFocusView(getFocusView());
- closeOverflowTabIframePopup();
-
boolean success = getPortalUiController().broadcastVetoableViewEvent(getFocusView(),
ViewEventType.TO_BE_RESTORED_TO_NORMAL);
if(!success)
@@ -430,23 +421,6 @@ public class PortalApplication
}
/**
- * Opens the overFlow view selected from the Iframe and closes iframe and renders the
- * session
- */
- public void openOverflowView()
- {
- FacesContext context = FacesContext.getCurrentInstance();
- String viewUrl = (String) context.getExternalContext().getRequestParameterMap().get("viewUrl");
- openView(viewUrl, null);
-
- if (overflowTabPopupOpened)
- {
- closeOverflowTabIframePopup();
- }
-
- }
-
- /**
* @param viewUrl
* @param messageBean
*/
@@ -995,8 +969,6 @@ public class PortalApplication
pinViewOpened = !pinViewOpened;
launchPanelsActivated = !pinViewOpened;
- closeOverflowTabIframePopup();
-
if(pinViewOpened)
{
if(fullScreenModeActivated)
@@ -1063,8 +1035,6 @@ public class PortalApplication
addDummyOverflowView();
}
- closeOverflowTabIframePopup();
-
int index = view != null ? displayedViews.indexOf(view) : -1;
setViewIndex(index);
if(index >= 0)
@@ -1388,30 +1358,6 @@ public class PortalApplication
}
/**
- *
- * @return
- */
- public boolean isOverflowTabPopupOpened()
- {
- return overflowTabPopupOpened;
- }
-
- /**
- *
- */
- public void toggleOverflowTabIframePopup()
- {
- if (overflowTabPopupOpened)
- {
- closeOverflowTabIframePopup();
- }
- else
- {
- openOverflowTabIframePopup();
- }
- }
-
- /**
* @return
*/
public String getOverflowTabIframePopupId()
@@ -1429,54 +1375,6 @@ public class PortalApplication
return advanceArgs;
}
- /**
- *
- */
- public void openOverflowTabIframePopup()
- {
- String iFrameId = getOverflowTabIframePopupId();
- String url = "'" + FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath()
- + "/plugins/common/overflowTabIframePopup.iface?random=" + System.currentTimeMillis() + "'";
-
- String script = "InfinityBpm.ProcessPortal.createOrActivateContentFrame(" + iFrameId + ", " + url + ", "
- + getOverflowTabIframePopupArgs() + ");";
- PortalApplication.getInstance().addEventScript(script);
- JavascriptContext.addJavascriptCall(FacesContext.getCurrentInstance(), script);
- overflowTabPopupOpened = true;
- }
-
- /**
- * closes the popup from portal application like completing activity
- */
- public void closeOverflowTabIframePopup()
- {
- if (overflowTabPopupOpened)
- {
- String iFrameId = getOverflowTabIframePopupId();
- String script = "InfinityBpm.ProcessPortal.closeContentFrame(" + iFrameId + ");";
-
- PortalApplication.getInstance().addEventScript(script);
- JavascriptContext.addJavascriptCall(FacesContext.getCurrentInstance(), script);
-
- overflowTabPopupOpened = false;
- }
- }
-
- /**
- * closes the popup in case any menu option from the popup is selected
- */
- public void closeOverflowTabIframePopupSelf()
- {
- if (overflowTabPopupOpened)
- {
- String iFrameId = getOverflowTabIframePopupId();
- String script = "parent.ippPortalMain.InfinityBpm.ProcessPortal.closeContentFrame(" + iFrameId + ");";
-
- JavascriptContext.addJavascriptCall(FacesContext.getCurrentInstance(), script);
-
- overflowTabPopupOpened = false;
- }
- }
/**
* @param view
diff --git a/portal-common/src/main/resources/META-INF/faces-config.xml b/portal-common/src/main/resources/META-INF/faces-config.xml
index 539dd0b..9bdb9d2 100644
--- a/portal-common/src/main/resources/META-INF/faces-config.xml
+++ b/portal-common/src/main/resources/META-INF/faces-config.xml
@@ -35,24 +35,6 @@
</navigation-rule>
<navigation-rule>
- <from-view-id>/plugins/common/main.xhtml</from-view-id>
- <navigation-case>
- <from-outcome>pageRefresh</from-outcome>
- <to-view-id>/plugins/common/main.iface</to-view-id>
- <redirect/>
- </navigation-case>
- </navigation-rule>
-
- <navigation-rule>
- <from-view-id>/plugins/common/portalMain.xhtml</from-view-id>
- <navigation-case>
- <from-outcome>pageRefresh</from-outcome>
- <to-view-id>/plugins/common/portalMain.iface</to-view-id>
- <redirect/>
- </navigation-case>
- </navigation-rule>
-
- <navigation-rule>
<from-view-id>/businessControlCenter.xhtml</from-view-id>
<navigation-case>
<from-outcome>pageRefresh</from-outcome>
diff --git a/portal-common/src/main/resources/META-INF/xhtml/main.xhtml b/portal-common/src/main/resources/META-INF/xhtml/main.xhtml
deleted file mode 100644
index 2f8d76a..0000000
--- a/portal-common/src/main/resources/META-INF/xhtml/main.xhtml
+++ /dev/null
@@ -1,43 +0,0 @@
-<f:view xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ice="http://www.icesoft.com/icefaces/component">
-<ice:outputDeclaration doctypeRoot="HTML"
- doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
-
-<html style="width: 100%; height: 100%">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
- <title>#{ippPortalApp.portalHeader}</title>
- <link rel="shortcut icon"
- href="#{facesContext.externalContext.requestContextPath}/plugins/common/images/icons/favicon.ico"></link>
- <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/plugins/common/InfinityBPMI18N.js" />
- <script>
- InfinityBPMI18N.initPluginProps({
- pluginName : "common",
- singleEndPoint : "#{facesContext.externalContext.requestContextPath}/services/rest/common/properties/portal-common-client-messages/#{ippPortalApp.localeString}"
- });
- </script>
- <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/plugins/common/InfinityBpm_Core.js" />
- <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/plugins/common/eventHub.js" />
- <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/plugins/common/iDnD.js" />
- <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/plugins/common/iPopupDialog.js" />
-</head>
-<body style="margin: 0pt;" onload="iDnD.init();">
- <div id="ippPortalMainContainer" style="position: relative;">
- <iframe id="ippPortalMain" name="ippPortalMain"
- frameborder="0" marginwidth="0" marginheight="0"
- src="#{facesContext.externalContext.requestContextPath}/plugins/common/portalMain.iface"
- style="width: 100%; height: 100%;"
- onLoad="InfinityBpm.Core.onPortalMainLoaded(event);"></iframe>
- </div>
- <div>
- <ice:form id="timerForm">
- <ice:inputHidden id="timerInvoked" value=""
- valueChangeListener="#{timerManager.processTimerEvent}"
- partialSubmit="true" immediate="true" />
- </ice:form>
- </div>
- <div id="ippPortalOverlays" style="position: absolute; top: 0px; left: 0px; width: 0px; height: 0px;"></div>
-</body>
-</html>
-</f:view> \ No newline at end of file
diff --git a/portal-common/src/main/resources/META-INF/xhtml/overflowTabIframePopup.xhtml b/portal-common/src/main/resources/META-INF/xhtml/overflowTabIframePopup.xhtml
deleted file mode 100644
index a424e08..0000000
--- a/portal-common/src/main/resources/META-INF/xhtml/overflowTabIframePopup.xhtml
+++ /dev/null
@@ -1,85 +0,0 @@
-<f:view xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ice="http://www.icesoft.com/icefaces/component"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:fn="http://java.sun.com/jsp/jstl/functions">
-
- <ice:outputDeclaration doctypeRoot="HTML"
- doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
-
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
-
- <script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
-
- <ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
- <ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
- <ice:outputStyle href="/plugins/common/css/nirvanaPortal.css" />
- <ice:outputStyle href="/plugins/common/css/portalComponentStyle.css" />
-
- <c:forEach items="#{ippPortalApp.skinFiles}" var="skinFile">
- <ice:outputStyle href="#{skinFile}" />
- </c:forEach>
-
- <script>
- function windowLoaded()
- {
- var iFrameId = #{ippPortalApp.overflowTabIframePopupId};
-
- if (iFrameId != '')
- {
- var advanceArgs = #{ippPortalApp.overflowTabIframePopupArgs};
- advanceArgs.width = document.documentElement.scrollWidth + 20;
- advanceArgs.height = document.documentElement.scrollHeight;
-
- parent.ippPortalMain.InfinityBpm.ProcessPortal.resizeAndRepositionContentFrame(iFrameId, advanceArgs);
- }
- }
- </script>
- </head>
- <body style="width: 100%; height: 100%; background-color: #FFFFE1;"
- onLoad="if(windowLoaded){windowLoaded()}">
- <ice:form>
- <ice:panelGroup style="background-color: #FFFFE1;">
- <ice:panelGrid columns="1">
- <c:forEach items="#{ippPortalApp.overflowedViews}" var="views">
- <ice:panelGrid columns="1">
- <ice:commandLink styleClass="action-link"
- style="font-weight: bold;"
- action="#{ippPortalApp.openOverflowView}">
- <f:param name="viewUrl" value="#{views.url}" />
- <ice:panelGrid columns="2">
- <ice:graphicImage value="#{views.icon}" />
- <ice:outputText value="#{views.label}"
- style="white-space: nowrap;" />
- </ice:panelGrid>
- </ice:commandLink>
- </ice:panelGrid>
- </c:forEach>
-
- <!-- "viewLoop.last" doesn't work, hence "viewLoop.index" is a workaround -->
- <c:forEach items="#{ippPortalApp.displayedViews}" var="view"
- varStatus="viewLoop">
- <ice:panelGrid columns="1">
- <ice:commandLink action="#{ippPortalApp.openOverflowView}"
- styleClass="action-link"
- rendered="#{viewLoop.index lt (ippPortalApp.displayedViewsSize - 1)}">
- <f:param name="viewUrl" value="#{view.url}" />
- <ice:panelGrid columns="2">
- <ice:graphicImage value="#{view.icon}" />
- <ice:outputText value="#{view.label}"
- style="white-space: nowrap;" />
- </ice:panelGrid>
- </ice:commandLink>
- </ice:panelGrid>
- </c:forEach>
- </ice:panelGrid>
- </ice:panelGroup>
- </ice:form>
- </body>
- </html>
-</f:view> \ No newline at end of file
diff --git a/portal-common/src/main/resources/META-INF/xhtml/perspectiveMenuIframePopup.xhtml b/portal-common/src/main/resources/META-INF/xhtml/perspectiveMenuIframePopup.xhtml
index 99fe136..94d287e 100644
--- a/portal-common/src/main/resources/META-INF/xhtml/perspectiveMenuIframePopup.xhtml
+++ b/portal-common/src/main/resources/META-INF/xhtml/perspectiveMenuIframePopup.xhtml
@@ -14,9 +14,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
-<script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
-
<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaPortal.css" />
diff --git a/portal-common/src/main/resources/META-INF/xhtml/portalContent.xhtml b/portal-common/src/main/resources/META-INF/xhtml/portalContent.xhtml
deleted file mode 100644
index 84b03e3..0000000
--- a/portal-common/src/main/resources/META-INF/xhtml/portalContent.xhtml
+++ /dev/null
@@ -1,81 +0,0 @@
-<f:view xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ice="http://www.icesoft.com/icefaces/component"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:fn="http://java.sun.com/jsp/jstl/functions"
- xmlns:pc="http://www.sungard.de/carnot/web/portal-plugin/portalcommon">
-
- <ice:panelGroup styleClass="contentContainer">
-
- <!-- ***** NORMAL SCREEN MODE ***** -->
- <c:if test="#{!ippPortalApp.fullScreenModeActivated}">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; height: 100%">
- <tr>
- <c:if test="#{ippPortalApp.launchPanelsActivated}">
- <td class="leftContentTd">
- <ui:include src="portalLaunchPanels.xhtml" />
- </td>
- </c:if>
- <td class="rightContentTd">
- <ui:include src="portalToolbar.xhtml" />
- <ui:include src="portalBreadCrumb.xhtml" />
- <div id="PortalContent" class="content">
- <f:subview id="subView">
- <ice:panelGroup>
- <ice:form partialSubmit="false">
- <ui:include src="portalViewToolbar.xhtml" />
- <c:if test="#{not ippPortalApp.pinViewOpened}">
- <ui:include src="portalTabDisplayMode.xhtml" />
- </c:if>
- <c:if test="#{ippPortalApp.pinViewOpened}">
- <ui:include src="portalPinViewDisplayMode.xhtml" />
- </c:if>
- </ice:form>
- </ice:panelGroup>
- </f:subview>
- </div>
- </td>
- </tr>
- </table>
- </c:if>
-
- <!-- ***** FULL SCREEN MODE ***** -->
- <c:if test="#{ippPortalApp.fullScreenModeActivated}">
- <ui:include src="portalToolbar.xhtml" />
- <ice:form partialSubmit="false">
- <ui:include src="portalViewToolbar.xhtml" />
- <table cellpadding="0" cellspacing="0" style="width: 100%;border-bottom: 1px solid #dbdbdb;">
- <tr style="border-bottom: 1px solid #dbdbdb;" class="panel-header-selected">
- <td style="white-space: nowrap">
- <ice:outputText value="#{ippPortalApp.focusView.fullLabel}" />
- </td>
-
- <!-- Filler TD -->
- <td style="width: 100%" />
-
- <td style="text-align: right; white-space: nowrap">
- <ice:panelGroup styleClass="toolbarGroupRight">
- <pc:automationTag value="auto-FW-ToolbarBtnsCloseFullScreen" standAlone="false" />
- <ice:commandButton
- image="/plugins/common/images/icons/tab-bttn-minimize.png"
- action="#{ippPortalApp.deactivateFullScreenMode}"
- styleClass="icon-style" style="width:14px;height:13px;"
- title="#{common_msgPropsBean['portalFramework.view.closeFullScreen']}" />
- </ice:panelGroup>
- </td>
- </tr>
- </table>
- <ice:panelGroup styleClass="contentFullScreen">
- <pc:tabScoped currentTab="#{ippPortalApp.activeView}">
- <ui:include src="portalUserDefinedInclude.xhtml">
- <ui:param name="includeFilePath" value="#{ippPortalApp.activeView.path}" />
- </ui:include>
- </pc:tabScoped>
- </ice:panelGroup>
- </ice:form>
- </c:if>
- <div id="ippPortalEndContent"></div>
- </ice:panelGroup>
-
-</f:view> \ No newline at end of file
diff --git a/portal-common/src/main/resources/META-INF/xhtml/portalFooter.xhtml b/portal-common/src/main/resources/META-INF/xhtml/portalFooter.xhtml
deleted file mode 100644
index bb85d2d..0000000
--- a/portal-common/src/main/resources/META-INF/xhtml/portalFooter.xhtml
+++ /dev/null
@@ -1,17 +0,0 @@
-<f:view xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ice="http://www.icesoft.com/icefaces/component"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:fn="http://java.sun.com/jsp/jstl/functions">
-
- <ice:form partialSubmit="false">
- <ice:panelGroup styleClass="footer">
- <span class="copyright-symbol">&#169;</span>
- <span class="copyright-message">#{ippPortalApp.copyrightMessage}</span>
- <c:if test="#{not empty ippPortalApp.version}">
- <span class="product-version">(#{ippPortalApp.version})</span>
- </c:if>
- </ice:panelGroup>
- </ice:form>
-</f:view> \ No newline at end of file
diff --git a/portal-common/src/main/resources/META-INF/xhtml/portalHeader.xhtml b/portal-common/src/main/resources/META-INF/xhtml/portalHeader.xhtml
deleted file mode 100644
index e9b61da..0000000
--- a/portal-common/src/main/resources/META-INF/xhtml/portalHeader.xhtml
+++ /dev/null
@@ -1,112 +0,0 @@
-<f:view xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ice="http://www.icesoft.com/icefaces/component"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:fn="http://java.sun.com/jsp/jstl/functions"
- xmlns:pc="http://www.sungard.de/carnot/web/portal-plugin/portalcommon">
-
- <c:if test="#{!ippPortalApp.fullScreenModeActivated}">
- <div class="banner">
- <ice:form partialSubmit="false">
- <table cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td>
- <ice:panelGroup rendered="#{not empty ippPortalUi.commonMenuIframeHandler.commonMenuLinks}">
- <ice:commandLink value="_____________"
- action="#{ippPortalUi.commonMenuIframeHandler.toggleCommonMenuIframePopup}"
- styleClass="commonMenuLnk">
- <pc:automationTag value="auto-FW-CommonMenu" standAlone="false" />
- </ice:commandLink>
- <div id="ippCommonMenuAnchor"></div>
- </ice:panelGroup></td>
- <td width="100%"></td>
- <td style="white-space: nowrap">
- <div class="userConsole">
- <table cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td width="70%"></td>
- <td style="white-space: nowrap" class="userName">
- <ice:outputText value="#{ippPortalApp.loggedInUser.displayName}">
- <pc:automationTag value="auto-FW-User" standAlone="false" />
- </ice:outputText>
- </td>
- <td style="white-space: nowrap" class="portalAlerts">
- <ui:include src="portalAlerts.xhtml" />
- </td>
- <td style="white-space: nowrap;">
- <pc:automationTag value="auto-FW-Logout" />
- <ice:commandLink value="#{common_msgPropsBean['portalFramework.logout']}"
- action="#{ippPortalApp.logout}" styleClass="logout portal-ui-session-control"/>
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- </table>
- </ice:form>
- </div>
-
- <div class="topMenu">
- <ice:form partialSubmit="false">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
- <tr>
- <td class="topMenuTd">
- <ice:panelGroup
- styleClass="topMenuIframeBar">
- <ice:panelGrid columns="2" styleClass="menuItm"
- style="margin-top:-2px;">
- <ice:commandLink
- action="#{ippPortalUi.perspectiveMenuIframeHandler.togglePopup}"
- style="margin-right:3px;">
- <ice:panelGroup style="padding-top: 1px; padding-right: 2px;">
- <ice:graphicImage
- value="/plugins/common/images/icons/trigger-perspective.png" />
- </ice:panelGroup>
- </ice:commandLink>
- <ice:commandLink value="#{ippPortalUi.perspective.label}"
- action="#{ippPortalUi.perspectiveMenuIframeHandler.togglePopup}"
- style="margin-right:3px;">
- <pc:automationTag value="auto-FW-PerspectiveMenu" standAlone="false" />
- </ice:commandLink>
- <div id="ippPerspectiveMenuAnchor"></div>
- </ice:panelGrid>
- </ice:panelGroup>
- </td>
-
- <td class="topMenuTd">
- <ice:menuBar styleClass="topMenuBar" orientation="horizontal" displayOnClick="true">
- <!-- HELP Menu Item -->
- <c:if test="#{not empty ippPortalApp.helpDocPreference}">
- <pc:automationTag value="auto-FW-HelpMenu" />
- <ice:menuItem value="#{common_msgPropsBean['portalFramework.menu.help']}">
- <ice:menuItem value="#{common_msgPropsBean['portalFramework.menu.help.documentation']}"
- onclick="var helpDocWin = window.open('#{facesContext.externalContext.requestContextPath}#{ippPortalApp.helpDocPreference.include}', 'helpDoc', 'scrollbars=1,status=1,toolbar=1,width=1024,height=768'); helpDocWin.focus(); return false;"/>
- </ice:menuItem>
- </c:if>
-
- <c:forEach items="#{ippPortalUi.perspective.menuSections}" var="menuSection">
- <ui:include src="portalUserDefinedInclude.xhtml">
- <ui:param name="includeFilePath" value="#{menuSection.include}" />
- </ui:include>
- </c:forEach>
- </ice:menuBar>
- </td>
-
- <td style="width: 100%" /> <!-- Filler TD -->
-
- <td class="topMenuTd">
- <ice:menuBar styleClass="topMenuBar">
- <pc:automationTag value="auto-FW-ConfigMenu" />
- <ice:menuItem id="configuration" action="#{ippPortalConfig.openConfiguration}"
- value="#{common_msgPropsBean['portalFramework.menu.configuration']}" />
- </ice:menuBar>
- </td>
- </tr>
- </table>
- </ice:form>
- </div>
- </c:if>
-
-</f:view> \ No newline at end of file
diff --git a/portal-common/src/main/resources/META-INF/xhtml/portalMain.xhtml b/portal-common/src/main/resources/META-INF/xhtml/portalMain.xhtml
deleted file mode 100644
index dd3082a..0000000
--- a/portal-common/src/main/resources/META-INF/xhtml/portalMain.xhtml
+++ /dev/null
@@ -1,78 +0,0 @@
-<f:view xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ice="http://www.icesoft.com/icefaces/component"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:c="http://java.sun.com/jstl/core"
- xmlns:fn="http://java.sun.com/jsp/jstl/functions">
-<ice:outputDeclaration doctypeRoot="HTML"
- doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
- doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
-<html>
-<head>
-
- <ui:include src="portalHead.xhtml" />
- <script type="text/javascript" src="#{facesContext.externalContext.requestContextPath}/plugins/common/js/thirdparty/json2.js" />
-
- <c:if test="#{not ippPortalApp.clientTimeZoneSet}">
- <script type="text/javascript">
- function loaded()
- {
- var visitortime = new Date();
- document.getElementById("clientZone:timeZone").value = visitortime.getTimezoneOffset();
- iceSubmitPartial(document.getElementById("clientZone"), document
- .getElementById("clientZone:timeZone"));
- }
- </script>
- </c:if>
-
- <c:if test="#{ippPortalApp.clientTimeZoneSet}">
- <script type="text/javascript">
- function loaded()
- {
- InfinityBpm.Core.setLogoutUri('#{ippPortalApp.logoutUri}');
- InfinityBpm.ProcessPortal.init();
- }
- </script>
- </c:if>
-
-</head>
-<body onresize="InfinityBpm.Core.onPortalMainResized();" onload="loaded()" style="overflow:hidden;">
- <c:if test="#{ippPortalApp.clientTimeZoneSet}">
- <div style="width: 100%; height: 100%">
- <table style="width:100%; height: 100%;" cellpadding="0" cellspacing="0">
- <tr>
- <td style="width:100%; height: 100%; vertical-align: top;">
- <ui:include src="portalHeader.xhtml" />
- <ui:include src="portalContent.xhtml" />
- <ui:include src="portalFooter.xhtml" />
- <ui:include src="portalMessageDialog.xhtml" />
- </td>
- <td>
- <div id="ippPortalContentWidthEnd"></div>
- </td>
- </tr>
- </table>
- <div id="messaging">
- <ice:form id="msgFrm">
- <ice:panelGroup>
- <ice:inputHidden id="messageData" value="#{ippPortalApp.messageBlank}"
- valueChangeListener="#{ippPortalApp.messageReceived}"
- partialSubmit="true" immediate="true" />
- </ice:panelGroup>
- </ice:form>
- </div>
- <script id="postScripts" lang="javascript">
- #{ippPortalApp.eventScripts}
- </script>
- </div>
- </c:if>
- <c:if test="#{not ippPortalApp.clientTimeZoneSet}">
- <ice:form id="clientZone">
- <ice:inputHidden id="timeZone" value=""
- valueChangeListener="#{ippPortalApp.timeZoneChangeListener}"
- partialSubmit="true" immediate="true" />
- </ice:form>
- </c:if>
-</body>
-</html>
-</f:view> \ No newline at end of file
diff --git a/portal-common/src/main/resources/META-INF/xhtml/views/toolbar/commonMenuIframePopup.xhtml b/portal-common/src/main/resources/META-INF/xhtml/views/toolbar/commonMenuIframePopup.xhtml
index fb3f81b..dbee954 100644
--- a/portal-common/src/main/resources/META-INF/xhtml/views/toolbar/commonMenuIframePopup.xhtml
+++ b/portal-common/src/main/resources/META-INF/xhtml/views/toolbar/commonMenuIframePopup.xhtml
@@ -14,9 +14,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
-<script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
-
<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaPortal.css" />
diff --git a/process-portal/src/main/resources/META-INF/xhtml/processportal/IppProcessPortal.js b/process-portal/src/main/resources/META-INF/xhtml/processportal/IppProcessPortal.js
deleted file mode 100644
index b879589..0000000
--- a/process-portal/src/main/resources/META-INF/xhtml/processportal/IppProcessPortal.js
+++ /dev/null
@@ -1,1055 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 SunGard CSA LLC and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * SunGard CSA LLC - initial API and implementation and/or initial documentation
- *******************************************************************************/
-if ( !window["InfinityBpm"]) {
-
- InfinityBpm = new function() {
-
- };
-
-} // !InfinityBpm
-
-var InfinityBpm = window["InfinityBpm"];
-
-var CONTENT_FRAME_CLOSE_DELAY = 100;
-
-if ( !InfinityBpm.ProcessPortal || !InfinityBpm.ProcessPortal.isFullApi()) {
-
-InfinityBpm.ProcessPortal = new function() {
-
- // Contains custom object like {id:'frmId1', posX: 20, posY: 30}
- var iFrames = new Array();
-
- var mainIppWindow = null;
-
- // define module private functions
-
- var PEPPER_FRAMES = ["processDefinitionFrameAnchor", "dataFrameAnchor" , "camelApplicationFrameAnchor", "conditionalPerformerFrameAnchor",
- "genericApplicationFrameAnchor", "messageTransformationApplicationFrameAnchor", "modelFrameAnchor",
- "organizationFrameAnchor", "roleFrameAnchor", "uiMashupApplicationFrameAnchor", "webServiceApplicationFrameAnchor",
- "xsdStructuredDataTypeFrameAnchor"];
- var PORTAL_FRAMES = ["ippActivityPanelAnchor", "tiffViewerIframe"];
- //do not resize iframes if following Iframes are active
- var PORTAL_FRAMES_RESIZE_NOT_REQUIRED = ["ippCommonMenuAnchor", "ippPerspectiveMenuAnchor", "ippNotesAnchor", "ippOverflowTabAnchor",
- "ippQualityAssuranceCodesAnchor", "ippSwitchAnchor", "ippCaseAnchor", "ippProcessAttachmentsAnchor",
- "ippLinkedProcessAnchor"];
-
- function debug(msg) {
- //alert(msg);
- }
-
- /*
- * Called on potalMain.xhtml body onload
- */
- function init() {
- var portalWin = ippPortalWindow();
- portalWin.onscroll = function(event){
- handleScroll();
- };
-
- registerMessageHandler();
- }
-
- /*
- * Registers message handler for postMessage() API
- */
- function registerMessageHandler() {
- try {
- var ippPortalWin = ippPortalWindow();
- var ippMainWind = ippMainWindow();
-
- if (ippPortalWin.postMessage) {
- if (ippPortalWin.addEventListener) {
- //alert('Subscribing for postMessage ..');
- ippPortalWin.addEventListener("message", handleRemoteControlMessage, true);
-
- // main window will just forward to portal window
- ippMainWind.addEventListener("message", handleRemoteControlMessage, true);
- } else if (ippPortalWin.attachEvent) {
- //alert('Attaching to onmessage event ..');
- ippPortalWin.attachEvent("onmessage", handleRemoteControlMessage);
-
- // main window will just forward to portal window
- ippMainWind.attachEvent("onmessage", handleRemoteControlMessage);
- } else {
- debug("This browser does not support safe cross iframe messaging.");
- }
- } else {
- debug("This browser does not support safe cross iframe messaging.");
- }
- } catch (e) {
- alert(getMessage("portal.common.js.safeCrossDomainMessaging.enable.failed", 'Failed enabling safe cross domain iframe messaging: ') + e.message);
- }
- }
-
- /*
- * Adjusts all active iFrames as per current browser scroll position
- */
- function handleScroll() {
- doWithContentFrame(null, function(contentFrame) {
- if (contentFrame.style.display == 'inline') {
- try {
- var scrollX = 0;
- var scrollY = 0;
- var portalWin = ippPortalWindow();
- if (navigator.appName == 'Netscape') {
- scrollX = portalWin.pageXOffset;
- scrollY = portalWin.pageYOffset;
- } else if (navigator.appName == 'Microsoft Internet Explorer') {
- scrollX = portalWin.document.documentElement.scrollLeft;
- scrollY = portalWin.document.documentElement.scrollTop;
- }
-
- var iFrame = getIframe(contentFrame.getAttribute('name'));
- if (iFrame != null) {
- var newX = iFrame.posX - scrollX;
- var newY = iFrame.posY - scrollY;
-
- var diffX = getAbsoluteSize(contentFrame.style.left) - newX;
- if (diffX < 0) {
- diffX = -diffX;
- }
-
- var diffY = getAbsoluteSize(contentFrame.style.top) - newY;
- if (diffY < 0) {
- diffY = -diffY;
- }
-
- // It's observed that sometimes scrollX/scrollY is 1 when there is no scroll on UI.
- // Also, 1px is very small, can be ignored. So check if it's greater than 1
- if (diffX > 1 || diffY > 1) {
- contentFrame.style.left = newX + "px";
- contentFrame.style.top = newY + "px";
- }
- }
- } catch(e) {
- alert(getMessage("portal.common.js.scroll.error", "Error in handling browser scroll - ") + e.message);
- }
- }
- });
- }
-
- function getAbsoluteSize(size) {
- if (size.indexOf('px') != -1) {
- return size.substr(0, size.indexOf('px'));
- } else {
- return size;
- }
- }
-
- function getIframe (id) {
- for (var i = 0; i < iFrames.length; i++) {
- if (iFrames[i].id == id) {
- return iFrames[i];
- }
- }
- return null;
- }
-
- function getIframeIndex (id) {
- for (var i = 0; i < iFrames.length; i++) {
- if (iFrames[i].id == id) {
- return i;
- }
- }
- return -1;
- }
-
- function addIframe (id, posX, posY) {
- var iFrame = {id: id, posX: posX, posY: posY};
- var index = getIframeIndex(id);
- if (index == -1) {
- iFrames.push(iFrame);
- } else {
- iFrames.splice(index, 1, iFrame);
- }
- }
-
- function removeIframe (id) {
- var index = getIframeIndex(id);
- if (index != -1) {
- iFrames.splice(index, 1);
- return true;
- }
-
- return false;
- }
-
- function logIframes(txt) {
- var msg = "iFRAMES ";
- msg += (txt != undefined) ? txt : "";
- console.log("%s: Frames Count = %d", msg, iFrames.length);
-
- for (var i = 0; i < iFrames.length; i++) {
- console.log("%s: Frames[%d] = %s %d %d", msg, i, iFrames[i].id, iFrames[i].posX, iFrames[i].posY );
- }
- }
-
- // >>> Copied from InfinityBpm_Core - START
- function isThisIppWindow(win) {
- var baseLocation = String(win.document.location);
-
- // Remove Query Params
- if (-1 != baseLocation.indexOf("?")) {
- baseLocation = baseLocation.substr(0, baseLocation.indexOf("?"));
- }
-
- // Remove # Params
- if (-1 != baseLocation.indexOf("#")) {
- baseLocation = baseLocation.substr(0, baseLocation.indexOf("#"));
- }
-
- // Check url, it should either read main.iface or login.iface
- if (-1 != baseLocation.indexOf("main.iface") ||
- -1 != baseLocation.indexOf("login.iface") ||
- -1 != baseLocation.indexOf("main.html")) {
- return true;
- }
- else{
- return false;
- }
- }
-
- function findIppWindow(win){
- if (!isThisIppWindow(win)) {
- var frames = win.frames;
- for(var i=0; i< frames.length; i++) {
- var ippWindow = findIppWindow(frames[i]);
- if (ippWindow != null) {
- return ippWindow;
- }
- }
- return null;
- }
- else{
- return win;
- }
- }
-
- function findIppWindowBottomUp(win){
- if (!isThisIppWindow(win)) {
- if (win.parent != null && win.parent != win) {
- return findIppWindowBottomUp(win.parent);
- }
- }
- else{
- return win;
- }
- }
-
- function getIppWindow() {
- try {
- var ippWindow = findIppWindowBottomUp(window);
- if (ippWindow == null && window.opener != null) {
- ippWindow = findIppWindowBottomUp(window.opener);
- }
- return ippWindow;
- } catch (x) {
- alert(getMessage("portal.common.js.ippMainWindow.notFound", "Error getting IPP Main Window. Portal will not properly work.") + "\n" + x);
- return null;
- }
- }
- // >>> Copied from InfinityBpm_Core - END
-
- function ippMainWindow() {
- if (null != mainIppWindow) {
- return mainIppWindow;
- }
-
- var ippWindow;
- if (InfinityBpm && InfinityBpm.Core) {
- ippWindow = InfinityBpm.Core.getIppWindow();
- } else {
- ippWindow = getIppWindow();
- }
- mainIppWindow = ippWindow;
- return ippWindow;
- }
-
- function ippPortalWindow() {
- return ippMainWindow()["ippPortalMain"];
- }
-
- function isIppWindow(window) {
- return (window == ippMainWindow()) || (window == ippPortalWindow());
- }
-
- function closeEmbeddedActivityPanel(targetWindow, commandId) {
-
- //alert('Current window: ' + window.location);
- if (isIppWindow(window)) {
- //alert('In main window: ' + window.location);
- handleIppAiClosePanelCommandConfirmation(commandId);
- return;
- }
-
- if (targetWindow) {
- try {
-
- if (targetWindow.InfinityBpm.ProcessPortal) {
- //alert('Using direct invocation ... ');
-
- if ('complete' === commandId) {
- targetWindow.InfinityBpm.ProcessPortal.completeActivity();
- } else if ('qaPass' === commandId) {
- targetWindow.InfinityBpm.ProcessPortal.qaPassActivity();
- } else if ('qaFail' === commandId) {
- targetWindow.InfinityBpm.ProcessPortal.qaFailActivity();
- } else if ('suspendAndSave' === commandId) {
- targetWindow.InfinityBpm.ProcessPortal.suspendActivity(true);
- } else if ('suspend' === commandId) {
- targetWindow.InfinityBpm.ProcessPortal.suspendActivity(false);
- } else if ('abort' === commandId) {
- targetWindow.InfinityBpm.ProcessPortal.abortActivity();
- }
-
- return;
- } else {
- alert(getMessage("portal.common.js.infinityBpm.processPortal.notFound", 'Did not find InfinityBpm.ProcessPortal module in main page') + typeof targetWindow.InfinityBpm.ProcessPortal);
- }
- } catch (x1) {
- // probably forbidden to access location, assuming other page
- //alert('Failed invoking top level IPP function: ' + x1);
-
- }
-
- // trying postMessage
- try {
- if (targetWindow.postMessage) {
- //alert('Using post message ... ');
-
- targetWindow.postMessage(commandId, "*");
-
- return;
- }
- } catch (x2) {
- // failed using postMessage, fall back to FIM
- //alert('Failed invoking postMessage: ' + x2);
- }
-
- try {
- alert(getMessage("portal.common.js.browser.notSupported", 'Unfortunately this browser is currently not yet supported.'));
- return;
-
- ifrm = document.createElement("IFRAME");
- ifrm.setAttribute('style', 'display: none; width: 0px; height: 0px;');
- // TODO replace with dynamic URL determination
- ifrm.setAttribute("src", "http://localhost:9090/ipp/ipp/process/remoteControl/" + commandId + "EmbeddedActivityPanel.html");
- document.body.appendChild(ifrm);
- } catch (x3) {
- alert(getMessage("portal.common.js.crossDomainPanel.close.failed", 'Failed triggering cross domain panel close: ') + x3.description)
- }
- }
- }
-
- function handleIppAiClosePanelCommandConfirmation(commandId) {
- //alert("In IPP frame: " + window.location);
-
- var ippPortalDom = ippPortalWindow().document;
- var divRemoteControl = ippPortalDom.getElementById('ippProcessPortalActivityPanelRemoteControl');
- if ( !divRemoteControl) {
- alert(getMessage("portal.common.js.remoteControlInfrastructure.notFound", 'Could not find the IPP Process Portal Remote Control infrastructure.'));
- return
- }
-
- var fldCommandId = divRemoteControl.getElementsByTagName('input')[0];
- if (fldCommandId)
- {
- //alert("Setting commandId to " + commandId);
- fldCommandId.value = commandId;
-
- try
- {
- //alert('Blanked screen ...');
-
- if ('function' === typeof ippPortalWindow().submitForm) {
- // Trinidad
- ippPortalWindow().submitForm(fldCommandId.form, 1, {source: fldCommandId.id});
- } else if ('function' === typeof ippPortalWindow().iceSubmitPartial) {
- // ICEfaces
- ippPortalWindow().iceSubmitPartial(fldCommandId.form, fldCommandId, null);
- }
-
- return;
- }
- catch (x) {
- alert(getMessage("portal.common.js.submitForm.failed", 'Failed submitting form: ') + x);
- }
- }
- else {
- alert(getMessage("portal.common.js.commandField.notFound", 'Could not find the command field.'));
- }
- }
-
- function handleRemoteControlMessage(e) {
- //alert("Received event '" + e.data + "' from " + e.origin);
- // TODO: Check origin (e.origin) for Security
- var message = e.data;
- if ((typeof message === 'string' || message instanceof String)) {
- message = trim(message);
- if (message.startsWith("{") || message.startsWith("[")) {
- postMessageReceived(message);
- } else {
- // Backward compatible
- handleIppAiClosePanelCommandConfirmation(message);
- }
- } else if (typeof message === 'object') {
- postMessageReceived(message);
- }
- }
-
- function postMessageReceived(input) {
- var proceed = false;
- var jsonStr;
- try {
- if (typeof input === 'string' || input instanceof String){
- // String. So it will be Stringified JSON, Validation is done at serverside
- jsonStr = input;
- proceed = true;
- } else if (typeof input === 'object') {
- jsonStr = JSON.stringify(input);
- proceed = true;
- }
- } catch(x) {}
-
- if (proceed) {
- var messageDataInput = document.getElementById("msgFrm:messageData");
- messageDataInput.value = jsonStr;
- iceSubmitPartial(document.getElementById("msgFrm"), messageDataInput);
- } else {
- //alert("Post Error");
- }
- }
-
- function trim(str)
- {
- return str.replace(/^\s+|\s+$/g,'');
- }
-
- function doInstallRemoteControlApi()
- {
- if ( !isIppWindow(window)) {
- //debug('Not in main IPP frame');
- return;
- }
-
- if ( !ippMainWindow().InfinityBpm.ProcessPortal) {
-
- debug("Installing IPP activity panel browser API in main window.");
-
- // provide activity panel API at top frame
- ippMainWindow().InfinityBpm.ProcessPortal = new function() {
- return {
- completeActivity: function() {
- debug("Delegating complete() to portal frame.");
- ippPortalWindow().InfinityBpm.ProcessPortal.completeActivity();
- },
-
- qaPassActivity: function() {
- debug("Delegating qaPassActivity() to portal frame.");
- ippPortalWindow().InfinityBpm.ProcessPortal.qaPassActivity();
- },
-
- qaFailActivity: function() {
- debug("Delegating qaFailActivity() to portal frame.");
- ippPortalWindow().InfinityBpm.ProcessPortal.qaFailActivity();
- },
-
- suspendActivity: function(saveOutParams) {
- debug("Delegating suspend() to portal frame.");
- ippPortalWindow().InfinityBpm.ProcessPortal.suspendActivity(saveOutParams);
- },
-
- abortActivity: function() {
- debug("Delegating abort() to portal frame.");
- ippPortalWindow().InfinityBpm.ProcessPortal.abortActivity();
- }
- };
- };
- }
-
- //debug("Ready ..");
-
- var ippPortalDom = ippPortalWindow().document;
- var parentDiv = ippPortalDom.getElementById('ippProcessPortalActivityPanelRemoteControl');
-
- try {
-
- //debug("Parent DIV: " + parentDiv);
-
- if (parentDiv) {
-
- var clientApiContainer = parentDiv.getElementsByTagName('div');
- if ((null != clientApiContainer) && (0 < clientApiContainer.length)) {
- parentDiv.removeChild(clientApiContainer[0]);
- }
-
- // Nop : postMessage() API handles are already in place
- }
- } catch (e) {
- alert(getMessage("portal.common.js.remoteControlInfrastructure.enable.failed", 'Failed enabling IPP remote control infrastructure: ') + e.message);
- }
- }
-
- function findPosition(node) {
- var curleft = curtop = 0;
- do {
- curleft += node.offsetLeft;
- curtop += node.offsetTop;
- } while (node = node.offsetParent);
-
- var pos = new Object();
- pos.x = curleft;
- pos.y = curtop;
- return pos;
- }
-
- function doWithContentFrame(contentId, action) {
- var ippMainDom = ippMainWindow().document;
- var frameContainer = ippMainDom.getElementById('ippProcessPortalContentFrameContainer');
- if (frameContainer) {
- var frames = frameContainer.getElementsByTagName('iframe');
- for ( var i = 0; i < frames.length; i++) {
- var frame = frames[i];
- debug('Found content frame: ' + frame);
- if ( !contentId || (contentId == frame.getAttribute('name'))) {
- // invoke callback function
- action(frame);
- if (contentId != null) {
- break;
- }
- }
- }
- }
- }
-
- /*
- * advanceArgs Example:
- * {anchorId:'ippProcessAttachmentsAnchor', width:100, height:30, maxWidth:500, maxHeight:550,
- * "openOnRight:false, anchorXAdjustment:30, anchorYAdjustment:2, zIndex:200, border:'1px solid black'}
- */
- function activateContentFrame(contentId, advanceArgs) {
- debug("About to activate content frame with ID " + contentId);
-
- if (advanceArgs != undefined)
- {
- var anchorId = advanceArgs.anchorId;
- var width = advanceArgs.width;
- var height = advanceArgs.height;
- var openOnRight = advanceArgs.openOnRight;
- var anchorXAdjustment = advanceArgs.anchorXAdjustment;
- var anchorYAdjustment = advanceArgs.anchorYAdjustment;
- var zIndex = advanceArgs.zIndex;
- var border = advanceArgs.border;
- }
-
- doWithContentFrame(contentId, function(contentFrame) {
- debug("Activating content frame: " + contentFrame);
- var ippPortalDom = ippPortalWindow().document;
-
- var anchor = anchorId;
- if(anchor == undefined){
- anchor = 'ippActivityPanelAnchor';
- }
-
- var contentPanelAnchor = ippPortalDom.getElementById(anchor);
- if (contentPanelAnchor) {
- debug('Repositioning content frame: ' + contentId + ' (using anchor: ' + contentPanelAnchor + ')');
- var pos = findPosition(contentPanelAnchor);
- debug('Moving to (' + pos.x + ', ' + pos.y + ')');
-
- var iFrameWith = (width == undefined) ? contentPanelAnchor.offsetWidth : width;
- var iFrameHeight = (height == undefined) ? contentPanelAnchor.offsetHeight : height;
-
- openOnRight = (openOnRight == undefined) ? true : openOnRight;
- anchorXAdjustment = (anchorXAdjustment == undefined) ? 0 : anchorXAdjustment;
- anchorYAdjustment = (anchorYAdjustment == undefined) ? 0 : anchorYAdjustment;
-
- var posX = openOnRight ? pos.x : (pos.x - iFrameWith);
- posX += anchorXAdjustment;
- var posY = pos.y + anchorYAdjustment;
-
- contentFrame.style.position = 'absolute';
- contentFrame.style.left = posX + 'px';
- contentFrame.style.top = posY + 'px';
- contentFrame.style.width = iFrameWith + 'px';
- contentFrame.style.height = iFrameHeight + 'px';
- contentFrame.setAttribute('anchorId', anchor);
-
- if (border != undefined) {
- contentFrame.style.border = border;
- }
-
- if (zIndex != undefined) {
- contentFrame.style.zIndex = zIndex;
- }
-
- addIframe(contentId, posX, posY);
- // This is needed because if page is scrolled at the time of iFrame activation
- // Then it has to be readjusted for scroll position.
- handleScroll();
- }
-
- debug('Displaying content frame: ' + contentId);
- contentFrame.style.display = 'inline';
- });
- }
-
- /**
- * resize all iframes if applicable when main window resizes
- * And ajdust associated div
- */
- function resizeIFrames(params) {
- var gotActiveFrame = false;
- var stopResize = false;
-
- doWithContentFrame(null, function(contentFrame){
- if (contentFrame && 'inline' == contentFrame.style.display) {
- iFrameAnchor = contentFrame.getAttribute('anchorId');
- if (PORTAL_FRAMES_RESIZE_NOT_REQUIRED.indexOf(iFrameAnchor) > -1){
- stopResize = true;
- }
- }
- });
-
- if(stopResize){
- return gotActiveFrame;
- }
-
- doWithContentFrame(null, function(contentFrame){
- if (contentFrame && 'inline' == contentFrame.style.display) {
- iFrameAnchor = contentFrame.getAttribute('anchorId');
- if ('outlineAnchor' == iFrameAnchor){
- resizeModelerOutlineIFrame(contentFrame.id);
- }else if (PEPPER_FRAMES.indexOf(iFrameAnchor) > -1 || PORTAL_FRAMES.indexOf(iFrameAnchor) > -1){
- resizeIFrame({"id": contentFrame.id, "iFrameAnchor": iFrameAnchor}, params);
- gotActiveFrame = true;
- }
- }
- });
-
- return gotActiveFrame;
- }
-
- /**
- * resizes modeler Outline Iframe and adjust associated div
- */
- function resizeModelerOutlineIFrame(contentFrameId){
- debug('Resizing Modeler Outline IFrame: ' + contentFrameId);
- var ippPortalDom = ippPortalWindow().document;
- var outlineAnchor = ippPortalDom.getElementById('outlineAnchor');
-
- if(outlineAnchor && (InfinityBpm && InfinityBpm.Core)){
- //find current position on anchor div
- var heightDivOffsetTop = InfinityBpm.Core.getOffsetTop(outlineAnchor);
- //get available browser dimensions
- var windowSize = InfinityBpm.Core.getBrowserDimensions();
- // set hieght and width
- var dimensions = {};
- dimensions.height = windowSize.height - heightDivOffsetTop - 80;
- //dimensions.height = outlineAnchor.offsetHeight;
-
- dimensions.width = 280;
- dimensions.anchorId = 'outlineAnchor';
-
- activateContentFrame(contentFrameId, dimensions);
- outlineAnchor.style.height = (dimensions.height + 5) + 'px';
- outlineAnchor.style.width = (dimensions.width + 5) + 'px';
- }
- }
-
- /**
- * resizes Process Definition Iframe and adjust associated div
- */
- function resizeIFrame(contentFrame, params) {
-
- var contentFrameId = contentFrame.id;
- var iFrameAnchor = contentFrame.iFrameAnchor;
-
- debug('Resizing IFrame: ' + iFrameAnchor);
-
- var ippPortalDom = ippPortalWindow().document;
- var iFrameAnchorDiv = ippPortalDom.getElementById(iFrameAnchor);
-
- if(iFrameAnchorDiv && (InfinityBpm && InfinityBpm.Core)){
-
- var divOffsetTop = InfinityBpm.Core.getOffsetTop(iFrameAnchorDiv);
- var divOffsetLeft = InfinityBpm.Core.getOffsetLeft(iFrameAnchorDiv);
-
- var windowSize = InfinityBpm.Core.getBrowserDimensions();
-
- //adjust iframe height
- var dimensions = {};
- dimensions.height = (windowSize.height - divOffsetTop) - 80;
-
- //check if the modeler outline iframe is active
- var modelerOutlineIframeActive = false;
- doWithContentFrame(null, function(contentFrame){
- if (contentFrame && 'inline' == contentFrame.style.display) {
- iFrameAnchor = contentFrame.getAttribute('anchorId');
- if ('outlineAnchor' == iFrameAnchor){
- modelerOutlineIframeActive = true;
- }
- }
- });
-
- // adjust iframe height considering the launch panel height
- var launchPanelEndDiv = ippPortalDom.getElementById("ippPortalEndLP");
- if(launchPanelEndDiv && !(params && params.considerWindowSize) && !modelerOutlineIframeActive){
- var heightRelLaunch = launchPanelEndDiv.offsetTop * 0.90;
- if(heightRelLaunch > dimensions.height){
- dimensions.height = heightRelLaunch;
- }
- }
-
- //adjust iframe width
- dimensions.width = (windowSize.width - divOffsetLeft) - 45 ;
-
- // adjust iframe width considering the available portal content size
- if(!(params && params.considerWindowSize)){
- var portalConentDiv = ippPortalDom.getElementById("PortalContent");
- if(portalConentDiv && portalConentDiv.offsetWidth > dimensions.width){
- dimensions.width = portalConentDiv.offsetWidth * 0.95;
- }
- }
-
- dimensions.anchorId = iFrameAnchor;
-
- activateContentFrame(contentFrameId, dimensions);
-
- //public event only in case of Process Definition as contain internal design of divs
- if('processDefinitionFrameAnchor' == iFrameAnchor){
- window.parent.EventHub.events.publish('PROCESS_IFRAME_RESIZED', dimensions);
- }
- iFrameAnchorDiv.style.height = (dimensions.height + 5) + "px";
- iFrameAnchorDiv.style.width = (dimensions.width + 5) + "px";
- }
- }
-
- function resizeAndRepositionContentFrame(contentId, advanceArgs) {
- debug("About to resize and reposition content frame with ID " + contentId);
- doWithContentFrame(contentId, function(contentFrame) {
- activateContentFrame(contentId, advanceArgs);
-
- if (advanceArgs.width != undefined) {
- var newWidth = (advanceArgs.maxWidth != undefined && advanceArgs.maxWidth < advanceArgs.width) ? advanceArgs.maxWidth : advanceArgs.width;
- contentFrame.style.width = newWidth + 'px';
- }
-
- if (advanceArgs.height != undefined) {
- var newHeight = (advanceArgs.maxHeight != undefined && advanceArgs.maxHeight < advanceArgs.height) ? advanceArgs.maxHeight : advanceArgs.height;
- contentFrame.style.height = newHeight + 'px';
- }
- });
- }
-
- function deactivateContentFrame(contentId) {
- debug('About to hide content frame: ' + contentId);
- doWithContentFrame(contentId, function(contentFrame) {
- debug('Hiding content frame: ' + contentId);
- contentFrame.style.display = 'none';
- removeIframe(contentId);
- });
- if (InfinityBpm && InfinityBpm.Core){
- InfinityBpm.Core.resizePortalMainWindow();
- }
- }
-
- function closeContentFrame(contentId) {
- debug('About to close content frame: ' + contentId);
- doWithContentFrame(contentId, function(contentFrame) {
- debug('Closing content frame: ' + contentId);
- contentFrame.style.display = 'none';
-
- // Delayed removal of iFrame, This is a workaround for ICEfaces concurrent dom view issue with iFrames
- contentFrame.src = "about:blank";
- window.setTimeout(function() {
- if (contentFrame) {
- if (contentFrame.parentNode) {
- contentFrame.parentNode.removeChild(contentFrame);
- }
- }
- }, CONTENT_FRAME_CLOSE_DELAY);
-
- removeIframe(contentId);
-
- if (InfinityBpm && InfinityBpm.Core){
- InfinityBpm.Core.resizePortalMainWindow();
- }
- });
- }
-
- function invokeIppAiClosePanelCommand(wndEmbeddedWebApp, commandId) {
- try {
- //alert("Found embedded AI panel notification function: " + wndEmbeddedWebApp.performIppAiClosePanelCommand);
-
- wndEmbeddedWebApp.performIppAiClosePanelCommand(commandId);
- return;
- } catch (x) {
- // probably forbidden to access location, assuming other page
- alert(getMessage("portal.common.js.performIppAiClosePanelCommand.invoke.failed", 'Failed invoking performIppAiClosePanelCommand() function in target iFrame: ') + x.message);
- }
- }
-
- function sendIppAiClosePanelCommand(contentId, commandId) {
- doWithContentFrame(contentId, function(contentFrame) {
- // debug('Sending close command (' + commandId + ') to content frame: ' + contentId);
-
- var wndEmbeddedWebApp = contentFrame.contentWindow;
- if (wndEmbeddedWebApp) {
- if (wndEmbeddedWebApp.performIppAiClosePanelCommand) {
- // function is present, so proceed synchronously
- invokeIppAiClosePanelCommand(wndEmbeddedWebApp, commandId);
- } else if ( !wndEmbeddedWebApp.document || ('loading' == wndEmbeddedWebApp.document.readyState)) {
- // if function is not present, this typically means the iFrame content is currently being loaded, ..
- try {
- // ... so proceed asynchronously
- debug("Asynchronously sending close command: " + commandId);
- contentFrame.onload = function(event) {
- // unregister self to fire event only once
- debug("Loaded external Web App: " + event);
- event.target.onload = undefined;
-
- var wndEmbeddedWebApp = event.target.contentWindow;
- if (wndEmbeddedWebApp.performIppAiClosePanelCommand) {
- invokeIppAiClosePanelCommand(wndEmbeddedWebApp, commandId);
- } else {
- alert(getMessage("portal.common.js.performIppAiClosePanelCommand.notFound", "Did not find performIppAiClosePanelCommand() method in embedded AI panel's iFrame."));
- }
- };
- return;
- } catch (e) {
- alert(getMessage("portal.common.js.onloadHandler.register.failed", 'Failed registering <onload> handler: ') + e.message);
- }
- } else {
- alert(getMessage("portal.common.js.performIppAiClosePanelCommand.notFound", "Did not find performIppAiClosePanelCommand() method in embedded AI panel's iFrame."));
- }
- } else {
- alert(getMessage("portal.common.js.externalWebApp.iframe.resolve.failed", 'Failed resolving content window of external Web App iFrame.'));
- }
- });
- }
-
- function createOrActivateContentFrame(contentId, contentUrl, advanceArgs) {
-
- var ippMainDom = ippMainWindow().document;
- var frameContainer = ippMainDom.getElementById('ippProcessPortalContentFrameContainer');
- if ( !frameContainer) {
- frameContainer = ippMainDom.createElement('div');
- debug("Created content frame container:" + frameContainer);
- frameContainer.setAttribute('id', 'ippProcessPortalContentFrameContainer');
- ippMainDom.getElementById('ippPortalOverlays').appendChild(frameContainer);
- }
- debug("Resolved content frame container: " + frameContainer);
-
- var contentFrame;
- var frames = frameContainer.getElementsByTagName('iframe');
- for ( var i = 0; i < frames.length; i++) {
- var frame = frames[i];
- debug('Found content frame: ' + frame);
- if (contentId == frame.getAttribute('name')) {
- contentFrame = frame;
- } else {
- //frame.style.display = 'none';
- }
- }
-
- if ( !contentFrame) {
- // create content frame
- debug('Creating new content frame: ' + contentId);
-
- contentFrame = ippMainDom.createElement('iframe');
- contentFrame.setAttribute('id', contentId);
- contentFrame.setAttribute('name', contentId);
- contentFrame.setAttribute('frameBorder', '0');
- contentFrame.setAttribute('marginWidth', '0');
- contentFrame.setAttribute('marginHeight', '0');
- contentFrame.setAttribute('scrolling', 'auto');
- contentFrame.setAttribute('style', 'display: none; z-index:100; position: relative; top: 450px; left: 100px; width: 400px; height: 300px;');
- if (advanceArgs != undefined) {
- contentFrame.setAttribute('noUnloadWarning', advanceArgs.noUnloadWarning);
-
- // Loop through custom attributes and add those as well
- if (advanceArgs.frmAttrs) {
- var frmAttrs = advanceArgs.frmAttrs;
- for(var attr in frmAttrs) {
- if (attr) {
- contentFrame.setAttribute(attr, frmAttrs[attr]);
- }
- }
- }
- }
-
- contentFrame.setAttribute('src', contentUrl);
-
- frameContainer.appendChild(contentFrame);
- }
-
- activateContentFrame(contentId, advanceArgs);
- resizeIFrames();
- }
-
- function getMessage(messageProp, defaultMsg) {
- if (InfinityBPMI18N && InfinityBPMI18N.common)
- {
- var propVal = InfinityBPMI18N.common.getProperty(messageProp, defaultMsg);
- if (propVal && propVal != "")
- {
- return propVal;
- }
- }
-
- return defaultMsg;
- } //// interface
-
- return {
-
- isFullApi : function() {
- return true;
- },
-
- init : function() {
- init();
- },
-
- registerMessageHandler : function() {
- registerMessageHandler();
- },
-
- enableRemoteControlApi: function() {
- if (ippPortalWindow() == window) {
- doInstallRemoteControlApi();
- }
- },
-
- completeActivity: function() {
- try {
- if (ippPortalWindow() == window) {
- handleIppAiClosePanelCommandConfirmation('complete');
- } else {
- closeEmbeddedActivityPanel(ippPortalWindow(), 'complete');
- }
- } catch (e) {
- alert(getMessage("portal.common.js.activity.complete.failed", 'Failed completing activity: ') + e.message);
- }
- },
-
- qaPassActivity: function() {
- try {
- if (ippPortalWindow() == window) {
- handleIppAiClosePanelCommandConfirmation('qaPass');
- } else {
- closeEmbeddedActivityPanel(ippPortalWindow(), 'qaPass');
- }
- } catch (e) {
- alert(getMessage("portal.common.js.activity.qaPass.failed", 'Exception occurred while Quality Assurance Pass activity: ') + e.message);
- }
- },
-
- qaFailActivity: function() {
- try {
- if (ippPortalWindow() == window) {
- handleIppAiClosePanelCommandConfirmation('qaFail');
- } else {
- closeEmbeddedActivityPanel(ippPortalWindow(), 'qaFail');
- }
- } catch (e) {
- alert(getMessage("portal.common.js.activity.qaFail.failed", 'Exception occurred while Quality Assurance Fail activity: ') + e.message);
- }
- },
-
- suspendActivity: function(saveOutParams) {
- try {
- if (ippPortalWindow() == window) {
- handleIppAiClosePanelCommandConfirmation(saveOutParams ? 'suspendAndSave' : 'suspend');
- } else {
- closeEmbeddedActivityPanel(ippPortalWindow(), saveOutParams ? 'suspendAndSave' : 'suspend');
- }
- } catch (e) {
- alert(getMessage("portal.common.js.activity.suspend.failed", 'Failed suspending activity: ') + e.message);
- }
- },
-
- abortActivity: function() {
- try {
- if (ippPortalWindow() == window) {
- handleIppAiClosePanelCommandConfirmation('abort');
- } else {
- closeEmbeddedActivityPanel(ippPortalWindow(), 'abort');
- }
- } catch (e) {
- alert(getMessage("portal.common.js.activity.abort.failed", 'Failed aborting activity: ') + e.message);
- }
- },
-
- createOrActivateContentFrame: function(contentId, contentUrl, advanceArgs) {
- try {
- createOrActivateContentFrame(contentId, contentUrl, advanceArgs);
- } catch (e) {
- alert(getMessage("portal.common.js.contentFrame.activate.failed", 'Failed during content frame activation: ') + e.message);
- }
- },
-
- deactivateContentFrame: function(contentId) {
- try {
- deactivateContentFrame(contentId);
- } catch (e) {
- alert(getMessage("portal.common.js.contentFrame.deactivate.failed", 'Failed during content frame deactivation: ') + e.message);
- }
- },
-
- closeContentFrame: function(contentId) {
- try {
- closeContentFrame(contentId);
- } catch (e) {
- alert(getMessage("portal.common.js.contentFrame.close.failed", 'Failed during content frame close: ') + e.message);
- }
- },
-
- resizeContentFrame: function(contentId, advanceArgs) {
- try {
- activateContentFrame(contentId, advanceArgs);
- } catch (e) {
- alert(getMessage("portal.common.js.contentFrame.resize.failed", 'Failed during content frame resize: ') + e.message);
- }
- },
-
- resizeAndRepositionContentFrame: function(contentId, advanceArgs) {
- try {
- resizeAndRepositionContentFrame(contentId, advanceArgs);
- } catch (e) {
- alert(getMessage("portal.common.js.contentFrame.resize.failed", 'Failed during content frame resize: ') + e.message);
- }
- },
-
- resizeIFrames : function(params){
- try {
- return resizeIFrames(params);
- } catch (e) {
- alert(getMessage("portal.common.js.contentFrame.resize.failed", 'Failed during frame resize: ') + e.message);
- }
- },
-
- sendCloseCommandToExternalWebApp: function(contentId, commandId) {
- try {
- sendIppAiClosePanelCommand(contentId, commandId);
- } catch (e) {
- alert(getMessage("portal.common.js.externalWebApp.notify.failed", 'Failed notifying external Web App: ') + e.message);
- }
- },
-
- postMessage: function(input) {
- postMessageReceived(input);
- }
- };
-
-};
-
-} // !InfinityBpm.ProcessPortal \ No newline at end of file
diff --git a/process-portal/src/main/resources/META-INF/xhtml/processportal/integration/trinidad/facelet-panel-container.xhtml b/process-portal/src/main/resources/META-INF/xhtml/processportal/integration/trinidad/facelet-panel-container.xhtml
index 17f2961..8473c92 100644
--- a/process-portal/src/main/resources/META-INF/xhtml/processportal/integration/trinidad/facelet-panel-container.xhtml
+++ b/process-portal/src/main/resources/META-INF/xhtml/processportal/integration/trinidad/facelet-panel-container.xhtml
@@ -10,7 +10,6 @@
<tr:document id="processPortal" title="#{common_msgPropsBean.carnotTitle}">
<trh:script source="/plugins/processportal/integration/trinidad/util.js" type="text/javascript"/>
- <trh:script source="/plugins/processportal/IppProcessPortal.js" />
<trh:script source="/plugins/processportal/integration/iframe/iframe-panel-server-support.js" />
diff --git a/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/notesIframePopup.xhtml b/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/notesIframePopup.xhtml
index 597d6fb..5450372 100644
--- a/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/notesIframePopup.xhtml
+++ b/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/notesIframePopup.xhtml
@@ -14,8 +14,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<ui:include src="/plugins/common/I18NInclude.xhtml" />
- <script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
diff --git a/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/processAttachmentsIframePopup.xhtml b/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/processAttachmentsIframePopup.xhtml
index bd6721a..dba0a74 100644
--- a/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/processAttachmentsIframePopup.xhtml
+++ b/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/processAttachmentsIframePopup.xhtml
@@ -14,8 +14,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<ui:include src="/plugins/common/I18NInclude.xhtml" />
- <script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
diff --git a/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/qualityAssuranceCodesIframePopup.xhtml b/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/qualityAssuranceCodesIframePopup.xhtml
index 36f2a31..12225fb 100644
--- a/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/qualityAssuranceCodesIframePopup.xhtml
+++ b/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/qualityAssuranceCodesIframePopup.xhtml
@@ -14,8 +14,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<ui:include src="/plugins/common/I18NInclude.xhtml" />
-<script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
diff --git a/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/suspendActivityIframePopup.xhtml b/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/suspendActivityIframePopup.xhtml
index f5fadf8..0b31959 100644
--- a/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/suspendActivityIframePopup.xhtml
+++ b/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/suspendActivityIframePopup.xhtml
@@ -14,9 +14,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
- <script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
-
<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaPortal.css" />
diff --git a/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/suspendAndSaveIframePopup.xhtml b/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/suspendAndSaveIframePopup.xhtml
index 68c800e..b2f0984 100644
--- a/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/suspendAndSaveIframePopup.xhtml
+++ b/process-portal/src/main/resources/META-INF/xhtml/processportal/toolbar/suspendAndSaveIframePopup.xhtml
@@ -14,9 +14,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
- <script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
-
<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaPortal.css" />
diff --git a/views-common/src/main/resources/META-INF/xhtml/common/abortIframePopup.xhtml b/views-common/src/main/resources/META-INF/xhtml/common/abortIframePopup.xhtml
index 70c4656..bbd6a4d 100644
--- a/views-common/src/main/resources/META-INF/xhtml/common/abortIframePopup.xhtml
+++ b/views-common/src/main/resources/META-INF/xhtml/common/abortIframePopup.xhtml
@@ -14,9 +14,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
- <script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
-
<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaPortal.css" />
diff --git a/views-common/src/main/resources/META-INF/xhtml/common/caseIframePopup.xhtml b/views-common/src/main/resources/META-INF/xhtml/common/caseIframePopup.xhtml
index c4f1911..9fdbbff 100644
--- a/views-common/src/main/resources/META-INF/xhtml/common/caseIframePopup.xhtml
+++ b/views-common/src/main/resources/META-INF/xhtml/common/caseIframePopup.xhtml
@@ -14,9 +14,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
- <script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
-
<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaPortal.css" />
diff --git a/views-common/src/main/resources/META-INF/xhtml/common/linkedProcessIframePopup.xhtml b/views-common/src/main/resources/META-INF/xhtml/common/linkedProcessIframePopup.xhtml
index 1ca2490..759ba50 100644
--- a/views-common/src/main/resources/META-INF/xhtml/common/linkedProcessIframePopup.xhtml
+++ b/views-common/src/main/resources/META-INF/xhtml/common/linkedProcessIframePopup.xhtml
@@ -14,9 +14,6 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
- <script type="text/javascript"
- src="#{facesContext.externalContext.requestContextPath}/plugins/processportal/IppProcessPortal.js" />
-
<ice:outputStyle href="/plugins/common/css/nirvanaRime.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaRime-override.css" />
<ice:outputStyle href="/plugins/common/css/nirvanaPortal.css" />