asked
2021-06-09 16:51:24 +0800
Bobzk 444 ● 1 ● 8 Just a though (unless there is another way?
If I have something like (sudo code)-
<window id="outerDiv" apply="pfactory.ComposerFactory" >
<label id="outer_label"></label>
<div id="innerDiv">
<label id="inner_label"></label>
</div>
</window>
all is fine and it is easy to access "outerlabel" or "innerlabel" in ComposerFactory but if I have (sudo code) -
<window id="outerDiv" apply="pfactory.ComposerFactory" >
<label id="outer_label"></label>
<window id="innerWin">
<label id="inner_label"></label>
</window>
</window>
I have to use (sudo code) to access "inner_label" -
label = innerWin.getFellow("inner_label")
It is not a major problem, just an annoyance. The reason of course is that the Window component creates a new idspace.
perhaps it would be a nice idea to have something like "newIdspace="false" as an option of the window component?
Or am I missing something?