6 Replies Latest reply: Jul 23, 2014 2:11 PM by Ron H. RSS

    WebCenter 11.1.1.7 Portal Spaces - External Link Issue

    Ron H.

      We have a organizational space created by another part of the team that has a navigation model with links to task flows and other internal resources.  Our part of the team is modifying the navigation menu to incorporate links to external https Oracle Forms/Reports apps. We are unable to get them to open these links in a new window.  We can get the link to open within the WebCenter Space, but regardless of the option we choose in the "Open Link in" field, we always get the same result.

       

      We are concerned it is a limitation as when we add the "https://" URL in the Path field on the Target tab, the Options tab no longer has "New Window" as an option in the drop down for the "Open Link in" field.  We get around this by updating the xml code directly adding:

       

      <attribute attributeId="Target" isKey="false" value="_blank"/>

       

      Here is the question: Does Webcenter allow you to have an external secure page link open in a new window?  If so, what configuration change is required to allow us to perform this?

       

      Thanks,

        • 1. Re: WebCenter 11.1.1.7 Portal Spaces - External Link Issue
          Daniel Merchán

          Hi

           

          If your navigation model implemented in your Page Template is not taking care about the Attributes set to the navigation items then it will not affect by the Navigation Model parameters configured.

           

          E.g: If you are using goLink then the targetFrame attribute should have the value configured in the Target atteibute of the navigation model.

           

          Please check how are you printing your navigation model and check the default pageTemplate of Custom Portal to know how is it using the attributes.

           

          I hope this helps.

          Regards.

          • 2. Re: WebCenter 11.1.1.7 Portal Spaces - External Link Issue
            Ron H.

            Daniel,

             

            Thank you for the reply, I will have to have you explain further as I am new to WebCenter and am still navigating all these terms and areas.

             

            In order to test things, I made a copy of the "Spaces Default Navigation Model" to use.

             


            OPTIONS tab

            The "open Link in" is manually set to _blank in the XML file and now displayed on the form.

            Redirect is unchecked.

             

            TARGET tab

            The path for the target is: https://xxxx.xxx/launchpad.htm

            The page template is a custom one created by the other team and here is the source code for it:

             

            <?xml version='1.0' encoding='UTF-8'?>

            <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:wcshell="http://xmlns.oracle.com/webcenter/shell" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:wcdc="http://xmlns.oracle.com/webcenter/spaces/taglib" xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable" xmlns:trh="http://myfaces.apache.org/trinidad/html" xmlns:rtc="http://xmlns.oracle.com/webcenter/collab/rtc" xmlns:pe="http://xmlns.oracle.com/adf/pageeditor">

               <af:pageTemplateDef var="attrs">

                  <af:xmlContent>

                     <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">

                        <display-name>WCSiteTemplateRRTopNav</display-name>

                        <facet>

                           <facet-name>auxiliary1</facet-name>

                        </facet>

                        <facet>

                           <facet-name>content</facet-name>

                        </facet>

                        <attribute>

                           <attribute-name>auxiliary1Size</attribute-name>

                           <attribute-class>int</attribute-class>

                           <default-value>200</default-value>

                        </attribute>

                        <attribute>

                           <attribute-name>fixedWidthFlowTemplate</attribute-name>

                           <attribute-class>java.lang.Boolean</attribute-class>

                           <default-value>#{not empty WCAppContext.currentPageTemplate.attributesMap['templateLayoutType'].value and WCAppContext.currentPageTemplate.attributesMap['templateLayoutType'].value == 'flow' ? true : false}</default-value>

                        </attribute>

                        <attribute>

                           <attribute-name>templateFixedWidth</attribute-name>

                           <attribute-class>java.lang.String</attribute-class>

                           <default-value>#{not empty WCAppContext.currentPageTemplate.attributesMap['templateFixedWidth'].value ? WCAppContext.currentPageTemplate.attributesMap['templateFixedWidth'].value : '1000'}</default-value>

                        </attribute>

                        <attribute>

                           <attribute-name>topPanelHeight</attribute-name>

                           <attribute-class>java.lang.String</attribute-class>

                           <default-value>#{not empty WCAppContext.currentPageTemplate.attributesMap['topPanelHeight'].value ? WCAppContext.currentPageTemplate.attributesMap['topPanelHeight'].value : '44'}</default-value>

                        </attribute>

                        <attribute>

                           <attribute-name>panelSeparatorHeight</attribute-name>

                           <attribute-class>java.lang.String</attribute-class>

                           <default-value>#{not empty WCAppContext.currentPageTemplate.attributesMap['panelSeparatorHeight'].value ? WCAppContext.currentPageTemplate.attributesMap['panelSeparatorHeight'].value : '14'}</default-value>

                        </attribute>

                        <attribute>

                           <attribute-name>panelFooterHeight</attribute-name>

                           <attribute-class>java.lang.String</attribute-class>

                           <default-value>#{WCAppContext.currentPageTemplate.attributesMap['panelFooterHeight'].value}</default-value>

                        </attribute>

                        <attribute>

                           <attribute-name>brandingImageUrl</attribute-name>

                           <attribute-class>java.lang.String</attribute-class>

                           <default-value>#{not empty WCAppContext.currentPageTemplate.attributesMap['brandingImageUrl'].value ? WCAppContext.currentPageTemplate.attributesMap['brandingImageUrl'].value : ''}</default-value>

                        </attribute>

                        <attribute>

                           <attribute-name>footerNavigationModelPath</attribute-name>

                           <attribute-class>java.lang.String</attribute-class>

                           <default-value>#{empty WCAppContext.currentPageTemplate.attributesMap['footerNavigationFile'].value ? '' :

                                            'modelPath='}#{empty WCAppContext.currentPageTemplate.attributesMap['footerNavigationFile'].value ? '' :

                                             WCAppContext.currentPageTemplate.attributesMap['footerNavigationFile'].value}</default-value>

                        </attribute>

                     </component>

                  </af:xmlContent>

                  <af:panelStretchLayout id="pt_psl5" topHeight="25px">

                     <f:facet name="center">

                        <af:panelStretchLayout id="pt_pgl3" styleClass="WCSiteTemplateRoot AFStretchWidth" topHeight="0" bottomHeight="0" startWidth="0" endWidth="0" dimensionsFrom="#{attrs.fixedWidthFlowTemplate ? 'children' : 'parent'}">

                           <f:facet name="top">

                              <af:panelGroupLayout id="pt_pgl6" layout="vertical">

                                 <af:panelGroupLayout id="top_globalContainer" layout="vertical" inlineStyle="height:0.0px;">

                                    <wcdc:siteTemplateMetadata type="start"/>

                                 </af:panelGroupLayout>

                                 <af:panelGroupLayout id="pprIndicator" inlineStyle="height:0.0px;" visible="false">

                                    <wcdc:spacesAction id="statusIndiWcLink" type="statusIndicator"/>

                                 </af:panelGroupLayout>

                              </af:panelGroupLayout>

                           </f:facet>

                           <f:facet name="center">

                              <af:panelStretchLayout id="pt_pgl5" styleClass="WCSiteTemplateBackground AFStretchWidth" dimensionsFrom="auto" topHeight="0px" startWidth="0px" endWidth="0px" bottomHeight="0px">

                                 <f:facet name="center">

                                    <af:panelStretchLayout id="pt_pgl51" topHeight="54" dimensionsFrom="auto" styleClass="AFStretchWidth" inlineStyle="#{attrs.fixedWidthFlowTemplate ? 'width:' : ''}#{attrs.fixedWidthFlowTemplate ? attrs.templateFixedWidth : ''}#{attrs.fixedWidthFlowTemplate ? 'px;margin:0px auto;' : ''}">

                                       <f:facet name="top">

                                          <af:decorativeBox id="db1" theme="webcenter" dimensionsFrom="auto" styleClass="WCSiteTemplateHeader" inlineStyle="#{attrs.fixedWidthFlowTemplate ? 'margin-top:8px;' : 'margin-left:1px;margin-right:1px;margin-top:8px;'}">

                                             <f:facet name="center">

                                                <af:panelBorderLayout id="gtbppbl1" styleClass="AFStretchWidth" inlineStyle="padding-top:3px; vertical-align:middle;">

                                                   <f:facet name="start">

                                                      <cust:panelCustomizable id="pcust1" layout="horizontal" inlineStyle="padding:0px;">

                                                         <af:panelGroupLayout valign="middle" id="pt_pgl7" layout="vertical">

                                                            <af:panelGroupLayout id="gtbrspmxpgl2" layout="horizontal">

                                                               <af:spacer width="15" height="10" id="pt_s5"/>

                                                               <af:switcher facetName="#{WCAppContext.currentScope.default ? 'defaultLogo' : 'spaceLogo'}">

                                                                  <f:facet name="defaultLogo">

                                                                     <af:goLink destination="#{boilerBean.globalLogoURI}" id="gtbpgl1" disabled="#{changeModeBean.inEditMode or serviceCtx.scope.spaceTemplate}">

                                                                        <af:switcher facetName="#{WCAppContext.application.applicationConfig.logo != null ? 'wcLogo' : 'defaultWcIcon'}" id="gtbps1">

                                                                           <f:facet name="wcLogo">

                                                                              <af:image source="#{WCAppContext.spacesResourcesPath}#{WCAppContext.application.applicationConfig.logo}" shortDesc="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_LOGO_DESC}" inlineStyle="height:24px;width:auto;background-image:none" id="gtbpi1"/>

                                                                           </f:facet>

                                                                           <f:facet name="defaultWcIcon">

                                                                              <af:image source="/adf/webcenter/webcenter_icon.png" shortDesc="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_LOGO_DESC}" inlineStyle="height:24px;width:auto;background-image:none" id="pt_i2"/>

                                                                           </f:facet>

                                                                        </af:switcher>

                                                                     </af:goLink>

                                                                  </f:facet>

                                                                  <f:facet name="spaceLogo">

                                                                     <af:goLink destination="#{boilerBean.globalLogoURIInSpace}" id="gtbrspmxgl1" disabled="#{changeModeBean.inEditMode or serviceCtx.scope.spaceTemplate}">

                                                                        <af:switcher facetName="#{serviceCtx.scope.space ? 'communityLogo' : serviceCtx.scope.spaceTemplate ? 'templateLogo' :'defaultCommunityLogo'}">

                                                                           <f:facet name="communityLogo">

                                                                              <af:image source="#{spaceContext.space[WCAppContext.currentScope.name].metadata.icon != null                                                                                           ? WCPrepareImageURL[spaceContext.space[WCAppContext.currentScope.name].metadata.icon]['ICON16']                                                                                            : '/adf/webcenter/webcenter_icon.png'}" shortDesc="#{uib_o_w_w_r_WebCenter.TAB_TITLE_HOME}" inlineStyle="height:24px;width:auto;background-image:none" id="gtbrspmxi1"/>

                                                                           </f:facet>

                                                                           <f:facet name="templateLogo">

                                                                              <af:image source="#{spaceTemplateManager.template[WCAppContext.currentScope.name].metadata.icon != null                                                                                           ? WCPrepareImageURL[spaceTemplateManager.template[WCAppContext.currentScope.name].metadata.icon]['ICON16']                                                                                            : '/adf/webcenter/webcenter_icon.png'}" shortDesc="#{uib_o_w_w_r_WebCenter.TAB_TITLE_HOME}" inlineStyle="height:24px;width:auto;background-image:none" id="templategtbrspmxi1"/>

                                                                           </f:facet>

                                                                           <f:facet name="defaultCommunityLogo">

                                                                              <af:image source="/adf/webcenter/webcenter_icon.png" shortDesc="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_LOGO_DESC}" inlineStyle="height:24px;width:auto;background-image:none" id="pt_i1"/>

                                                                           </f:facet>

                                                                        </af:switcher>

                                                                     </af:goLink>

                                                                  </f:facet>

                                                               </af:switcher>

                                                               <af:spacer width="5" height="10" id="pt_s7"/>

                                                               <af:goLink destination="#{WCAppContext.currentScope.default ? boilerBean.globalLogoURI : boilerBean.globalLogoURIInSpace}" id="gtbrspmxgl2" inlineStyle="border-width:0px; margin:0.0px;" disabled="#{serviceCtx.scope.spaceTemplate}">

                                                                  <af:outputText value="#{WCAppContext.currentScope.default ? WCTruncator[WCAppContext.application.applicationConfig.title]['30'] :                                                                                  WCTruncator[spaceContext.currentSpace.GSMetadata.displayName]['30']}" id="gtbrspmxot1" inlineStyle="color: white; font-size: 14px; font-weight: bold;" noWrap="true"/>

                                                               </af:goLink>

                                                            </af:panelGroupLayout>

                                                         </af:panelGroupLayout>

                                                      </cust:panelCustomizable>

                                                   </f:facet>

                                                   <af:panelBorderLayout id="gtbppbl2" styleClass="AFStretchWidth">

                                                      <f:facet name="end">

                                                         <af:panelGroupLayout layout="vertical" styleClass="AFBrandingBarItem" id="gtbppgl3" halign="end">

                                                            <af:panelGroupLayout layout="horizontal" id="globNavItms" valign="middle" halign="end" inlineStyle="height:24.0px;">

                                                               <cust:panelCustomizable id="pcust2" layout="horizontal" inlineStyle="padding:0px;" valign="middle">

                                                                  <af:region value="#{bindings.localToolbarSearch.regionModel}" id="searchbox"/>

                                                                  <af:spacer width="15" height="10" id="pt_s3"/>

                                                                  <wcdc:userProfile id="currUserWcLink" text="#{security.userDisplayName}" shortDesc="#{security.userDisplayName}" inlineStyle="white-space:nowrap;"/>

                                                                  <af:spacer styleClass="WCGlobalNavSeparator" rendered="#{security.authenticated}" id="gtbps31"/>

                                                                  <wcdc:spacesSwitcher id="wcCmdLinkGSSwit" __taskFlowId="createGroupSpaceRegion" inlineStyle="white-space:nowrap;" styleClass="WCLinkMenu" text="#{uib_o_w_s_r_Spaces.LABEL_COMMUNITIES}" shortDesc="#{uib_o_w_s_r_Spaces.LABEL_COMMUNITIES_DESC}" popupContentDelivery="immediate"/>

                                                                  <af:spacer width="10" id="gtbps4"/>

                                                                  <wcdc:favoritesMenu id="wcCmdLinkGSFav" __taskFlowId="favoritesTaskFlow" inlineStyle="white-space:nowrap;" text="#{uib_o_w_w_r_WebCenter.LABEL_FAVORITES}" shortDesc="#{uib_o_w_w_r_WebCenter.LABEL_FAVORITES_DESC}"/>

                                                                  <af:spacer styleClass="WCGlobalNavSeparator" id="gtbps32"/>

                                                                  <af:region value="#{bindings.languageSelectorRegion.regionModel}" id="lang" rendered="#{!security.authenticated}"/>

                                                                  <af:spacer width="10" id="gtbps5" rendered="#{!security.authenticated}"/>

                                                                  <wcdc:spacesAction id="wcAdminLink" type="administration" inlineStyle="white-space:nowrap;" text="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_ADMINISTRATION}" shortDesc="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_ADMINISTRATION_DESC}"/>

                                                                  <af:spacer width="10" id="gtbps52" rendered="#{security.webCenterConfigAllowed and security.authenticated}"/>

                                                                  <wcdc:userPreferences id="wcPreferLink" __taskFlowId="preferenceRegion" inlineStyle="white-space:nowrap;" text="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_PREFERENCES}" shortDesc="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_PREFERENCES_DESC}"/>

                                                                  <af:spacer styleClass="WCGlobalNavSeparator" id="gtbps33"/>

                                                                  <wcdc:spacesAction id="globalHelpWcLink" type="globalHelp" text="#{uib_o_w_w_r_WebCenter.LABEL_HELP}" shortDesc="#{uib_o_w_w_r_WebCenter.LABEL_HELP_DESC}" inlineStyle="white-space:nowrap"/>

                                                                  <af:spacer width="10" id="gtbps6" rendered="#{boilerBean.webCenterHelpConfigured}"/>

                                                                  <wcdc:spacesAction id="wcLogoutLink" type="logout" inlineStyle="white-space:nowrap" text="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_LOGOUT}" shortDesc="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_LOGOUT_DESC}"/>

                                                                  <af:spacer width="10" id="gtbps61" rendered="#{security.authenticated}"/>

                                                                  <wcdc:spacesAction id="wcLoginLink" type="login" inlineStyle="white-space:nowrap" text="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_LOGIN}" shortDesc="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_LOGIN}"/>

                                                                  <af:spacer width="10" id="gtbps62" rendered="#{changeModeBean.inEditMode or !security.authenticated}"/>

                                                                  <wcdc:spacesAction id="selfRegWcLink" type="selfRegistration" text="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_SELFREG}" shortDesc="#{uib_o_w_w_r_WebCenter.GLOBAL_LINK_SELFREG_DESC}" inlineStyle="white-space:nowrap"/>

                                                                  <af:spacer width="10" id="gtbps63" rendered="#{changeModeBean.inEditMode or                                             (WCAppContext.application.applicationConfig.publicregistrationEnabled and                                             !security.authenticated)}"/>

                                                               </cust:panelCustomizable>

                                                            </af:panelGroupLayout>

                                                            <trh:script id="edvkloastar54" text="                 function wcNavigate(event)                 {                   window.location = event.getSource().getProperty('wcDestination');                   event.cancel();                 }                 function wcLaunchWindow(event)                 {                   window.open(event.getSource().getProperty('wcDestination'));                   event.cancel();                 }               "/>

                                                         </af:panelGroupLayout>

                                                      </f:facet>

                                                   </af:panelBorderLayout>

                                                </af:panelBorderLayout>

                                             </f:facet>

                                          </af:decorativeBox>

                                       </f:facet>

                                       <f:facet name="center">

                                          <af:panelStretchLayout id="pt_psl3" styleClass="AFStretchWidth" topHeight="25px" bottomHeight="#{empty attrs.panelFooterHeight ? '33' : attrs.panelFooterHeight}" dimensionsFrom="auto">

                                             <f:facet name="top">

                                                <af:panelGroupLayout id="pt_pgl4" layout="vertical" styleClass="WCSiteTemplateTopNavPanel">

                                                   <cust:panelCustomizable id="pcustnav" layout="vertical" inlineStyle="padding:0px;">

                                                      <af:menuBar id="mb1">

                                                         <af:iterator id="i1" value="#{navigationContext.currentNavigationModel.listModel['startNode=/,                                                         includeStartNode=false']}" var="node">

                                                            <af:switcher id="s1" facetName="#{empty node.children ? 'leafNode' : 'parentNode'}">

                                                               <f:facet name="parentNode">

                                                                  <af:menu id="m1" text="#{node.title}" inlineStyle="#{node.onSelectedPath ? 'font-weight:bold;' : ''}">

                                                                     <af:iterator id="i2" value="#{node.children}" var="node2">

                                                                        <af:switcher id="s2" facetName="#{empty node2.children ? 'leafNode' : 'parentNode'}">

                                                                           <f:facet name="parentNode">

                                                                              <af:menu id="m2" text="#{node2.title}" inlineStyle="#{node2.onSelectedPath ? 'font-weight:bold;' : ''}">

                                                                                 <af:iterator id="i3" value="#{node2.children}" var="node3">

                                                                                    <af:commandMenuItem id="cml3" text="#{node3.title}" actionListener="#{navigationContext.processAction}" action="pprnav" icon="#{node3.attributes[pageFlowScope.tnBean.iconKey]}" disabled="#{not node3.navigable}" inlineStyle="#{node3.onSelectedPath ?                                                                                       'font-weight:bold;' : ''}">

                                                                                       <f:attribute name="node" value="#{node3}"/>

                                                                                    </af:commandMenuItem>

                                                                                 </af:iterator>

                                                                              </af:menu>

                                                                           </f:facet>

                                                                           <f:facet name="leafNode">

                                                                              <af:commandMenuItem id="cml1" text="#{node2.title}" actionListener="#{navigationContext.processAction}" action="pprnav" icon="#{node2.attributes[pageFlowScope.tnBean.iconKey]}" disabled="#{not node2.navigable}" inlineStyle="#{node2.onSelectedPath ?                                                                                   'font-weight:bold;' : ''}">

                                                                                 <f:attribute name="node" value="#{node2}"/>

                                                                              </af:commandMenuItem>

                                                                           </f:facet>

                                                                        </af:switcher>

                                                                     </af:iterator>

                                                                  </af:menu>

                                                               </f:facet>

                                                               <f:facet name="leafNode">

                                                                  <af:commandMenuItem id="cml2" text="#{node.title}" actionListener="#{navigationContext.processAction}" action="pprnav" icon="#{node.attributes[pageFlowScope.tnBean.iconKey]}" disabled="#{not node.navigable}" inlineStyle="#{node.onSelectedPath ? 'font-weight:bold;' : ''}">

                                                                     <f:attribute name="node" value="#{node}"/>

                                                                  </af:commandMenuItem>

                                                               </f:facet>

                                                            </af:switcher>

                                                         </af:iterator>

                                                      </af:menuBar>

                                                   </cust:panelCustomizable>

                                                </af:panelGroupLayout>

                                             </f:facet>

                                             <f:facet name="center">

                                                <af:panelStretchLayout id="pt_pglc" dimensionsFrom="auto" topHeight="auto" startWidth="0" styleClass="WCContent AFStretchWidth">

                                                   <f:facet name="start">

                                                      <af:panelGroupLayout id="pt_pgl9" layout="scroll" inlineStyle="#{attrs.fixedWidthFlowTemplate ? 'min-height:600.0px;' : ''}"/>

                                                   </f:facet>

                                                   <f:facet name="top">

                                                      <af:panelGroupLayout id="pt_pgl8" layout="vertical" inlineStyle="margin:#{attrs.panelSeparatorHeight}px 0px 0px">

                                                         <af:region value="#{bindings.spacesNavigationPageHeader.regionModel}" id="wcSpcInd"/>

                                                      </af:panelGroupLayout>

                                                   </f:facet>

                                                   <f:facet name="center">

                                                      <af:skipLinkTarget/>

                                                      <af:panelSplitter id="pt_ps1" splitterPosition="181" collapsed="false">

                                                         <f:facet name="first">

                                                            <af:panelStretchLayout id="panelStretchLayout1" dimensionsFrom="children">

                                                               <f:facet name="bottom"/>

                                                               <f:facet name="center">

                                                                  <af:panelGroupLayout layout="vertical" id="pt_pgl10">

                                                                     <af:panelStretchLayout id="pt_psl2" dimensionsFrom="children">

                                                                        <f:facet name="bottom"/>

                                                                        <f:facet name="center">

                                                                           <af:panelGroupLayout layout="vertical" id="pt_pgl12">

                                                                              <af:panelAccordion id="pt_pa1">

                                                                                 <af:showDetailItem id="pt_sdi1" stretchChildren="first" text="#{security.userDisplayName}" disclosed="true">

                                                                                    <af:panelGroupLayout id="pt_pgl15" layout="vertical">

                                                                                       <af:panelGroupLayout id="pt_pgl11" inlineStyle="height:300px; background-color:Green;">

                                                                                          <af:panelStretchLayout id="pt_psl4">

                                                                                             <f:facet name="center">

                                                                                                <f:verbatim>

                                                                                                   <table cellspacing="2" cellpadding="3" border="0" align="center" width="100%">

                                                                                                      <tr>

                                                                                                         <td width="100%">Unread

                                                                                                                          Alerts:</td>

                                                                                                      </tr>

                                                                                                      <tr>

                                                                                                         <td width="100%">Overdue

                                                                                                                          tasks:</td>

                                                                                                      </tr>

                                                                                                      <tr>

                                                                                                         <td width="100%">Pending

                                                                                                                          Tasks:</td>

                                                                                                      </tr>

                                                                                                   </table>

                                                                                                </f:verbatim>

                                                                                             </f:facet>

                                                                                          </af:panelStretchLayout>

                                                                                       </af:panelGroupLayout>

                                                                                    </af:panelGroupLayout>

                                                                                 </af:showDetailItem>

                                                                                 <af:showDetailItem id="showDetailItem1" text="Support" stretchChildren="first" disclosed="false">

                                                                                    <af:panelGroupLayout id="pt_pgl14" layout="vertical">

                                                                                       <af:panelGroupLayout id="panelGroupLayout4" inlineStyle="height:300px; background-color:Green;">

                                                                                          <af:panelStretchLayout id="panelStretchLayout5">

                                                                                             <f:facet name="center">

                                                                                                <f:verbatim>

                                                                                                   <table cellspacing="2" cellpadding="3" border="0" align="center" width="100%">

                                                                                                      <tr>

                                                                                                         <td width="100%">FAQs</td>

                                                                                                      </tr>

                                                                                                      <tr>

                                                                                                         <td width="100%">Knowledge

                                                                                                                          Base</td>

                                                                                                      </tr>

                                                                                                      <tr>

                                                                                                         <td width="100%">User

                                                                                                                          Guides</td>

                                                                                                      </tr>

                                                                                                      <tr>

                                                                                                         <td width="100%">Upcoming

                                                                                                                          Releases</td>

                                                                                                      </tr>

                                                                                                      <tr>

                                                                                                         <td width="100%">CAMIS

                                                                                                                          Help

                                                                                                                          Desk</td>

                                                                                                      </tr>

                                                                                                   </table>

                                                                                                </f:verbatim>

                                                                                             </f:facet>

                                                                                          </af:panelStretchLayout>

                                                                                       </af:panelGroupLayout>

                                                                                    </af:panelGroupLayout>

                                                                                 </af:showDetailItem>

                                                                                 <af:showDetailItem id="showDetailItem2" text="Common Links" stretchChildren="first" disclosed="false">

                                                                                    <af:panelGroupLayout id="pt_pgl13" layout="vertical">

                                                                                       <af:panelGroupLayout id="panelGroupLayout8" inlineStyle="height:300px;">

                                                                                          <af:panelStretchLayout id="panelStretchLayout9">

                                                                                             <f:facet name="center">

                                                                                                <f:verbatim>

                                                                                                   <table cellspacing="2" cellpadding="3" border="0" align="center" width="100%">

                                                                                                      <tr>

                                                                                                         <td width="100%">USAFA

                                                                                                                          Curriculum

                                                                                                                          Handbook</td>

                                                                                                      </tr>

                                                                                                      <tr>

                                                                                                         <td width="100%">

                                                                                                            <a href="http://www.usafa.af.mil/" target="_new">USAFA

                                                                                                                             SharePoint</a>

                                                                                                         </td>

                                                                                                      </tr>

                                                                                                   </table>

                                                                                                </f:verbatim>

                                                                                             </f:facet>

                                                                                          </af:panelStretchLayout>

                                                                                       </af:panelGroupLayout>

                                                                                    </af:panelGroupLayout>

                                                                                 </af:showDetailItem>

                                                                              </af:panelAccordion>

                                                                           </af:panelGroupLayout>

                                                                        </f:facet>

                                                                        <f:facet name="start"/>

                                                                        <f:facet name="end"/>

                                                                        <f:facet name="top"/>

                                                                     </af:panelStretchLayout>

                                                                  </af:panelGroupLayout>

                                                               </f:facet>

                                                               <f:facet name="start"/>

                                                               <f:facet name="end"/>

                                                               <f:facet name="top"/>

                                                            </af:panelStretchLayout>

                                                         </f:facet>

                                                         <f:facet name="second">

                                                            <af:panelStretchLayout id="pt_psl1">

                                                               <f:facet name="bottom"/>

                                                               <f:facet name="center">

                                                                  <af:facetRef facetName="content"/>

                                                               </f:facet>

                                                               <f:facet name="start"/>

                                                               <f:facet name="end"/>

                                                               <f:facet name="top"/>

                                                            </af:panelStretchLayout>

                                                         </f:facet>

                                                      </af:panelSplitter>

                                                   </f:facet>

                                                </af:panelStretchLayout>

                                             </f:facet>

                                          </af:panelStretchLayout>

                                       </f:facet>

                                    </af:panelStretchLayout>

                                 </f:facet>

                                 <f:facet name="top"/>

                              </af:panelStretchLayout>

                           </f:facet>

                           <f:facet name="bottom">

                              <af:panelGroupLayout id="bottom_globalContainer" layout="vertical" inlineStyle="height:0.0px;">

                                 <rtc:chatToolbox id="ct1"/>

                                 <wcdc:siteTemplateMetadata type="end"/>

                              </af:panelGroupLayout>

                           </f:facet>

                        </af:panelStretchLayout>

                     </f:facet>

                     <f:facet name="top">

                        <af:panelGroupLayout layout="scroll" id="pt_pgl1" valign="middle" rendered="false">

                           <af:panelStretchLayout id="pt_psl6" dimensionsFrom="auto" inlineStyle="background-color:Green;" topHeight="25px">

                              <f:facet name="bottom"/>

                              <f:facet name="center"/>

                              <f:facet name="start"/>

                              <f:facet name="end"/>

                              <f:facet name="top">

                                 <f:verbatim>

                                    <table cellspacing="0" cellpadding="0" border="0" width="1024" align="center">

                                       <tr align="center" valign="top">

                                          <td width="100%" style="color:White; font-weight:bold; font-size:small; vertical-align:top;" height="20px"> UNCLASSIFIED</td>

                                       </tr>

                                    </table>

                                 </f:verbatim>

                              </f:facet>

                           </af:panelStretchLayout>

                        </af:panelGroupLayout>

                     </f:facet>

                  </af:panelStretchLayout>

               </af:pageTemplateDef>

            </jsp:root>

             

             

            Am I needing to be sure there is something in this XML file to tell the Navigation menu how to treat the "Target" attribute?  If this is the case, can you give me some examples of what would be in here and in what section?

             

            Thank you again.

            • 3. Re: WebCenter 11.1.1.7 Portal Spaces - External Link Issue
              Daniel Merchán

              Hi.

               

              As you can see they aren't using targetFrame and they are just using PPR navigation using commandMenuItems.

               

              Example in a Custom Portal (the default pageTempate_globe.jspx):

               

              <!-- iterate over navigation items -->
                          <af:forEach var="node" varStatus="vs"
                                      items="#{navigationContext.defaultNavigationModel.listModel['startNode=/, includeStartNode=false']}">
                            <af:subform id="pt_sfm1">
                              <af:switcher id="pt_sw1"
                                           facetName="#{(empty node.attributes['Target']) || (node.attributes['Target'] == '_popup') ? 'command' : 'golink'}">
                                <f:facet name="command">
                                  <af:commandLink id="pt_cl1" text="#{node.title}"
                                                  inlineStyle="font-size:small;#{node.selected ? 'font-weight:bold;' : ''}"
                                                  action="pprnav"
                                                  disabled="#{not node.navigable}"
                                                  actionListener="#{navigationContext.processAction}"
                                                  clientComponent="#{node.attributes['Target'] == '_popup' ? true : false}">
                                    <!-- pass node to processAction for setting current selection and navigation  -->
                                    <f:attribute name="node" value="#{node}"/>
                                    <af:showPopupBehavior popupId="menuPopup"
                                                          align="afterStart"
                                                          triggerType="mouseOver"/>
                                    <c:if test="${node.attributes['Target'] == '_popup'}">
                                      <af:clientAttribute name="modelPath"
                                                          value="#{node.navigationModel.metadataId}"/>
                                      <af:clientAttribute name="selectedPrettyUrl"
                                                          value="#{node.prettyUrl}"/>
                                      <af:clientAttribute name="selectedTitle"
                                                          value="#{node.title}"/>
                                      <af:showPopupBehavior popupId="::rendererPopup"
                                                            triggerType="action"/>
                                    </c:if>
                                  </af:commandLink>
                                </f:facet>
                                <f:facet name="golink">
                                  <af:goLink id="pt_gl1" text="#{node.title}"
                                             destination="#{node.goLinkPrettyUrl}"
                                             targetFrame="#{node.attributes['Target']}"
                                             inlineStyle="font-size:small;#{node.selected ? 'font-weight:bold;' : ''}">
                                    <af:showPopupBehavior popupId="menuPopup"
                                                          align="afterStart"
                                                          triggerType="mouseOver"/>
                                  </af:goLink>
                                </f:facet>
                              </af:switcher>
              

               

              As you can see, here uses the targetFrame attribute in the af:goLink item.

               

              Anyway the people building the Template has to take care about how is the Navigation Items in order to use the Attributes.

               

              I hope this helps.

              Regards

              • 4. Re: WebCenter 11.1.1.7 Portal Spaces - External Link Issue
                Ron H.

                Daniel,

                 

                I have been reviewing your response, trying to re-create a new Space with default Page Template and Default Navigation...then adding small pieces to determine where the "Wheels fall off the Track".  I believe I have narrowed it down to what you are talking about and the problem is this is new for me and I am not sure how to transform this:

                 

                <af:switcher id="s1" facetName="#{empty node.children ? 'leafNode' : 'parentNode'}">

                   <f:facet name="parentNode">

                      <af:menu id="m1" text="#{node.title}" inlineStyle="#{node.onSelectedPath ? 'font-weight:bold;' : ''}">

                         <af:iterator id="i2" value="#{node.children}" var="node2">

                            <af:switcher id="s2" facetName="#{empty node2.children ? 'leafNode' : 'parentNode'}">

                               <f:facet name="parentNode">

                                  <af:menu id="m2" text="#{node2.title}" inlineStyle="#{node2.onSelectedPath ? 'font-weight:bold;' : ''}">

                                     <af:iterator id="i3" value="#{node2.children}" var="node3">

                                        <af:commandMenuItem id="cml3" text="#{node3.title}" actionListener="#{navigationContext.processAction}" action="pprnav" icon="#{node3.attributes[pageFlowScope.tnBean.iconKey]}" disabled="#{not node3.navigable}" clientComponent="#{node3.attributes['Target'] == '_blank' ? true : false}" inlineStyle="#{node3.onSelectedPath ?                                                                                       'font-weight:bold;' : ''}">

                                           <f:attribute name="node" value="#{node3}"/>

                                        </af:commandMenuItem>

                                     </af:iterator>

                                  </af:menu>

                               </f:facet>

                               <f:facet name="leafNode">

                                  <af:commandMenuItem id="cml1" text="#{node2.title}" actionListener="#{navigationContext.processAction}" action="pprnav" icon="#{node2.attributes[pageFlowScope.tnBean.iconKey]}" disabled="#{not node2.navigable}" clientComponent="#{node3.attributes['Target'] == '_blank' ? true : false}" inlineStyle="#{node2.onSelectedPath ?                                                                                   'font-weight:bold;' : ''}">

                                     <f:attribute name="node" value="#{node2}"/>

                                  </af:commandMenuItem>

                               </f:facet>

                            </af:switcher>

                         </af:iterator>

                      </af:menu>

                   </f:facet>

                   <f:facet name="leafNode">

                      <af:commandMenuItem id="cml2" text="#{node.title}" actionListener="#{navigationContext.processAction}" action="pprnav" icon="#{node.attributes[pageFlowScope.tnBean.iconKey]}" disabled="#{not node.navigable}" clientComponent="#{node3.attributes['Target'] == '_blank' ? true : false}" inlineStyle="#{node.onSelectedPath ? 'font-weight:bold;' : ''}">

                         <f:attribute name="node" value="#{node}"/>

                      </af:commandMenuItem>

                   </f:facet>

                </af:switcher>

                 

                into something that includes the commandLink items you mentioned above.

                 

                1. <af:commandLink id="pt_cl1" text="#{node.title}" 
                2.                                     inlineStyle="font-size:small;#{node.selected ? 'font-weight:bold;' : ''}" 
                3.                                     action="pprnav" 
                4.                                     disabled="#{not node.navigable}" 
                5.                                     actionListener="#{navigationContext.processAction}" 
                6.                                     clientComponent="#{node.attributes['Target'] == '_popup' ? true : false}"> 
                7.                       <!-- pass node to processAction for setting current selection and navigation  --> 
                8.                       <f:attribute name="node" value="#{node}"/> 
                9.                       <af:showPopupBehavior popupId="menuPopup" 
                10.                                             align="afterStart" 
                11.                                             triggerType="mouseOver"/> 
                12.                       <c:if test="${node.attributes['Target'] == '_popup'}"> 
                13.                         <af:clientAttribute name="modelPath" 
                14.                                             value="#{node.navigationModel.metadataId}"/> 
                15.                         <af:clientAttribute name="selectedPrettyUrl" 
                16.                                             value="#{node.prettyUrl}"/> 
                17.                         <af:clientAttribute name="selectedTitle" 
                18.                                             value="#{node.title}"/> 
                19.                         <af:showPopupBehavior popupId="::rendererPopup" 
                20.                                               triggerType="action"/> 
                21.                       </c:if> 
                22.                     </af:commandLink> 

                 

                Can you give me any advice, help, or partial solutions?

                • 5. Re: WebCenter 11.1.1.7 Portal Spaces - External Link Issue
                  Daniel Merchán

                  Hi.

                   

                  It is easy:

                  • af:goLink with the property targetFrame in order to open links as _blank, _self... (It translates to normal <a href="" target="">)
                  • af:commandLink doesn't allow the property targetFrame and you can just use pprnav.

                   

                  You just have to check with af:switcher based on node attributes/parameters which one use.


                  My reference to the pageTemplate_global is just a sample about how logic can be applied, doesn't has to be followed strictly. The commandLink in that case is only testing if it has to open or not a popup to show more navigation.

                   

                  I hope this information helps.


                  Regards.

                  • 6. Re: WebCenter 11.1.1.7 Portal Spaces - External Link Issue
                    Ron H.

                    Daniel,

                     

                    Thank you very much...with your help from this thread and similar help from other sources, I was able to update the Page Template given to me to open all sub-items (within the first level folders as well as sub folders) in a new window.

                     

                    This was all new to me when I started, but now I am getting better with it every day.

                     

                    Thanks again.

                     

                    -Ron