How to get old value from JSF / ADF authentication?

I have a requirement to check the JSF / ADF input field only if the value of this field has been changed by users. If the value on the page matches the value in the model, skip the check for this field.

I use JSF and Oracle ADF Faces, I know the JSF life cycle, and I can make my own converter or validator, but I can not find the old value anywhere.

+4
source share
1 answer

During validation, the old value must be accessible by UIInput#getValue() .

 public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException { Object oldValue = ((UIInput) component).getValue(); // ... } 
+5
source

Source: https://habr.com/ru/post/1303618/


All Articles