Hi,
I have a problem with a workflow. When I use a dialog with standard CQ widgets, i.e. xtypes (e.g. textfield, multifield, etc.), everything works great, but when I place my custom widget/xtype instead, it crashes (doesn't go further - next step) and a JavaScript error comes up: "uncaught exception: cannot create Component: xtype 'pagetreebrowse' not found and no default supplied" (my custom xtype is named "pagetreebrowse"), on line 93351 in widget.js :
return cw.CQ.wcm.mobile.simulator.DeviceSimulator.getInstance(config);
When I use this custom widget in a normal CQ enviroment/dialog, it works great. Is this a CQ limitation (no custom widgets in workflow dialogs), or can it be solved?
Thank you for your time and help in advance!
Solved! Go to Solution.
I'm sorry. After a lot of trying to figure this out in a lot of places, I went back to what you wrote and tried a couple of more combinations. And finally found the right combination to work... cq.widgets and cq.workflow:
<?xml version="1.0" encoding="UTF-8"?>
Thanks again!
Hi,
I am facing the same error while trying to access the page properties of a page from context menu on the siteadmin page. However when i try accessing the page properties of the same page through side kick after opening the page, it works.
Please help.
thanks in advance,
Nikash
Views
Replies
Total Likes
Are you running the workflow from the inbox? Make sure the widget's clientlib is being loaded into the page. Check the clientlibs "categories" property. I had to add "cq.workflow" to it for it to be loaded into the workflow inbox page as neither "cq.wcm.admin" or "cq.wcm.edit" are loaded.
I'm sorry. After a lot of trying to figure this out in a lot of places, I went back to what you wrote and tried a couple of more combinations. And finally found the right combination to work... cq.widgets and cq.workflow:
<?xml version="1.0" encoding="UTF-8"?>
Thanks again!
Thank you for the reply, and sorry for the long time it took me to answer, was a non-working day.
I tried it from within the site (from the sidekick), and also now from the inbox. Same thing. Then I tried all possible combinations to the categories property of my custom "clientlib" (before, I only had cq.widgets). I tried: "<project_name>.global", "cq.widgets", "cq.wcm.admin", "cq.wcm.edit" and of course "cq.workflow". The same problem persisted both from the sidekick and from the inbox.
Views
Replies
Total Likes
Hmm... sorry, I don't know what this could be, never had this exact problem. The problem in the thread / topic was the registration of custom clientlib. Did you try any of it on listed above?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies