ManagedBean : currentDocument is null in the constructor

Hi, I've created a managed bean with JSF. My page xhtml is displayed.

The first time, he enter in the constructor of my managedBean, but the currentDocument Object is null the first time. After, when he gets a field that I'm using in the xhtml, the currentDocument is not null.

Why in my contructor the currentDocument object is null ?

Thanks a lot.

0 votes

0 answers

1323 views

ANSWER