<?xml version="1.0" encoding="UTF-8"?>
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_7.0.0.xsd" type="export" create-oids="true">
<portal action="locate">
<theme action="export" objectid="*" />
</portal>
</request>
<theme action="update" active="false" context-root="/customTheme" default="false" domain="rel" objectid="ZJ_618LOIP300NI60IE2H5GHD3001" resourceroot="customTheme" uniquename="customTheme">
<link rel="dynamic-content" href="dyn-cs:id:head@tl:oid:csa2.theme"> replace with following <link rel="dynamic-content" href=" res:/customTheme/themes/html/customTheme/head.jsp">
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_7.0.0.xsd" type="update" create-oids="true">
<skin action="update" active="true" objectid="NoSkin" uniquename="wps.skin.noSkin" resourceroot="NoSkin" >
<localedata locale="en">
<title>NoSkin</title>
<description>A skin with no skin</description>
</localedata>
</skin>
<theme action="update" active="true" defaultskinref="NoSkin" uniquename="custome.sivasecondtheme" resourceroot="sivasecondtheme" context-root="/sivasecondtheme">
<title>sivasecondtheme</title>
<allowed-skin skin="NoSkin" update="set"/>
</theme>
Re: Consolidated Steps for Creating Custom Themes in WP7
Hi honghui lin,
I'm also facing the same issue for the custom theme. Can you please tell me how you fixed the issue for wp7.0.0.1?
Thanks in advance,
-Dinesh
hi,
I fix the problems
We should update portal to v7.0.0.1 and WebDAV service of portal will be more stable. And pagebuilder2 has different structure from v7.0.0.0, it has no configGlobal.jsp and configDynamic.jsp.
BTW, it is so difficult to customise theme.html because it container complex css. I think v6.x is more easy to customise.
Hi Siva, I met some problems following the first approach.
1. when I create new page with customer theme, the browser show javascript error,
消息: 'com.ibm.pb.themes' 为空或不是对象 (message: 'com.ibm.pb.themes' is null or is not a object)
行: 44 (line: 44)
字符: 1
代码: 0
URI: http://192.168.160.128:10039/wps/myportal/!ut/p/b1/pZDLCsIwEEU_aSbmZZZBaBIIhZSKNhvJQiSlj434_Vpx22Th7AbOGe4diDBIJZgkRBC4QlzSKz_SM69LmrY9itvJaMukRzx6w9Fpe-5UoNR4_ABDAegORb-t-viXj4HV8l8gFpGtQRnAH4A7o7F84RuyCGhaydBzaO0636GPcr8sr_1yjlPTKJfdyMIbfF0gMw!!/dl4/d5/L0lDU0lKSWdrbUNTUS9JUFJBQUlpQ2dBek15cXpHWUEhIS80SkNpRG9NTnRCanRCSGZsQ0dkaC9aN19DR0FINDdMMDA4TEc1MElBSFVSOVEzM0dMNS9ibkV6OjExNjExOTIyL3NhLk9L/
2.If I don't modify this url of the config.jsp, it will throw exception in the page when i use the page created with customer theme, JSPG0036E: can not found resource /themes/html/PageBuilder2/configGlobal.jsp and JSPG0036E: can not found resource /themes/html/PageBuilder2/configDynamic.jsp. Then I changed the uri to res:/saatheme/themes/html/saatheme/configGlobal.jsp and res:/saatheme/themes/html/saatheme/configDynamic.jsp, it will throw exception in the log, [11-10-6 14:20:38:765 CST] 0000003a ExceptionLogg W com.ibm.wps.logging.ExceptionLogger logThrowable(th) Enable traces for [com.ibm.wps.logging.ExceptionLogger=all] to see the exception stack trace for exception: [EJCBD0021E: can not process URI [spa:Z6_37KOTKG108NQ70I9BV4KTU3080/html/undefined] and parameter []]:[EJPEI0088E: can not found resource [undefined]。]].
and the browser will show java script error, null or not a object,
消息: 'this.eventService' 为空或不是对象 (is null or is not a object)
行: 3 (line: 3 )
字符: 401742
URI: http://192.168.160.128:10039/portal_dojo/layerLoader.jsp?path=v1.4.3/com/ibm/themes/PageBuilder2&name=theme&locale=zh
消息: 'com.ibm.pb.contextMenu' 为空或不是对象
行: 537
URI: http://192.168.160.128:10039/wps/myportal/!ut/p/b1/pY_LDoIwEEW_xS-YW1soXVYTSgPBQMBHN4aFMRgeG-P3C8QtZeHsJnPO5F5ydJMqFJKxkNGV3NB82mfzbseh6ebdhXcu01OVGoYoLySsOpxFWtUcESbgNgFHoxMhMyDKTACrk7pUBeem3C_-2jnf9PGXj0J4_Qx0IedF5gZ-AD8AK6Ph_7CE9AKab2SoAsqTsX9Q77o4Vra1L7H7AuZ5pD8!/dl4/d5/L2dBISEvZ0FBIS9nQSEh/
消息: 'com.ibm.data.Resolver' 为空或不是对象
行: 178
URI: http://192.168.160.128:10039/wps/mycontenthandler/!ut/p/digest!f2FtVmfhNgk8_sf-ySBsuA/dav/fs-type1/themes/saa.theme/js/init.js
消息: 'com.ibm.pb.themes' 为空或不是对象
行: 43
So what's wrony? thank you.
I am facing the same problem, the config.jsp causes problems.I get a javascript error "com.ibm.themes" is null or not an object and my portlet vanishes. All the other jsp's in the custom theme can be referenced except for config.jsp.Has anyone got a solution for this ?
Thanks Siva. The first approach works for me.
Though following changes are also required:
1) config.jsp points to 2 more resources:
> configGlobal.jsp
> configDynamic.jsp
like this
they must be made to point to your custom theme's files as mentioned by Siva ( using res:/../..)
2) web.xml
3) ibm-web-bnd.xmi
4) ibm-web-ext.xmi
Hi, thanks for looking into it. i found what the issue was. i changed the resource root wrong.
i changed the folder name in main war folder to customTheme. However, i did not change it in the folder under themes/html. So it was looking like
/customTheme/themes/html/myTheme/*.jsp
i got the res link right.....
res:/customTheme/themes/html/myTheme/bannerNav.jsp
But, I had not changed the resourceroot in the xmlaccess theme update.....
default="false" domain="rel" objectid="ZJ_618LOIP300NI60IE2H5GHD3001" resourceroot="customTheme" uniquename="customTheme">It should have been resourceroot="myTheme" uniquename="customTheme">I resolved it and it worked.Thanks.
default="false" domain="rel" objectid="ZJ_618LOIP300NI60IE2H5GHD3001"
resourceroot="customTheme" uniquename="customTheme">
It should have been
resourceroot="myTheme" uniquename="customTheme">I resolved it and it worked.Thanks.
resourceroot="myTheme" uniquename="customTheme">
I resolved it and it worked.
Thanks.
Hi Siva,
It worked for me on one server, after I tried deploying the custom war a couple of times. But, it is not working on other servers now.
What is happening is the portlets are not displaying. Just the tabs are displaying. There are no actual errors in the page.
But, Here are a couple of errors I found using Firebug Console
uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame ::
/portal_dojo/v1.4.3/dojo/dojo.js :: anonymous :: line 16" data: no]
com.ibm.pb is undefined
com.ibm.data is undefined
I can provide the specific steps I did in detail if necessary, if you can help me fix it.
Thanks in advance.
Hi Vinoth, what error do you see when include the config.jsp from the custom theme(it works for me). Could you try to change the plugin id in plugin.xml under the customTheme/ webcontent/WEB-INF/ like id="com.ibm.portal.commontheme.customTheme" and see.
Hi Vinoth, what error do you see when include the config.jsp from the custom theme(it works for me). Could you try to change the plugin id in plugin.xml under the customTheme/ webcontent/WEB-INF/ like
Hi, this has been a very useful article to develop and deploy a custom PageBuilder war.
By following Approach 1, I tried and changing the dynamic content url to res:/customTheme/themes/html/customTheme/*.jsp works for all but config.jsp. Pointing config.jsp to the custom war url does not load the portlets.
In Approach 1, point 6, make sure to change the "pagebuilder2" references. Can you point out the references to pagebuilder2 in the theme war, since config.jsp also points to it and changing it did not help.