-1

Code:

@ManagedBean(name="userbean")

Error message

the attribute name is undefined for the annotation type ManagedBean

Kukeltje
  • 12,223
  • 4
  • 24
  • 47
chemlali
  • 29
  • 1
  • 3

2 Answers2

0

Maybe you have imported the wrong type.

Try:

import javax.faces.bean.ManagedBean;
-1

Try this

@ManagedBean
public class UserBean...{}

and when using so use #{userBean.action()}

Jandrei
  • 39
  • 5