Sun Java System Portal Server 7.1 Developer Sample Guide

Customizing Window Preference

For channels that include links that launch another browser, you can control how this browser window is opened.

ProcedureTo Customize the Channel Window Preference

  1. Define the display profile (either for the channel, to make the change for only that channel, or for the provider, to make the change for every channel that uses the provider) so that it includes the windowPref property.

    For example:


    <Properties>
    	...
    	<String name="windowPref" value="all_new"/>
    	...
    </Properties>

    Note –

    The values are:

    • all_new (New window is opened for every link)

    • one_new (All links open on the same new window)

    • same (Desktop window)


  2. Load the display profile into LDAP using the psadmin subcommand or from the Portal Server management console.


    Note –

    The intelligence has to be built with the help of JavaScript for that particular channel.


ProcedureTo Customize the Channel Window Preference from the Portal Server Management Console

  1. Log in to the Portal Server management console and select the user, organization, or role for which the windowPref has to be changed.

  2. Select Manage channels and containers and click on the concerned channel. On the right frame, change the windowPref property value for the channel.

    The values can be:

    • all_new (New window is opened for every link)

    • one_new (All links open on the same new window)

    • same (Desktop window)