Why 'UserBean' is created twice? It happens when I visit the page first time. Next times the bean creates once. It has a default constructor with system out. So why does it happen?
<h:body>
<h3>#{userBean.requestParametr}</h3>
<h:form id="form">
<p:panel id="panel">
<h:panelGrid columns="3">
<h:outputLabel for="email" value="E-mail: " />
<p:inputText id="email"
value="#{userBean.email}"
required="true"
label="E-mail">
</p:inputText>
<h:outputLabel for="password" value="#{msg['_password']}: " />
<p:inputText type="password" id="password"
value="#{userBean.password}"
label="#{msg['_password']}"
required="true">
</p:inputText>
</h:panelGrid>
<p:commandButton id="btn" value="#{msg['_enter']}" update="panel"
action="#{userBean.login}" />
</p:panel>
</h:form>
</h:body>