Revision history [back]

click to hide/show revision 1
initial version

answered 2015-11-24 13:23:32 +0800

gganassin gravatar image gganassin flag of Luxembourg

http://www.hybris.com/

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

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

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More