Sun Java System Portal Server 7.1 Developer Sample Guide

ProcedureTo Remove a Button From a Single Channel

  1. For the channel from which you want to remove a button, add the appropriate property to a Collection tag in the container that contains the channel. See Removing a Button, for the button you want to remove. This two column table lists the button in the first column and the property to hide the button in the second column

    The order of the buttons in this table corresponds to the order they appear in the channel, from left to right: Minimize, Maximize, Help, Edit, Detach, and Remove.

    Button 

    Property to Hide the Button  

    Minimize 

    <Collection name="channelsIsMinimizable">

    <Boolean name="channelname" value="false"/>

    </Collection>

    Maximize 

    <Collection name="channelsIsMaximizable">

    <Boolean name="channelname" value="false"/>

    </Collection>

    Detach 

    <Collection name="channelsIsDetachable">

    <Boolean name="channelname" value="false"/>

    </Collection>

    Remove 

    <Collection name="channelsIsRemovable">

    <Boolean name="channelname" value="false"/>

    </Collection>

  2. For the channel in which you want to remove a button, add the appropriate property to a Collection tag in the controlling container.

    For example, use the following XML to hide the Remove button for the Sample JSP channel in the JSP table container, MyFrontPageTabPanelContainer, whose container is JSPTabContainer.


    <Container name="MyFrontPageFramePanelContainer" provider="JSPTableContainerProvider">
    	<Properties>
    		...
    		<Collection name="channelsIsRemovable">
    		<Boolean name="SampleJSP” value="false”/>
    		</Collection>
    	</Properties>
    	...
  3. Load the display profile into LDAP by using the psadmin subcommand or from the Portal Server management console.