0

ZK 8 Form Binding Using ProxyHelper

asked 2016-12-27 13:06:03 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

Hi

Here is the Fiddle http://zkfiddle.org/sample/345uiae/3-Form-Proxy-Validation#source-1

Here is my Problem.

  1. I am doing manual validation on click of Save.
  2. When click of save, after messagebox is shown, then Form Dirty is False.
  3. So i have a logic to save only when form dirty is true.
  4. So when i check that condition, it always return false and values are never changed after save.
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-12-28 01:25:29 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2016-12-28 01:30:48 +0800

thanks for creating an example, unfortunately it didn't run (you used a <dirty> tag, which doesn't exist). So I can't really verify what you actually tested.

I made it working (using <label>) and the dirty status updated to true when the name is changed and also goes back to false when saved.

I also show a way how to notifyChange the status when setting a new value in your VM code.

Here the updated example: http://zkfiddle.org/sample/345uiae/4-Form-Proxy-Validation

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2016-12-27 13:06:03 +0800

Seen: 20 times

Last updated: Dec 28 '16

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