I'm trying to use this in JSF to dynamically show the title of a page.
<h:panelGroup rendered="#{not empty searchBean.fsResultsTitleOne}"><h2>#{msgs.fireStudySearchTitle}</h2></h:panelGroup>
And I'm getting this error:
rendered="#{not empty searchBean.fsResultsTitleOne}": Property 'fsResultsTitleOne' not found on type
However, I did define it in on the type like this:
private String fsResultsTitleOne;
public String getFSResultsTitleOne(){return fsResultsTitleOne;}
public void setFSResultsTitleOne(String newValue){fsResultsTitleOne = newValue;}
And set it to something:
setFSResultsTitleOne("I'm not Empty!");
And even used this to make sure it would be set:
System.out.println("This is the FS Results Page Title: " + fsResultsTitleOne);
And it seems to be working:
This is the FS Results Page Title: I'm not Empty!
Am I setting it wrong someplace?