0

Creating dynamic forms

asked 2013-04-19 13:03:42 +0800

lsilvapina gravatar image lsilvapina
0

updated 2013-04-19 13:08:49 +0800

Hi

I'm new to ZK, so i'm not sure yet of what ZK can do.

We want to store some "field templates" in a database. Example, a Name (represented by a String), an Age (an Integer), and some other stuff.

In that way we could build forms using our application instead of coding .zul and controllers for each kind of different form.

I've done some examples for ZK, very basic stuff, but i noticed that i need a @Wire annotation for each visual component to be used in the controller. But since we want to create the forms dinamically, we need a way to use the @Wire annotation in any number and various kinds of objects (For example, Name would be a Textbox and Age a Spinner)

My question is:

what mechanism does ZK provides that i can use to achieve that?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-19 13:16:00 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Yes you are what you can do just wire Window components and add all child Components which will be loaded from DB will be added later as a child component.

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-04-19 13:03:42 +0800

Seen: 39 times

Last updated: Apr 19 '13

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