refresh(view, context);
public ViewSelection refresh(ExternalContext externalContext) throws FlowExecutionException { assertActive(); if (logger.isDebugEnabled()) { logger.debug("Resuming execution for refresh"); } RequestControlContext context = createControlContext(externalContext); getListeners().fireRequestSubmitted(context); try { try { resume(context); State currentState = getCurrentState(); if (!(currentState instanceof ViewState)) { throw new IllegalStateException("Current state is not a view state - cannot refresh; " + "perhaps an unhandled exception occured in another state?"); } ViewSelection selectedView = ((ViewState) currentState).refresh(context); return pause(context, selectedView); } catch (FlowExecutionException e) { return pause(context, handleException(e, context)); } catch (Exception e) { return pause(context, handleException(wrapException(e), context)); } } finally { getListeners().fireRequestProcessed(context); } }
refresh(view, context);