BinaryTree
asked on
Problem in creating new page using XMLAccess
Hi every one,
I encounter a problem when i use XMLAccess tool to create new page in my company portal.
The problem simply is that the new page appears empty , the portlet instance is not created succesfully, although the link is created and appears in the navigation menu with no problems.
To make this clear , this is the input XML request :
-------------------------- ---------- ---------- ---------- -----
<request type="update" xmln:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocat ion="Porta lConfig_1. 2.1.xsd" create-oids="true">
<portal action="locate">
<skin action="locate" objectid="_K_082M6VQEDE0C1 2MO_39 NoSkin" uniquename="wps.skin.noSki n"/>
<skin action="locate" objectid="_K_004GH1CFMC06H IT1_69 MyComp_b" uniquename="wps.MyComp.ski n.blue"/>
<skin action="locate" objectid="_K_004GH1CFMC06H IT1_6A MyComp_g" uniquename="wps.MyComp.ski n.green"/>
<skin action="locate" objectid="_K_004GH1CFMC06H IT1_9D MyComp_g_mid" uniquename="wps.MyComp.ski n.green_mi d"/>
<skin action="locate" objectid="_K_004GH1CFMC08H C6R_69 NoTitle" uniquename="wps.MyComp.ski n.noTitle" />
<theme action="locate" objectid="_J_004GH1CFMC08H C6R_69 MyComp" uniquename="wps.MyComp.the me.MyComp" />
<web-app action="locate" objectid="_1_004GH1CFMC06H IT1_CGG" uid="com.MyComp.site.portl ets.MyComp webpage.My CompWebPag e.206d281d 6688001811 b8e1c043a3 a763" uniquename="wps.MyComp.MyC ompWebPage .webApp">
<servlet action="locate" objectid="_V_004GH1CFMC06H IT1_CK3" referenceid="com.MyComp.si te.portlet s.MyCompwe bpage.MyCo mpWebPage" />
<portlet-app action="locate" name="MyCompWebPage application" objectid="_2_004GH1CFMC06H IT1_D6O com.MyComp.site.portlets.M yCompwebpa ge.MyCompW ebPage.206 d281d66880 01811b8e1c 043a3a763. 1" uid="com.MyComp.site.portl ets.MyComp webpage.My CompWebPag e.206d281d 6688001811 b8e1c043a3 a763.1">
<portlet action="locate" name="MyCompWebPage" objectid="_3_004GH1CFMC06H IT1_D6T MyCompWebPage"/>
</portlet-app>
</web-app>
<content-node action="locate" objectid="6_0_A Content Root" uniquename="wps.content.ro ot"/>
<content-node action="locate" objectid="_6_004GH1CFMC06H IT1_9D MyComp Template" uniquename="wps.MyComp.pag es.templat e">
</content-node>
<content-node action="locate" objectid="_6_004GH1CFMC06H IT1_9E Home" uniquename="wps.MyComp.pag es.home"/>
<content-node action="update" active="true" allportletsallowed="true" content-parentref="_6_004G H1CFMC06HI T1_9E Home" create-type="explicit" derivation-parentref="_6_0 04GH1CFMC0 6HIT1_9D MyComp Template" ordinal="1390" skinref="undefined" themeref="undefined" type="page" uniquename="wps.MyComp.pag es.sampleP age">
<localedata locale="en">
<title>The English Title</title>
<description/>
</localedata>
<localedata locale="ar">
<title>The Arabic Title</title>
<description/>
</localedata>
<parameter name="bookmarkable" type="string" update="set">No</parameter >
<parameter name="menu-enabled" type="string" update="set">Yes</paramete r>
<access-control externalized="false" owner="uid=wpsadmin,cn=use rs,o=MyCom p,c=sa" private="false"/>
<component action="create" active="true" deletable="undefined" maxsize="undefined" modifiable="undefined" movable="undefined" ordinal="100" skinref="undefined" type="container" width="undefined">
<component action="create" active="true" deletable="undefined" maxsize="undefined" modifiable="undefined" movable="undefined" ordinal="100" skinref="undefined" type="control" width="undefined">
<portletinstance action="update" handle="" portletref="_3_004GH1CFMC0 6HIT1_D6T MyCompWebPage">
<parameter name="arabicTitle" type="string" update="set">The Arabic Title</parameter>
<parameter name="arabicURL" type="string" update="set">/url/to/the/a rabic/web/ Page.html< /parameter >
<parameter name="defaultURL" type="string" update="set">/url/to/the/d efault/web /Page.html </paramete r>
<parameter name="englishTitle" type="string" update="set">The English Title</parameter>
<parameter name="englishURL" type="string" update="set">/url/to/the/e nglish/web /Page.html </paramete r>
<parameter name="height" type="string" update="set">300</paramete r>
<parameter name="scrolling" type="string" update="set">auto</paramet er>
<parameter name="width" type="string" update="set">592</paramete r>
</portletinstance>
</component>
</component>
</content-node>
</portal>
</request>
-------------------------- ---------- ---------- ----------
but the very strange thing that i noticed , is that when i re export this page , the following xml result appears :
-------------------------- ---------- ---------- ---------
<request type="update" xmln:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocat ion="Porta lConfig_1. 2.1.xsd" create-oids="true">
<portal action="locate">
<skin action="locate" objectid="_K_082M6VQEDE0C1 2MO_39 NoSkin" uniquename="wps.skin.noSki n"/>
<skin action="locate" objectid="_K_004GH1CFMC06H IT1_69 MyComp_b" uniquename="wps.MyComp.ski n.blue"/>
<skin action="locate" objectid="_K_004GH1CFMC06H IT1_6A MyComp_g" uniquename="wps.MyComp.ski n.green"/>
<skin action="locate" objectid="_K_004GH1CFMC06H IT1_9D MyComp_g_mid" uniquename="wps.MyComp.ski n.green_mi d"/>
<skin action="locate" objectid="_K_004GH1CFMC08H C6R_69 NoTitle" uniquename="wps.MyComp.ski n.noTitle" />
<theme action="locate" objectid="_J_004GH1CFMC08H C6R_69 MyComp" uniquename="wps.MyComp.the me.MyComp" />
<web-app action="locate" objectid="_1_004GH1CFMC06H IT1_CGG" uid="com.MyComp.site.portl ets.MyComp webpage.My CompWebPag e.206d281d 6688001811 b8e1c043a3 a763" uniquename="wps.MyComp.MyC ompWebPage .webApp">
<servlet action="locate" objectid="_V_004GH1CFMC06H IT1_CK3" referenceid="com.MyComp.si te.portlet s.MyCompwe bpage.MyCo mpWebPage" />
<portlet-app action="locate" name="MyCompWebPage application" objectid="_2_004GH1CFMC06H IT1_D6O com.MyComp.site.portlets.M yCompwebpa ge.MyCompW ebPage.206 d281d66880 01811b8e1c 043a3a763. 1" uid="com.MyComp.site.portl ets.MyComp webpage.My CompWebPag e.206d281d 6688001811 b8e1c043a3 a763.1">
<portlet action="locate" name="MyCompWebPage" objectid="_3_004GH1CFMC06H IT1_D6T MyCompWebPage"/>
</portlet-app>
</web-app>
<content-node action="locate" objectid="6_0_A Content Root" uniquename="wps.content.ro ot"/>
<content-node action="locate" objectid="_6_004GH1CFMC06H IT1_9D MyComp Template" uniquename="wps.MyComp.pag es.templat e">
</content-node>
<content-node action="locate" objectid="_6_004GH1CFMC06H IT1_9E Home" uniquename="wps.MyComp.pag es.home"/>
<content-node action="update" active="true" allportletsallowed="true" content-parentref="_6_004G H1CFMC06HI T1_9E Home" create-type="explicit" derivation-parentref="_6_0 04GH1CFMC0 6HIT1_9D MyComp Template" ordinal="1390" skinref="undefined" themeref="undefined" type="page" uniquename="wps.MyComp.pag es.sampleP age">
<localedata locale="en">
<title>The English Title</title>
<description/>
</localedata>
<localedata locale="ar">
<title>The Arabic Title</title>
<description/>
</localedata>
<parameter name="bookmarkable" type="string" update="set">No</parameter >
<parameter name="menu-enabled" type="string" update="set">Yes</paramete r>
<access-control externalized="false" owner="uid=wpsadmin,cn=use rs,o=MyCom p,c=sa" private="false"/>
</content-node>
</portal>
</request>
-------------------------- ---------- ---------- ---------- ---------- -------
yes , as you guess , the set of xml code that create new component and a portletinstance is not created , because when i re export the page it does not appear , and for that reason the page appears empty in the website !
any suggested solution ?
Regards,
I encounter a problem when i use XMLAccess tool to create new page in my company portal.
The problem simply is that the new page appears empty , the portlet instance is not created succesfully, although the link is created and appears in the navigation menu with no problems.
To make this clear , this is the input XML request :
--------------------------
<request type="update" xmln:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocat
<portal action="locate">
<skin action="locate" objectid="_K_082M6VQEDE0C1
<skin action="locate" objectid="_K_004GH1CFMC06H
<skin action="locate" objectid="_K_004GH1CFMC06H
<skin action="locate" objectid="_K_004GH1CFMC06H
<skin action="locate" objectid="_K_004GH1CFMC08H
<theme action="locate" objectid="_J_004GH1CFMC08H
<web-app action="locate" objectid="_1_004GH1CFMC06H
<servlet action="locate" objectid="_V_004GH1CFMC06H
<portlet-app action="locate" name="MyCompWebPage application" objectid="_2_004GH1CFMC06H
<portlet action="locate" name="MyCompWebPage" objectid="_3_004GH1CFMC06H
</portlet-app>
</web-app>
<content-node action="locate" objectid="6_0_A Content Root" uniquename="wps.content.ro
<content-node action="locate" objectid="_6_004GH1CFMC06H
</content-node>
<content-node action="locate" objectid="_6_004GH1CFMC06H
<content-node action="update" active="true" allportletsallowed="true" content-parentref="_6_004G
<localedata locale="en">
<title>The English Title</title>
<description/>
</localedata>
<localedata locale="ar">
<title>The Arabic Title</title>
<description/>
</localedata>
<parameter name="bookmarkable" type="string" update="set">No</parameter
<parameter name="menu-enabled" type="string" update="set">Yes</paramete
<access-control externalized="false" owner="uid=wpsadmin,cn=use
<component action="create" active="true" deletable="undefined" maxsize="undefined" modifiable="undefined" movable="undefined" ordinal="100" skinref="undefined" type="container" width="undefined">
<component action="create" active="true" deletable="undefined" maxsize="undefined" modifiable="undefined" movable="undefined" ordinal="100" skinref="undefined" type="control" width="undefined">
<portletinstance action="update" handle="" portletref="_3_004GH1CFMC0
<parameter name="arabicTitle" type="string" update="set">The Arabic Title</parameter>
<parameter name="arabicURL" type="string" update="set">/url/to/the/a
<parameter name="defaultURL" type="string" update="set">/url/to/the/d
<parameter name="englishTitle" type="string" update="set">The English Title</parameter>
<parameter name="englishURL" type="string" update="set">/url/to/the/e
<parameter name="height" type="string" update="set">300</paramete
<parameter name="scrolling" type="string" update="set">auto</paramet
<parameter name="width" type="string" update="set">592</paramete
</portletinstance>
</component>
</component>
</content-node>
</portal>
</request>
--------------------------
but the very strange thing that i noticed , is that when i re export this page , the following xml result appears :
--------------------------
<request type="update" xmln:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocat
<portal action="locate">
<skin action="locate" objectid="_K_082M6VQEDE0C1
<skin action="locate" objectid="_K_004GH1CFMC06H
<skin action="locate" objectid="_K_004GH1CFMC06H
<skin action="locate" objectid="_K_004GH1CFMC06H
<skin action="locate" objectid="_K_004GH1CFMC08H
<theme action="locate" objectid="_J_004GH1CFMC08H
<web-app action="locate" objectid="_1_004GH1CFMC06H
<servlet action="locate" objectid="_V_004GH1CFMC06H
<portlet-app action="locate" name="MyCompWebPage application" objectid="_2_004GH1CFMC06H
<portlet action="locate" name="MyCompWebPage" objectid="_3_004GH1CFMC06H
</portlet-app>
</web-app>
<content-node action="locate" objectid="6_0_A Content Root" uniquename="wps.content.ro
<content-node action="locate" objectid="_6_004GH1CFMC06H
</content-node>
<content-node action="locate" objectid="_6_004GH1CFMC06H
<content-node action="update" active="true" allportletsallowed="true" content-parentref="_6_004G
<localedata locale="en">
<title>The English Title</title>
<description/>
</localedata>
<localedata locale="ar">
<title>The Arabic Title</title>
<description/>
</localedata>
<parameter name="bookmarkable" type="string" update="set">No</parameter
<parameter name="menu-enabled" type="string" update="set">Yes</paramete
<access-control externalized="false" owner="uid=wpsadmin,cn=use
</content-node>
</portal>
</request>
--------------------------
yes , as you guess , the set of xml code that create new component and a portletinstance is not created , because when i re export the page it does not appear , and for that reason the page appears empty in the website !
any suggested solution ?
Regards,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER