cdi - JSF Property not found exception. porperty not readable -
can out, don't it, other bean works fine, i'ts bean sucks:
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; }
view:
<p:datatable var="feedback" value="#{feedbackcontroller.lecture.feedbacks}"
error:
javax.el.propertynotfoundexception: class 'com.xxx.controller.feedbackcontroller' not have readable property 'lecture'.
since i'm quite nooby subject, dont know i'm possibly doing wrong. dont get, why not possible access 'lecture' when controller @named , has public getlecture() method. say, i've got view same priciple , works fine, suppose know i'm doing.
thanks in advance!
fixed it: must public class feedbackcontroller implements serializable {
thanks balusc helping me out!
Comments
Post a Comment