Could not resolve * to a component implementation with custom CalloutButton component
-
13-11-2019 - |
سؤال
I've got a custom CalloutButton component in a package called uiComponents. This custom CallOutButton is needed because I need some more properties in it.
This CalloutButton gets added to my MXML like usual;
<uiComponents:MyCustomCalloutButton someproperties here >
</uiComponents:My...>
Now, the enclosed s:calloutContent gets a compilation error, the (almost standard) could not resolve...
Naturally, the namespace has been imported
What am I missing here? This is driving me nuts for more than an hour now. Any help would be greatly appreciated!
Cheers!
المحلول
Since the error was generated from the s:calloutContent
tag ; not the uiComponents:MyCustomCallOutButton
tag; the solution was that in many situations, enclosed tags must use the same namespace as their parent, so replace it with uiComponents:calloutContent
So instead of this:
<uiComponents:MyCustomCalloutButton someproperties here >
<s:calloutContent />
</uiComponents:My...>
You'll need to do this:
<uiComponents:MyCustomCalloutButton someproperties here >
<uiComponents:calloutContent />
</uiComponents:My...>