Refresh client in Java

0
How to refresh client in Java? I want rndNumParameter1 to update nicely in the web browser while the Java executes. while(processParameter1.getMendixObject().getValue(getContext(), "running")==true){ int max=32; int min=0; long range = (max-min); Random r = new Random(); long number = (long)(r.nextDouble()*range)+min; Core.getLogger("ja_process_rndNumGen").info(number); rndNumParameter1.getMendixObject().setValue(getContext(), "num", number); Thread.sleep(1000); } I think maybe I can set up a microflow in MBM and call that from Java, but is there a way to do it just in Java? Thankyou
asked
1 answers
2

Take a look at the community commons. You have a java action there refresh by class. That does what you want.

Regards,

Ronald

answered