0

setValue does not update client-side

asked 2013-09-18 13:27:24 +0800

jaktinat gravatar image jaktinat
3 1

I create a custom component (according to 'component development essential'), with this mold:

      out.push('<input type="text" name="value" ', this.domAttrs_(), ' />');

and implement a widget that extends FormatInputElement . but when i use this.setValue("anything"); client-side textbox is still empty. i think server-side can not communicate with client-side

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-09-20 09:40:09 +0800

roliroli gravatar image roliroli
164 4

Hello, setValue only update the server value but not client value.

You can use smartUpdate method to update the client value simply.

More detail please refer to http://books.zkoss.org/wiki/ZKComponentDevelopment_Essentials

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: 2013-09-18 13:27:24 +0800

Seen: 15 times

Last updated: Sep 20 '13

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