code: public String getViewState(FacesContext context) {
          Object state = saveView(context);
          return context.getRenderKit().getResponseStateManager().getViewState(context, state);
      }
docs: <p class="changed_added_2_0">
  Convenience method to return the view state as a <code>String</code> with
  no <code>RenderKit</code> specific markup.
  
  This default implementation of this method will call {@link #saveView(javax.faces.context.FacesContext)}
  and passing the result to and returning the resulting value from
  {@link ResponseStateManager#getViewState(javax.faces.context.FacesContext, Object)}.
  </p>
  
  @param context {@link FacesContext} for the current request
  
  @since 2.0