Sun Java System Portal Server 7 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

Steps
  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>

    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 by using the psadmin subcommand or via the Portal Server management console.


    Note –

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