Hello all, I have decided to use DynaForm. I am not able to save field values posted from DynaForm.
Is there any sample code about persisting values from dynamically created forms?
Thanks for any help
How to save DynaForm values into database
Dynaform is an extensions component, so if it was relevant, it shoudl be asked in that forum. But since this component is not responsible for storing data anywhere, it is just a matter of taste howto store it in a database... Jpa, jpa2, hibernate, ibatis,plain jdbc... What excactely is yor problem?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Moved to extensions.
If the form is statically built and backing bean properties too, I can form entity object from posted field values and persit entity easily. No matter.kukeltje wrote:Dynaform is an extensions component, so if it was relevant, it shoudl be asked in that forum. But since this component is not responsible for storing data anywhere, it is just a matter of taste howto store it in a database... Jpa, jpa2, hibernate, ibatis,plain jdbc... What excactely is yor problem?
But if the form is dynamically built, what to persist? what entity. This is the problem.
I can not understand you what is the problem. Showcase shows how it works. Look http://fractalsoft.net/primeext-showcas ... cUsage.jsf When you press "Submit" button, values will be stored in DynaFormModel --> your data object. Data object in the first showcase is BookProperty.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
-
- Information
-
Who is online
Users browsing this forum: No registered users and 10 guests