There are a lot of possible reasons for this which all ultimately boils down to the chicken-egg issue as described in JSF issue 1492. You are using <h:someHtmlComponent binding="...">
to bind an UI component to a view scoped managed bean property, or you are binding an attribute of a tag handler like <c:if test="...">
, <ui:include src="...">
, etc to a view scoped managed bean property.
This is scheduled to be fixed in JSF 2.2. Until then, your best bet is to look for alternative approaches or to set the context parameter javax.faces.PARTIAL_STATE_SAVING
to false
.
See also:
- Communication in JSF 2.0 - @ViewScoped fails in tag handlers