valuechangelistener in jsf
Posted
by chetan
on Stack Overflow
See other posts from Stack Overflow
or by chetan
Published on 2010-05-25T07:09:36Z
Indexed on
2010/05/25
7:11 UTC
Read the original article
Hit count: 261
jsf
public void departmentChangeListener(ValueChangeEvent event){
Long id = (Long) event.getNewValue();
department = id;
if(department == -1 || department == 0){
employee=0;
displayEmployee = false;
} else{
changeEmployee();
employee=0;
displayEmployee = true;
}
}
This is the method that call in valuechangeListener attribute of ice:selectOneMenu tag but here problem is value of employee set 0 when we second time change value from selectOneMenu's List.
© Stack Overflow or respective owner