Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's because you're <em>actually</em> using an application scoped Spring managed bean instead of a request scoped JSF managed bean.</p> <p>Your main mistake is that you're mixing JSF bean management annotations with a Spring bean management annotation and somehow are expecting that they seamlessly understand each other. </p> <pre><code>@Controller @ManagedBean @RequestScoped </code></pre> <p>This is thus not true. You effectively end up with two completely independent managed bean instances, one managed by JSF and another managed by Spring. The <code>@RequestScoped</code> annotation is specific to JSF bean management facility. The Spring's equivalent, <code>@Scope("request")</code> is absent and therefore the Spring managed bean defaults to the application scope. When referencing the bean in EL scope like so <code>#{logInBean}</code>, the Spring managed one gets precedence over JSF managed one because of the Spring bean EL resolver and you ultimately end up with an application scoped Spring managed bean. This totally explains the symptoms.</p> <p>Fix it accordingly by getting rid of JSF bean management annotations and placing the desired Spring scope annotation:</p> <pre><code>@Controller @Scope("request") </code></pre> <p><em>(an alternative would be to get rid of Spring bean management annotation and replace <code>@Autowired</code> by <code>@EJB</code>, like as one would normally do when using standard Java EE stack without any 3rd party library)</em></p> <p>If you <em>still</em> face this problem, then another possible cause would be that you're submitting the login synchronously while not having <code>autocomplete="off"</code> on the input fields, head to this Q&amp;A then: <a href="https://stackoverflow.com/questions/8504739/disable-web-browser-password-save">Disable web browser password save</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload