valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
Sample usage in valueChangeListener method:
public void copyPresentAddress(ValueChangeEvent vce){ vce.getComponent().processUpdates(FacesContext.getCurrentInstance()); Boolean sameAsPresentAddress = sameAddressCheckbox.isSelected(); if(sameAsPresentAddress){ ADFUtil.invokeEL("#{bindings.copyPresentAddress.execute}"); } else{ ADFUtil.invokeEL("#{bindings.resetPermanentAddress.execute}"); } }
But, if you're interested in getting both old as well as new values, you can use the methods getOldValue() and getNewValue() of valueChangeEvent.
Sample Method:
public void copyPresentAddress(ValueChangeEvent vce){ String oldValue =(String) vce.getOldValue(); String newValue = (String) vce.getNewValue(); if("residence".equals(newValue)){ //logic to render residence address region } }
20170303shizhong
ReplyDeletemichael kors outlet
jordan pas cher
ghd straighteners
jimmy choo
oakley sunglasses
nike air max outlet
coach outlet
michael kors handbags
kd 9 shoes
polo ralph lauren
Zoology Optional for IAS/IFoS
ReplyDeleteStarting from 26th Nov. 2018
Online Class Available
Limited Seats, Join Now
Visit: www.sapiensias.in
Call: 8700922126 || 011-2875 6962 || 9718354962
Email: sapiensias@gmail.com
Address: 17A/44, W.E.A. 3rd Floor, Near Karol Bagh Metro Station (Pillar No. 99), New Delhi- 110005.
https://www.sapiensias.in/course/zoology/zoology-optional-coaching/