The spec [1] requires that the hidden field for the view state must have
both a name and an id attribute, and that the value for both must be
"javax.faces.ViewState". Naturally, this causes problems when you have
multiple forms and want to me XML correct.
Mojarra has long had a config param for this,
com.sun.faces.enableViewStateIdRendering, which is on true by default,
but I'm wondering if we can just modify the spec to remove the
requirement to have an "id" attribute.