How to prevent an item from the update in the jsf?
Posted on 2011-10-16
I want to make a field as a non up-datable field in the page, to achieve this, i need to capture the old and new values entered by the user in the particular field.
I am using Xhtml & JSF.
i can get new value from the bean or by using the following logic
String newUserId = COMP_USERID.getValue().toString();
but i don't know how to get old value which is previously entered by user, if i can get the old value,then i can compare both old and new values, then i can throw the Exception.
So, kindly help me how to get it.