• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Cant store data in database table Hibernat/Spring/JSF

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am extending Alfresco and created a table in database, i want to do view/add/edit/delete operations on that table. For that I created a jsp and showed the table data in a datatable JSF component.

Secondly, I have two input fields and a Save (submit) command button. This button calls a method saveLookupItem of LookupTable Bean. Here is the command button with two input fields.



When command button is pressed, following method is called successfully.


This above method eventually calls the save method of A DAO lookupTableDao which is as follows



This save method runs without any error but does not save any value. On the other hand methods that fetch data from db table like "findAll" and "findById" work fine. Please suggest what can I do to insert/save data.

JSF Managed bean



spring bean which is defined in application-context.xml




 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a transactionManager to commit the save?

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic