-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Hello!
ZK+EMF is a great combination... specially if you also use Teneo and Hibernate for the persistence!
About your question: i cannot understand what is exactly your problem... EMF model classes are just POJOs++ and you should be able to bind them as you normally do - no matter if using MVC or MVVM style.
Can you explain me better what exactly is your issue?
Gio
2 | No.2 Revision |
Hello!
ZK+EMF is a great combination... specially if you also use Teneo and Hibernate for the persistence!
About your question: i cannot understand what is exactly your problem... EMF model classes are just POJOs++ and you should be able to bind them as you normally do - no matter if using MVC or MVVM style.
Old School Example:
//zul side
<idspace id="myEditor" apply="bla.bla.MyController">
...
<textbox value="@{bean.codeMdr}" />
// java side on your MyController who extends a ZK OOTB composer
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
this.binder = new AnnotateDataBinder(comp);
YourCustomEMFObj obj = ...
this.binder.bindBean("bean", obj);
this.binder.loadAll();
...
}
Can you explain me better what exactly is your issue?
Gio