-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I'm working on a ZK project and I have a third-party domain model based on EMF. I need to find a way to bind the ZK view with the EMF model.and I didn't find anything about that.
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
Asked: 2015-11-03 20:49:44 +0800
Seen: 51 times
Last updated: Nov 24 '15
Problem binding values to a composite component
How can i load a constant in .zul
[Ugent please] connect Web service .net view in grid group ZK
Dirty state for forms with collection properties
ZK drang and drop and databinding [closed]
Not able to bind Spring beans after zk upgrade
spring + zk @autowired problem