0

Middle Object Sync with the Entity

asked 2012-05-15 03:59:34 +0800

elvin gravatar image elvin
66

I'm just wondering how does the middle object gets synch with the entity, is it only during the initia phase on loading? Because I'm having a issue right now on my form, I have this feature called "add more contact" which add an extra entity to the collection when the command is executed, but when i issue a notifychange on the entity, all my previous changes to the form gets reset. Is there a way to capture the user input before saving it at the same time execute a NotifyChange?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-05-30 04:57:38 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

Hi,
I don't understand your question fully. But if you want to access form binding's middle object (actually it's a map), please refer to:

http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/MVVM/Data_Binding/Form_Binding#Initialize_with_Form_Object

and manipulate the SimpleForm object that you provide for form binding.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-05-15 03:59:34 +0800

Seen: 184 times

Last updated: May 30 '12

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