• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsf not updating the database

 
muntago Richard
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

jsf not updating the database

i tried to update the database but null values were updated. I think the problem
is from the form inputs

below is the form fields and the bean class
























 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's correct. JSF is not updating the database.

JSF doesn't do databases. Could care less about databases, in fact. Anything done with a database is something you have to do yourself.

Aside from that, you shouldn't be attempting to use the JSF EL as a "programming language" and passing parameters with it.
 
muntago Richard
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Update is not among Data Manipulation Language just like Insert,Delete etc. If yes then your wrong.
i have achieve a lot of things with jsf.
They must be away and i guess the problem is from the form fields

 
Avik Mazunder
Ranch Hand
Posts: 39
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
instead of
muntago Richard wrote:



you have to use



I think this will solve your problem...!












 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not a good way to solve it, though. Although in this particular case, you can probably use this code safely, consistently coding like that will eventually open you up to SQL injection attack exploitation.

A PreparedStatement is a better approach.
 
muntago Richard
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have resolved the problem. its from the form inputs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic