hi,
getScreen().getByLocalId is not working for me, as described here: http://www.smartclient.com/smartgwtee-latest/javadoc/com/smartgwt/client/docs/ComponentXML.html:
The window is displayed correctly but I have no access to the individual objects. getScreen().getByLocalId returns always NULL.
simple UI "testWindow.ui.xml" -->created by visual builder<--:
Is there any other way to get access to a component generated by ComponentXML?
best regards,
mirko
i used: SNAPSHOT_v9.0d_2013-05-16/PowerEdition Deployment 2013-05-16
firefox 22 with GWT Dev Mode.
getScreen().getByLocalId is not working for me, as described here: http://www.smartclient.com/smartgwtee-latest/javadoc/com/smartgwt/client/docs/ComponentXML.html:
The window is displayed correctly but I have no access to the individual objects. getScreen().getByLocalId returns always NULL.
simple UI "testWindow.ui.xml" -->created by visual builder<--:
Code:
<isomorphicXML>
<Img ID="Img0" autoDraw="false">
<imageType>tile</imageType>
<src>[SKIN]grid.gif</src>
<title>Img0</title>
</Img>
<DynamicForm ID="DynamicForm1" autoDraw="false">
<fields>
<FormItem name="TextItem0" constructor="TextItem"/>
<FormItem name="TextItem1" constructor="TextItem"/>
</fields>
</DynamicForm>
<VLayout ID="VLayout0" autoDraw="false">
<members><Canvas ref="Img0"/><Canvas ref="DynamicForm1"/>
</members>
</VLayout>
<Window ID="Window0" width="400" height="300" autoDraw="false">
<title>Window0</title>
<items><Canvas ref="VLayout0"/>
</items>
<showShadow>false</showShadow>
</Window>
</isomorphicXML>Code:
RPCManager.loadScreen("testWindow", new LoadScreenCallback() {
@Override
public void execute() {
Img headerLogo = (Img) this.getScreen().getByLocalId("Img0");
// headerLogo is always NULL
this.getScreen().show();
}
});Is there any other way to get access to a component generated by ComponentXML?
best regards,
mirko
i used: SNAPSHOT_v9.0d_2013-05-16/PowerEdition Deployment 2013-05-16
firefox 22 with GWT Dev Mode.