Panel does not show up in browser => feature request

I had a TWebPanel which would not show up in the browser, whatever I tried. I couldn’t even find it in the DOM created. After a lot of investigation, I think I know what caused the problem: I had given this panel an element-id which I also had given to another panel in another Frame. So I think, as a result, the panel with the duplicate name was not transpiled.

Question: Is this assumption correct? (when I changed the element-id, the panel showed up!)

If yes: Feature request: can’t you generate a transpile time error when you have duplicate element-id’s? Or allow duplicates as long as they are not simultanously in the DOM.

And if yes: isn’t it true that then it is not a good idea to give element-id’s to elements that are used in a frame or form that will be inherited from!

How was/is my web-application designed: for each task I load a special Frame in the Main Form. So these frames are mutually exclusive: they will never show up the same time. And all of these frames have the same lay-out. Therefore I used the same id’s, because the main panel in the Frame has the same function in each frame (i.e. element-id=’table-container’), because I thought they would never be in the same DOM.

Linking a control to a HTML element is a 1:1 link. It is not possible to link a control to two HTML elements and it is not possible to link multiple controls to one HTML element.
Transpile time DOM checking is not possible, as there is no DOM involved at transpile time. It would required HTML parsing, which is beyond the scope of what the transpiler can do.
And indeed, extra care needs to be taken when involving HTML together with inherited forms and frames.
Ensuring that unique HTML elements have unique IDs when you want to access these (or map 1:1 a control to a HTML element) is an essential guideline in web development in general and does not just apply to TMS WEB Core.

Why is it not recommended to use the same ID name for different elements or multiple IDs for a single element? - EITCA Academy .