How to save DynaForm values into database

Community Driven Extensions Project
Post Reply
User avatar
Mucuraga
Posts: 12
Joined: 08 Jun 2012, 21:08
Location: Turkey

15 Nov 2012, 22:35

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

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

15 Nov 2012, 23:01

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?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Nov 2012, 23:19

Moved to extensions.

User avatar
Mucuraga
Posts: 12
Joined: 08 Jun 2012, 21:08
Location: Turkey

15 Nov 2012, 23:30

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?
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.
But if the form is dynamically built, what to persist? what entity. This is the problem.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

16 Nov 2012, 14:20

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

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests