Revision history [back]

click to hide/show revision 1
initial version

asked 2015-09-24 16:53:16 +0800

eclipse1 gravatar image eclipse1

Change the value of one property from the middle object when another property is changed

Hi!

I needed to implement a mechanism to put defaults in dependent fields.

Based on observers we created the following ZKFiddle example:

zkfiddle.org/sample/3el48on/12-Observable-Form

The mechanism described in the example works but did not expect to be required to notify the changes made to the form since the objects are bound in zul.

Why the next code it's necessary?

@Command public void notifyChanges(){ BindUtils.postNotifyChange(null,null,this.observableForm,"value"); }

Thank you all :)

Change the value of one property from the middle object when another property is changedForm Bind - Default values in dependent fields

Hi!

I needed to implement a mechanism to put defaults in dependent fields.

Based on observers we created the following ZKFiddle example:

zkfiddle.org/sample/3el48on/12-Observable-Form

The mechanism described in the example works but did not expect to be required to notify the changes made to the form since the objects are bound in zul.

Why the next code it's necessary?

@Command public void notifyChanges(){ BindUtils.postNotifyChange(null,null,this.observableForm,"value"); }

Thank you all :)

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