ModifyPortlet.xml

+

Search Tips   |   Advanced Search

 

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

<!-- this is an exported portlet, which will be modified now.-->
<request type="update" create-oids="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_8.0.0.xsd">

    <!-- Sample to update an existing portlet.
    
         NOTE: This sample expects that the DeployPortlet.xml sample was executed before.  
     -->
     
    <portal action="locate">
    
        <!-- Sample IBM portlet API portlet -->
        <!-- The uid must match uid attribute of portlet-app in portlet.xml. -->
        <web-app action="update" active="true" uid="com.ibm.wps.portlets.welcome">
           <url>file:///$server_root$/ap/wp.ap.welcome/installableApps/WelcomePortlet.war</url>
           <!-- The uid must match uid attribute of concrete-portlet-app in portlet.xml. -->
           <portlet-app action="update" active="true" uid="com.ibm.wps.portlets.welcome.1">
              <!-- The name attribute must match content of portlet-name subtag of concrete-portlet in portlet.xml. -->
              <portlet action="update" active="true" objectid="theIbmPortletApiPortlet" name="Welcome Portlet">
                    <!-- Update the english title -->
                    <localedata locale="en">
                        <title>Welcome to WebSphere Portal</title>
                        <description>Displays Version and Copyright Statement</description>
                    </localedata>
                    <!-- Add a parameter -->
                    <parameter name="url" type="string" update="set">/WEB-INF/jsp/wps.jsp</parameter>
                    <!-- update the access control information -->
                    <access-control externalized="false" owner="undefined" private="false"/>
              </portlet>
           </portlet-app>
        </web-app>
    </portal>
</request>