I started to learn JSF, downloaded launched GlassFish 4 (admin port 4848 opened normally) launched a project from Horstman (he wrote) and in general it starts when launched but the properties of the beans are not displayed there. Tell me what's wrong? I would be very grateful for the help Jsf null reference to the project

Here is the code:

package com.corejsf; import java.io.Serializable; import javax.inject.Named; import javax.faces.bean.SessionScoped; @Named("user") @SessionScoped public class UserBean implements Serializable { private String name; private String password; public String getName() { return name; } public void setName(String newValue) { name = newValue; } public String getPassword() { return password; } public void setPassword(String newValue) { password = newValue; } } 
  • one
    Problem code should be listed in the question, and not be a link to a third-party resource. - user194374
  • @kff with viruses, I suppose - Senior Pomidor
  • The problem is not in the code (I’m not chasing the rating) and I can take your negative only in a constructive way - the code is laid out But with 100% probability you won’t find anything in it :) I just wanted to know if anyone had a server such anomalies. - sair

1 answer 1

Since Tomkat has no display problems, most likely the problem with Windows or glassFish does not stand up exactly. I apologize for the possible negative precipitate from my stupid question.