jsr344-experts@javaserverfaces-spec-public.java.net

[jsr344-experts] Re: [220-ViewStateParamNameOnly] PROPOSAL

From: Bernd Müller <bernd.mueller_at_ostfalia.de>
Date: Sat, 28 Jan 2012 10:58:01 +0100

I confirm: remove id attribute

Bernd

Am 27.01.2012 22:20, schrieb Edward Burns:
> 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