|
|
Re: Could not find "HeatmapFieldAdapter" in namespace "" [message #1841850 is a reply to message #1841842] |
Tue, 01 June 2021 08:37 |
|
Hi,
The exception is telling you, that it cannot find the object HeatmapFieldAdapter in the default namespace, which is the scout namespace.
The namespace for your app is defined in your index.js on the bottom.
window.yourNamespace = Object.assign(window.yourNamespace || {}, self);
When creating a new object, the namespace has to be provided. This includes the JsonAdapters. So you probably need to adjust the objectType in JsonHeatmapField and prepend your namespace to the widget name.
@Override
public String getObjectType() {
return "yourNamespace.HeatmapField";
}
The heatmap example of the widgets app uses the default scout namespace, which is actually not good practice. It is fixed now: Commit.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05566 seconds