-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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.
Asked: 2011-11-16 14:38:15 +0800
Seen: 205 times
Last updated: Nov 16 '11