Hello,
I am trying to do the following:
I need to dynamically create different forms.
For example:
Form A has three fields: name, first_name, last_name
Form B has four fields: name, last_name, date
So each form has some unique fields and some other fields that are common for other forms too.
So my initial idea was to store in a table the different metadata for each field, the positions, the field names, etc.
Then create the form fields depending on that metadata on-the-fly.
But then I will have problems with the handlers: some form items must have handlers, some others not, etc.
Another idea was to serialize each field to disk with all its methods and characteristics (so the handlers would be also serialized with the fields), and to load them on-the-fly to create a the form.
But it's that feasible? Would smartGWT permit that serialization?
Or do you have another idea with the help of smartGWT that can help me in this scenario?
I am using I am using SmartGWT 2.4 EE.
Thank you
I am trying to do the following:
I need to dynamically create different forms.
For example:
Form A has three fields: name, first_name, last_name
Form B has four fields: name, last_name, date
So each form has some unique fields and some other fields that are common for other forms too.
So my initial idea was to store in a table the different metadata for each field, the positions, the field names, etc.
Then create the form fields depending on that metadata on-the-fly.
But then I will have problems with the handlers: some form items must have handlers, some others not, etc.
Another idea was to serialize each field to disk with all its methods and characteristics (so the handlers would be also serialized with the fields), and to load them on-the-fly to create a the form.
But it's that feasible? Would smartGWT permit that serialization?
Or do you have another idea with the help of smartGWT that can help me in this scenario?
I am using I am using SmartGWT 2.4 EE.
Thank you
Comment