|ModelService.find cannot find part stacks [message #795562]
||Fri, 10 February 2012 11:01
| Phill Perryman
Registered: July 2009
I have a sash container which contains two part stacks.|
<children xsi:type="basic:PartSashContainer" elementId="com.mitel.swb3.container"..
<children xsi:type="basic:PartStack" elementId="com.mitel.swb3.detailpart"..
<children xsi:type="basic:Part" ..> </children>
<children xsi:type="basic:PartStack" elementId="com.mitel.swb3.editorpart"/>
The following code
Object stack = modelService.find("com.mitel.swb3.container", application);
stack = modelService.find("com.mitel.swb3.parteditor", application);
stack = modelService.find("com.mitel.swb3.detailpart", application);
finds the container but returns null for the parteditor and detailpart. I actually want to dynamically add a part to the detail part.
When I debug the container I can see its elementsId and its two children. When I examine the children I see an elementId for both similar to PartStack@a23610
What am I doing wrong or is there another way to do this. I have set the elementId in the application model as shown above.
Powered by FUDForum
. Page generated in 0.10425 seconds