ModifyPortlet.xml

 

<?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_1.3.xsd">

    <portal action="locate">

        <web-app action="update" 
                 active="true" 
                 objectid="_1_3HNGO0880305CK6G_6B" 
                 removable="true" 
                 uid="com.ibm.wps.portlets.welcome">

            <url>file://localhost/$server_root$/installableApps/WelcomePortlet.war</url>

            <access-control externalized="false" 
                            owner="undefined" 
                            private="false"/>

            <servlet action="update" 
                     active="true" 
                     objectid="_V_3HNGO0880305CK6G_6B" 
                     referenceid="portletidwelcome"/>

            <portlet-app action="update" 
                         active="true" 
                         name="Welcome" 
                         objectid="_2_3HNGO0880305CK6G_6C" 
                         uid="com.ibm.wps.portlets.welcome.1">

                <access-control externalized="false" owner="undefined" private="false"/>

                <portlet action="update" 
                         active="true" 
                         defaultlocale="en" 
                         name="Welcome Portlet" 
                         objectid="_3_3HNGO0880305CK6G_6D" 
                         servletref="_V_3HNGO0880305CK6G_6B">

                    <localedata locale="en">

                        <title>Welcome to WebSphere Portal</title>
                        <description>Displays Version and Copyright Statement</description>

                    </localedata>

                    <parameter name="url" type="string" update="set">/WEB-INF/jsp/wps.jsp</parameter>

                    <access-control externalized="false" owner="undefined" private="false"/>

                </portlet>

                <portlet action="update" 
                         active="true" 
                         defaultlocale="en" 
                         name="Cloned Welcome Portlet" 
                         objectid="_3_3HNGO0880305CK6G_6E" 
                         servletref="_V_3HNGO0880305CK6G_6B">

                    <localedata locale="en">

                    	<!-- changed the title -->
                        <title>Another About WebSphere Portal Portlet</title>
                        <description>Displays Version and Copyright Statement</description>

                    </localedata>

                    <parameter name="url" 
                               type="string" update="set">
                        /WEB-INF/jsp/wps.jsp
                    </parameter>

                    <access-control externalized="false" owner="undefined" private="false"/>

                </portlet>

            </portlet-app>

        </web-app>

        <content-node action="locate" 
                      objectid="6_0_A Content Root" 
                      uniquename="wps.content.root"/>

        <content-node action="locate" 
                      objectid="_6_3HNGO0880305CK6G_35 My Portal" 
                      uniquename="wps.My Portal"/>

        <content-node action="update" 
                      active="true" 
                      content-parentref="_6_3HNGO0880305CK6G_35 My Portal" 
                      create-type="explicit" 
                      objectid="_6_3HNGO0880305CK6G_CM Sample Page" 
                      ordinal="400" 
                      skinref="undefined" 
                      themeref="undefined" 
                      type="page" 
                      uniquename="wps.SamplePage">
            <supported-markup markup="html" update="set"/>

            <localedata locale="en">
                <title>Sample Page</title>
            </localedata>

            <access-control externalized="false" owner="undefined" private="false"/>

            <component action="update" 
                       deletable="undefined" 
                       modifiable="undefined" 
                       objectid="_7_3HNGO0880305CK6G_GD" 
                       ordinal="100" 
                       orientation="H" 
                       skinref="undefined" 
                       type="container" 
                       width="undefined">

                <component action="update" 
                           deletable="undefined" 
                           modifiable="undefined" 
                           objectid="_7_3HNGO0880305CK6G_GE" 
                           ordinal="100" 
                           skinref="undefined" 
                           type="control" 
                           width="undefined">

                    <portletinstance action="update" 
                                     objectid="_5_3HNGO0880305CK6G_9M" 
                                     portletref="_3_3HNGO0880305CK6G_6D"/>

                </component>
            </component>
        </content-node>
    </portal>
</request>