There seems to be a problem resolving control id references when using the import template view.
In attachment you may find a sample able to reproduce the issue.
On my sample I have created a portlet with two views: Default and innerView.
On the default view you will find two tabs: One and Two.
For each of the tabs there’s an hideable panel with an import template view control within.
On the inner view you will find 2 controls: htmlOutputText (a basic text output) and htmlButton
) on the button so that it prints the control id reference for htmlOutputText.
The general rule for control id reference resolution is that it resolves for the “closest” control with the specified id. So, when inside tab Two, I was expecting it to resolve to jsfwmp19782:defaultForm:importTemplateTwo:innerForm:htmlOutputText (notice the importTemplateTwo part) but it resolves to jsfwmp19782:defaultForm:importTemplateOne:innerForm:htmlOutputText
ImportTemplateNamespaceProblem.zip (16.5 KB)