Hi again 😊
Should I just use the JavaBean straigth from the view of component controller and leave the model thingy out of the picture ?
What are the pros/cons here ?
Regards,
Jari
After import JavaBean model and connecting in data modeler, try applay model to view. It's work fine.
In controller you can bind that model puting code in controller wdDoInit()
try { MyObject myobject= new MyObject(); myobject.callSomeMethod(); wdContext.nodeMyNode().bind(myobject); } catch (Exception e) {}
When you want to call some method, make action and in action method put
wdContext.currentMyObjectElement().modelObject().callMethodFromMyObject(); wdContext.nodeMyNode().bind(wdContext.currentMyObjectElement().modelObject());
I hope it will help you.
Regard
Vedran
Add comment