• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
 
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic