0

DataBinder: Changing default save-when and save for all components

asked 2010-03-04 05:13:59 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

Hi,

I have some pages, when all my components using databinding have save='false', and other pages, when all components have save-when=''. Is a tedious to write it again and again. Is it possible to change the default behaviour of the binder just for the current page and not for the whole application?

Thanks

delete flag offensive retag edit

6 Replies

Sort by ยป oldest newest

answered 2010-03-10 03:01:54 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

Feature Request ID: 2967264

link publish delete flag offensive edit

answered 2010-03-09 20:10:26 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

@xmedeko,

Would you help post this to ZK Features, so we can track it. Thanks.

link publish delete flag offensive edit

answered 2010-03-05 01:56:49 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

For the whole app, you may redefine each component in lang-addon.xml.

link publish delete flag offensive edit

answered 2010-03-04 15:18:22 +0800

madruga0315 gravatar image madruga0315 flag of Brazil
937 2 12

I have the same needs, would be nice to define a default behavior for the whole app.

link publish delete flag offensive edit

answered 2010-03-04 07:54:20 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

updated 2010-03-04 07:56:18 +0800

Well, then I must have a macro for each input component, then it's better to write save-when='none'. I was looking for something like

binder.setDefaultXXX()

Maybe I can go through all component in the page and set this annotation, but would not work when some components are dynamically added.

link publish delete flag offensive edit

answered 2010-03-04 06:06:06 +0800

TOtte gravatar image TOtte
93 2

yes you can use macro components
e.g.: <?component name="intbox" extends="intbox" save-when="none"?>
I haven't tested this, but it should work this way.

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: 2010-03-04 05:13:59 +0800

Seen: 1,651 times

Last updated: Mar 10 '10

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