I have a small issue with XWT, to put it simply, I have an foo.xwt file which has approximately the following structure:
<Composite
<Composite.Resources>
<r:MyDataProvider key ="myInstance" name="myInstance" ObjectId="myInstanceObjectId"/>
</Composite.Resources>
<Composite>
<w:SmartSpinner name="mySmartSpinner" .... />
</Composite>
</Composite>
In the foo.java class, I have the following method:
@PostConstruct
protected void init() {
SmartSpinner mySpinner = (SmartSpinner) XWT.findElementByName(parent,"mySmartSpinner");
MyDataProvider myDataProvider = (MyDataProvider ) XWT.findElementByName(parent,"myInstance")
}
The SmartSpinner is found, no problem. However, the MyClass instance returns null.
I can't find a serious documentation about XWT, and I basically clueless about how it work, what interface it gives etc .... I'm actually impressed that the guy previous me actually managed to create a working interface. So if you have any idea, it will be really appreciated