Skip to Main Content

How to do refresh uicomponents in background thread?

2724905Dec 15 2015 — edited Dec 15 2015

Jdev 12.1.3

Hello, how i do to refresh a component in background thread?

I have a utils method that refresh

public void listener(ActionEvent event){

     refreshComp('pb1');

} // it's refresh

public void listener(ActionEvent event) {

    Runnable r = new Runnable(){

       @Override

       public void run(){

            refreshComp('pb1'); // nullpointer

        }

    };

    Thread test = new Thread(r);

     test.start();

} // not's refresh

Utils method :

FacesContext.getCur...addPartialTarget(JSFUtils.findInRoot(id))

This post has been answered by kdario on Dec 15 2015
Jump to Answer
Comments
Post Details
Added on Dec 15 2015
6 comments
1,105 views