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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
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
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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.