Is there a way to stop polling without clicking any buttons? The polling should start as soon I go to a page and stop when actionListener reads duration == 0
Code: Select all
private boolean stopPollingPanel1 = true;
public void checkNextDurationPanel1(ActionEvent actionEvent) {
if (isStopPollingPanel1()) {
duration = this value is coming from database;
if (duration == 0) {
stopPollingPanel1 = false;
//populate database results in the RequestBean
}
}
}
Thank you
Jey.