Hellow I am trying to load a jsf page depending on a parameter I pass from a previous page.
I am passing the parameter in the url and trying to read it in the @PostConstruct method of the second page's managed bean to determine what to display in the second page.
The parameter I pass is already defined in the second page's managed bean as the following:
@ManagedProperty("#{param.displayText}")
String displayText;
but the problem is that when I try to read the value of displayText in the @PostConstruct method it is still set to null.
I noticed that all fields in the managed bean are still set to null at the time @PostConstruct method executes.
any help please, is there any other method I should be using other than @PostConstruct?