Details
Description
When the web configuration param "org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS" is set to false, after the first ajax call, all further ajax calls fail. The failure occurs with a ViewExpiredException on the next ajax call. The reason is that the sequence number part of the view state is being lost during the first ajax call. (See HtmlResponseStateManager.getViewState() where baseState is lost when isHandlingStateCachingMechanics(facesContext) returns false.