0

What are differences between javax.faces.bean.ManagedBean vs javax.annotation.ManagedBean? Specifically which one can be used with annotations like javax.faces.view.ViewScoped or javax.faces.bean.ViewScoped? I see that there are questions like:

  1. Java EE 6 @javax.annotation.ManagedBean vs. @javax.inject.Named vs. @javax.faces.ManagedBean
  2. Backing beans (@ManagedBean) or CDI Beans (@Named)?
  3. Why are there different bean management annotations
  4. Spring boot with JSF (2.2) managed bean is not created

But they are not completely answering my question! I'm using spring boot but just using javax.annotation.ManagedBean my bean is recognised and created successfully and also @ViewScoped beans are not working properly and are never destroyed!

Community
  • 1
  • 1
Dandelion
  • 656
  • 2
  • 11
  • 29
  • 1
    @estebanrincon You are right. I had studied that question too, but I did not find my answer there! however I edited and narrowed my question title! – Dandelion Dec 14 '16 at 12:30
  • Well one thing is for sure, when mixing different @xxx could result to weird behavior, just as you are mentioning about the `@ViewScoped`.. – esteban rincon Dec 14 '16 at 14:57

0 Answers0