0

Save components in database

asked 2011-11-16 14:38:15 +0800

jaider2523 gravatar image jaider2523
132 1

Hello

I have a system to survey, to create the survey macrocomponent dynamically added, each is a specific question macrocomponent selected by the Board Index.

My question is how I can save a database full macrocomponent, in other words the xxx.zul.

I also want to know how to save in the database component, such as a radio or checkbox ...

thanks

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-11-16 22:00:34 +0800

TonyQ gravatar image TonyQ
642
https://www.masterbranch....

updated 2011-11-17 02:44:55 +0800

In ZK design, we assume user is saving the "model" in the database , but not component in database.

A component is depending on page/desktop , and hard to be persisted without page/desktop.


For your purpose , your macro component contains some input component.


You could have a composer or composite component ,
which implements the getInputValue() that returns a specific view model of your survey.
and also a setInputValue() to implements all the views with your view model.


It usually takes more time to save a UI component than to save a model.

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: 2011-11-16 14:38:15 +0800

Seen: 205 times

Last updated: Nov 16 '11

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