Hi, I am reading chapter 2 of Core
JSF 3rd edition,
I found an issue that the @Named CDI bean does not work with my GlassFish 4.1:
The index.xhtml accessing the FaceServlet is:
I noticed that the quizBean.answer always return "" no matter what I input. Please see the attached image for the index.xhtml.
But when I modify into this:
Everything works. The quizBean can get the answer and navigate to the next quiz question.
It seems like the
does not navigate to the next page when @Named CDI bean is used.