I have a field in a JSF form that is bound to a database field that is really a calculated value, depending what the user enters into the value field the calculated values needs to change and be stored. I have written a java script function that does the calculation and updates the screen, but when I try to save the value with the submit button I get the old value for the calculated field. Not sure why this is happening.
Any help is appreciated.
Himanshu Kansal
Ranch Hand
Joined: Jul 05, 2009
Posts: 257
posted
0
Does the updated value reflect in the textfield? Try to alert out the value of this textfield when you click submit and see what you get.
Experience and talent are independent of age
Scott Minor
Greenhorn
Joined: Nov 05, 2001
Posts: 5
posted
0
Yes the value is updated in the textfield by when I save the data to the database it doesn't show the new value. Its still the old one.