1.8 Final: Problems with onDemandRenderer in new version
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
1.8 Final: Problems with onDemandRenderer in new version  XML
Forum Index -> Development Build Feedback Go to Page: Previous  1, 2
Author Message
paulvr

Joined: 12/05/2008 00:00:00
Messages: 121
Offline


You need to do your processing in a subthread and update the renderer from there. And using SessionRenderer is a bit easier:

In your bean constructor call:
SessionRenderer.addCurrentSession(groupName);

In your button action handler:
public String buttonAction()
{ Thread worker = new Thread(
new Runnable()
{ public void run()
{ for (int i = 0; i < 10000; i++)
{ // do something usefull;
setPercent(i / 100);
SessionRenderer.render(groupName);
}
}
});
worker.start();
return null;
}
[Email]
 
Forum Index -> Development Build Feedback Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7ice © JForum Team