This is not normal behavior. This will happen if you bind tag handler attributes or the binding
attribute of JSF components to a property of a view scoped bean while partial state saving is turned on. This is known as issue 1492 which is fixed in (the upcoming) Mojarra 2.2.
In general, you can recognize tag handlers by the lack of the rendered
attribute. E.g. <c:if>
, <f:validator>
, <ui:include>
, etc. If you bind an attribute of such a tag handler to a property of the view scoped bean like follows
<c:if test="#{viewScopedBean.something}"></c:if>
<h:inputText><f:validator binding="#{viewScopedBean.validate}" /></h:inputText>
<ui:include src="#{viewScopedBean.includePage}" />
then the view scoped bean will be recreated everytime the view is to be restored from a partially saved state. This is a chicken-egg issue with the view scope, because in order to get the right view scoped bean, it has to be extracted from the restored view.
This will also happen if you reference a property of a view scoped bean in the binding
attribute of a JSF component.
<h:someComponent binding="#{viewScopedBean.someComponent}" />
See also:
<ui:include>
and Richfaces, if this helps. – Kenzie