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