Wednesday, March 28, 2012

Partial Trigger programmatically

In actionlister or your bean write below code

AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTargets();

e.g. say we have two text fields it1 and it2. Set it1 autoSubmit to true and in valuechangelister give below code

AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
System.out.println("entered");
it2.setValue(it1.getValue());
adfFacesContext.addPartialTarget(it2);