About HttpServletRequestListener [ onRequestEnd ]


public class Main extends Application implements HttpServletRequestListener {
	
	Button ok = new Button("OK");
	Label lbl = new Label();

	@Override
	public void init() {

		Window window = new Window();
		setMainWindow(window);
		
		window.addComponent(ok);
		window.addComponent(lbl);
		
	}

	@Override
	public void onRequestStart(HttpServletRequest request,
			HttpServletResponse response) {
		
		lbl.setValue("Start");

	}

	@Override
	public void onRequestEnd(HttpServletRequest request,
			HttpServletResponse response) {

			lbl.setValue("End"); //  [b]
[i]
[u]
The value dont change
[/u]
[/i]
[/b] 
			
	}

}

This is called after the request is over, so the setValue will not be sent to the server. The changes to the presentation are queued and won’t be seen until the next request. A component like Refresher, or the progress indicator, will create periodic refreshes. Alternately, you can provoke a request through a push component such as IcePush.

Thank you Jean-François !