Hi there,
I'm working on a new School Project.
I've got a datatable with Patient data also I've created for that a Model Patient.
Now I've add one column more inside this column I've got four inputtext(inputmask) (Morning, Afternoon, Evening, Night) field which allows just one number.
Each field got a binding of type
String. In the getter Method I add each of this values in a ArrayList.
The User Need to pass one number to each field to say how many cigarettes the Patient smoked each day.
There is a submit button in my Controller I check if every field got a value inside if not there will Popup a Message.
If there User changes the value after Submit it just adding new values to the ArrayList and doesn't Change the first value.
I want that it changes the value inside the Arraylist at the right Position rather than to add a new one and Keep the old (and wrong) value inside the Arraylist.
Patient Model
My Controller
My Datatable