Community
Participate
Working Groups
Currently all implementations of IPhase access the current display. I.e. their method body begins with Display display = RWTLifeCycle.getSessionDisplay(); // do something with display To avoid this duplication, I suggest to change the signature of the execute method to void execute( Display display ); and let the (single) caller pass in the display. What do you think?
With bug 340927 resolved, the JavascriptResponseWriter (former HtmlResponseWriter) no longer throws IOExceptions. Hence there is no need any more for IPhase#execute() to declare throws IOException.
Created attachment 193703 [details] Proposed changes IPhase#execute() now requires the display on which it should operate as an argument. PhaseExecutor (used by SimpleLifeCycle) now has an abstract getDisplay() method so that the LifeCycle implementation can supply the current session display (which can change from null to non-null and back with each phase).
Applied patch to CVS HEAD