JSF 属性 未发现异常。属性不可读

JSF Property not found exception. porperty not readable

有人能帮忙吗,我就是不明白,另一个 bean 工作正常,只是那个 bean 很烂:

BEAN:

import java.io.Serializable;
import java.util.List;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;

@SessionScoped
@Named
class FeedbackController implements Serializable {

    private static final long serialVersionUID = 1L;

    private Lecture lecture;
    private List<Feedback> filteredFeedbacks;

    public Lecture getLecture() {
        return lecture;
    }

    public void setLecture(Lecture lecture) {
        this.lecture = lecture;
    }

查看:

<p:dataTable var="feedback" 
             value="#{feedbackController.lecture.feedbacks}" 

错误:

javax.el.PropertyNotFoundException: The class 'com.xxx.controller.FeedbackController' does not have a readable property 'lecture'.

因为我对这个话题很陌生,所以我什至不知道我可能做错了什么。我不明白,为什么当控制器为 @Named 且具有 public getLecture() 方法时无法访问 'lecture'。还要说的是,我有另一个具有相同原理的视图并且它工作正常,所以我想知道我在做什么。

提前致谢!

已修复: 必须是 public class FeedbackController implements Serializable {

感谢 BalusC 帮助我!