Please, help with timer..
I have the following code:
@Command
@NotifyChange("*")
public void timer() throws JAXBException, ServiceException {
getStatusSystemActive();
}
@NotifyChange({ "logsList", "slotsList", "statusSystem",
"groupAsignationList" })
public void getStatusSystemActive() throws JAXBException, ServiceException {
statusSystem = statusSystemService.getStatusSystem();
errorXml = statusSystemService.isError();
getErrorMessageBoxGeneric();
if (statusSystem != null) {
if (statusSystem.getStatus().equals("STOP")) {
setStatusSystem(true);
} else {
setStatusSystem(false);
}
if (statusSystem.getEvento().equals("STOP")) {
eventoSystem = true;
} else {
eventoSystem = false;
}
if (statusSystem.getModo().equals("IN")) {
modoSystem = true;
} else {
modoSystem = false;
}
}
}
But I do not achieve this "label" is updated.
For example: if it has to put START and is in STOP, if the timer is executed the value does not update me to START.
Thank you.
↧