I'm using Beehive as the basis for a set of portlets running on WebLogic
Portal Server 10.2.

When I click on any action link, an anchor representing that page link is
being automatically created and embedded on the end of the URL [1], which
causes the page to jump to that location.  My usability team would prefer
that the browser stays at the top of the page so that the navigation
elements are always available.

Walking through the debugger, it appears that the anchor reference is being
stored as a URL fragment element, which I thought would be written to the
{url:fragment} token in the URL templates.  However, the URLs defined in the
beehive-url-template-config.xml [2] don't include that token - so I'm not
sure why the fragment is being appended to the URL.

I've confirmed that the patterns defined in the file are being used, so it's
not that the file is ignored.

I can't seem to figure out where the fragment is coming from or how to stop
it from rendering.

Thanks for any help,

Dan Turkenkopf

[1] Example URL:
https://www.mysite.com/context/myportal.portal?page=my_portal_page#myactionlink

[2] See attached file
<?xml version="1.0" encoding="UTF-8"?>
<url-template-config xmlns="http://beehive.apache.org/netui/2004/server/url-template-config"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://beehive.apache.org/netui/2004/server/url-template-config ,DanaInfo=.awfdpenrGm6msm0utPv5ATx25.3H+url-template-config.xsd">

    <url-template>
    	<name>default</name>
    	<value>
    		/{url:path}?{url:queryString}{url:currentPage}
    	</value>
    </url-template>
    <url-template>
    	<name>default-complete</name>
    	<value>
    		/{url:prefix}/{url:path}?{url:queryString}{url:currentPage}
    	</value>
    </url-template>
    <url-template>
    	<name>portlet-default</name>
    	<value>
    		/{url:path}?{url:queryString}{url:currentPage}
    	</value>
    </url-template>
    <url-template>
    	<name>portlet-secure-default</name>
    	<value>
    		/{url:path}?{url:queryString}{url:currentPage}
    	</value>
    </url-template>
    <url-template>
    	<name>portlet-action</name>
    	<value>
    		/{url:path}?{url:queryString}{url:currentPage}
    	</value>
    </url-template>
    <url-template>
    	<name>portlet-secure-action</name>
    	<value>
    		/{url:path}?{url:queryString}{url:currentPage}
    	</value>
    </url-template>
    <url-template>
    	<name>portlet-resource</name>
    	<value>
    		/{url:path}?{url:queryString}
    	</value>
    </url-template>
    <url-template>
    	<name>portlet-secure-resource</name>
    	<value>
    		/{url:path}?{url:queryString}
    	</value>
    </url-template>



    <!-- Templates for consuming remote portlets -->
    <url-template>
        <name>wsrp-default</name>
        <value>
           /{url:path}?{url:queryString}&amp;wsrp-urlType={wsrp-urlType}&amp;wsrp-url={wsrp-url}&amp;wsrp-requiresRewrite={wsrp-requiresRewrite}&amp;wsrp-navigationalValues={wsrp-navigationalValues}&amp;wsrp-navigationalState={wsrp-navigationalState}&amp;wsrp-interactionState={wsrp-interactionState}&amp;wsrp-mode={wsrp-mode}&amp;wsrp-windowState={wsrp-windowState}&amp;{weblogic-passthru}
        </value>
    </url-template>
    <url-template>
        <name>wsrp-secureDefault</name>
        <value>
           /{url:path}?{url:queryString}&amp;wsrp-urlType={wsrp-urlType}&amp;wsrp-url={wsrp-url}&amp;wsrp-requiresRewrite={wsrp-requiresRewrite}&amp;wsrp-navigationalValues={wsrp-navigationalValues}&amp;wsrp-navigationalState={wsrp-navigationalState}&amp;wsrp-interactionState={wsrp-interactionState}&amp;wsrp-mode={wsrp-mode}&amp;wsrp-windowState={wsrp-windowState}&amp;{weblogic-passthru}
        </value>
    </url-template>
    <url-template>
        <name>wsrp-blockingAction</name>
        <value>
            /{url:path}?{url:queryString}&amp;wsrp-urlType=blockingAction&amp;wsrp-url={wsrp-url}&amp;wsrp-requiresRewrite={wsrp-requiresRewrite}&amp;wsrp-navigationalValues={wsrp-navigationalValues}&amp;wsrp-navigationalState={wsrp-navigationalState}&amp;wsrp-interactionState={wsrp-interactionState}&amp;wsrp-mode={wsrp-mode}&amp;wsrp-windowState={wsrp-windowState}&amp;{weblogic-passthru}
        </value>
    </url-template>
    <url-template>
        <name>wsrp-render</name>
        <value>
            /{url:path}?{url:queryString}&amp;wsrp-urlType=render&amp;wsrp-url={wsrp-url}&amp;wsrp-requiresRewrite={wsrp-requiresRewrite}&amp;wsrp-navigationalValues={wsrp-navigationalValues}&amp;wsrp-navigationalState={wsrp-navigationalState}&amp;wsrp-interactionState={wsrp-interactionState}&amp;wsrp-mode={wsrp-mode}&amp;wsrp-windowState={wsrp-windowState}&amp;{weblogic-passthru}
        </value>
    </url-template>
    <url-template>
        <name>wsrp-resource</name>
        <value>
            /{url:path}/resource?{url:queryString}&amp;_nfpb=true&amp;_portlet.renderResource=true&amp;wsrp-urlType=resource&amp;wsrp-url={wsrp-url}&amp;wsrp-requiresRewrite={wsrp-requiresRewrite}&amp;wsrp-resourceID={wsrp-resourceID}&amp;wsrp-preferOperation={wsrp-preferOperation}&amp;wsrp-resourceState={wsrp-resourceState}&amp;wsrp-resourceCacheability={wsrp-resourceCacheability}&amp;{weblogic-passthru}
        </value>
    </url-template>
    <url-template>
        <name>wsrp-secureBlockingAction</name>
        <value>
           /{url:path}?{url:queryString}&amp;wsrp-urlType=blockingAction&amp;wsrp-secureURL=true&amp;wsrp-url={wsrp-url}&amp;wsrp-requiresRewrite={wsrp-requiresRewrite}&amp;wsrp-navigationalValues={wsrp-navigationalValues}&amp;wsrp-navigationalState={wsrp-navigationalState}&amp;wsrp-interactionState={wsrp-interactionState}&amp;wsrp-mode={wsrp-mode}&amp;wsrp-windowState={wsrp-windowState}&amp;{weblogic-passthru}
        </value>
    </url-template>
    <url-template>
        <name>wsrp-secureRender</name>
        <value>
           /{url:path}?{url:queryString}&amp;wsrp-urlType=render&amp;wsrp-secureURL=true&amp;wsrp-url={wsrp-url}&amp;wsrp-requiresRewrite={wsrp-requiresRewrite}&amp;wsrp-navigationalValues={wsrp-navigationalValues}&amp;wsrp-navigationalState={wsrp-navigationalState}&amp;wsrp-interactionState={wsrp-interactionState}&amp;wsrp-mode={wsrp-mode}&amp;wsrp-windowState={wsrp-windowState}&amp;{weblogic-passthru}
        </value>
    </url-template>
    <url-template>
        <name>wsrp-secureResource</name>
        <value>
           /{url:path}/resource?{url:queryString}&amp;_nfpb=true&amp;_portlet.renderResource=true&amp;wsrp-urlType=resource&amp;wsrp-secureURL=true&amp;wsrp-url={wsrp-url}&amp;wsrp-requiresRewrite={wsrp-requiresRewrite}&amp;wsrp-resourceID={wsrp-resourceID}&amp;wsrp-preferOperation={wsrp-preferOperation}&amp;wsrp-resourceState={wsrp-resourceState}&amp;wsrp-resourceCacheability={wsrp-resourceCacheability}&amp;{weblogic-passthru}
        </value>
    </url-template>
</url-template-config>

Reply via email to