users@javaserverfaces-spec-public.java.net

[jsr344-experts mirror] [jsr344-experts] [220-ViewStateParamNameOnly] PROPOSAL

From: Edward Burns <edward.burns_at_oracle.com>
Date: Fri, 27 Jan 2012 13:20:57 -0800

If we care about XML correctness, we need to fix this old issue:

http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-220

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.

ACTION: Please respond by mid week next week.

Thanks,

Ed

[1] https://maven.java.net/service/local/repositories/snapshots/archive/javax/faces/javax.faces-api/2.2-SNAPSHOT/javax.faces-api-2.2-20120126.091957-54-javadoc.jar/!/javadocs/javax/faces/render/ResponseStateManager.html#VIEW_STATE_PARAM
-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage:               | http://ridingthecrest.com/