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

[jsr344-experts] [758-ViewActions] f:viewAction requires at least one f:viewParam into f:metadata section

From: Leonardo Uribe <lu4242_at_gmail.com>
Date: Thu, 13 Dec 2012 19:18:52 -0500

Hi

Implementing this feature in MyFaces, I notice that to make f:viewAction
work as expected, you need to set at least one f:viewParam in to the
page.

This happens because JSF 2.2 section 2.2.1 says this:

"... Call ViewMetadata.getViewParameters(). If the result is a non-empty
Collection, do not call facesContext.renderResponse() ..."

The idea is simple: only execute the full jsf lifecycle if required.

This leads to an inconsistency. Or the documentaton of f:viewAction does
not mention the requerimento of f:viewParam to work, or section 2.2.1
should be updated to ensure do not call facesContext.renderResponse
when a f:viewAction is found.

One way or another, a change in the spec/taglibdoc is necessary.

regards,

Leonardo Uribe