It's all about the answers!

Ask a question

Extending RTC 4.0 Web UI

Dan Sevcenco (5021923) | asked May 22 '14, 1:39 p.m.
Does anyone have a working example of how to extend the RTC 4.0 Web UI with a new menu button, a page with some content and an interaction with the server side to fetch data from the repository and display it in the new page?

I have found examples written for RTC v3 but I could not make them work on RTC v4.

Thanks a lot for any information on how I can make this work.

2 answers

permanent link
Dan Sevcenco (5021923) | answered May 27 '14, 2:18 a.m.
I have managed to replicate one of the examples found online and now I tried to extend that example to include my custom UI page and have hit a wall.

The server keeps telling me in the RTC client web UI that my resource could not be loaded due to a syntax error or missing dependency.

The application log shows the following error :

2014-05-27 09:12:43,611 [              WebContainer : 3] ERROR net.jazz.ajax.servlets.StyleSheetServlet            - GET
?exclude=D~E~F~G~H~I~J~K~L~M& Host =
HEADER: User-Agent = Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20100101 Firefox/10.0.12
HEADER: Accept = text/css,*/*;q=0.1
HEADER: Accept-Language = en-us,en;q=0.5
HEADER: Accept-Encoding = gzip, deflate
HEADER: Connection = keep-alive
HEADER: Referer =
HEADER: Cookie = net-jazz-ajax-cookie-rememberUserId=dan.sevcenco; JazzFormAuth=Form; UnicaNIODID=wYvfFVuyoos-Ync1x9S; ibmSurvey=1391165875373; LtpaToken2=pYk...g==; JSESSIONID
Parameter: locale = [en-us]
Parameter: include = []
Parameter: _proxyURL = [/ccm]
Parameter: exclude = [D~E~F~G~H~I~J~K~L~M]

java.lang.IllegalArgumentException: Resource does not exist:
        at net.jazz.ajax.model.Resource.resolve(
        at net.jazz.ajax.model.Resource.resolveAll(
        at net.jazz.ajax.servlets.AbstractResourceServlet.createOperation(
        at net.jazz.ajax.servlets.AbstractResourceServlet.doGet(
        at javax.servlet.http.HttpServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at net.jazz.ajax.servlets.LoggingHttpServlet.service(
        at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at org.eclipse.equinox.servletbridge.BridgeServlet.service(
        at javax.servlet.http.HttpServlet.service(

Obviously, there is something wrong with the setup of the mapping between the Dijit widget I have defined and the plugin descriptor but for the life of me, I cannot see it. It must be said that I am not a web developer, neither do I have extensive experience with Dojo and Dijit, so I would not be surprised if I made a stupid mistake out of lack of knowledge.

So, the question to the experts is : in such situations, where do I start with the detective work? I must put the magnifying glass somewhere on the application server and my code to start figuring it out, but where?

Any suggestions, tips, anything to help me move forward would be greatly appreciated.


permanent link
Dan Sevcenco (5021923) | answered May 27 '14, 8:01 a.m.
With some more fiddling I managed to get past the error above and received the following error :

Failed to load the ITOP Export page widget. Invalid template:

My javascript file looks like this:




    var PlatformUI = net.jazz.ajax.ui.PlatformUI;
//    var hiCount = 0;
    dojo.declare("", [dijit._Widget, dijit._Templated], {
        //templateString: "<div><div dojoAttachPoint='itopExportAttachPoint'>uninitialized</div></div>",
        templateString: dojo.cache("", "templates/ITOPExportPage.html"),
        postCreate: function(){
            var ActionRegistry = PlatformUI.getWorkbench().getActionRegistry();
            ActionRegistry.registerAction("itsm2.rtcext.itop.export.web.openITOPExportView", this, "initializePage");
        initializePage: function(){
            //this.itopExportAttachPoint.appendChild(document.createTextNode("Hi from Jazz!!! (" + hiCount + ")"));

and the referenced HTML page only contains a TitlePane with some basic controls inside and it was created with RAD v9.1 as part of a Dojo widget I declared inside the project.

Any tips on what I could try to determine why the template is not accepted by the application?

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.