我正在学习JSF,需要一些帮助。我试图在页面中进行声明性验证,但是呈现的所需消息在HTML标记中出现了两次。
在我的托管bean中,有一个students字段指向一个学生实体,该实体有以下字段firstName、otherNames、surName。
托管Bean是这样的:
@ViewScoped
public Class FormController implements Serializeble{
private List<Student> students = new ArrayList<>();
@PostConstruct
public void