<h:commandLink value="Request Permission" rendered="#{dataTableWidgetVar.permissionStatus} eq null?true:false">
<f:setPropertyActionListener value="#{DocData}" target="#{requestController.docResult}" />
</h:commandLink>
<h:outputText value="#{dataTableWidgetVar.permissionStatus}" rendered="#{dataTableWidgetVar.permissionStatus} eq 'Request Pending'?true:false">
In the above code, I have a commandlink and an outputtext. I am rendering them on some condition.
commandlinkwould render when"#{dataTableWidgetVar.permissionStatus}would be null.outputtextwould render when"#{dataTableWidgetVar.permissionStatus}would equal to a String value “Request Pending”.
But, when I run this code, it shows nothing. Neither the commandlink nor the outputtext.
I want to know what I am doing wrong here.
Is the condition #{dataTableWidgetVar.permissionStatus} eq null?true:false" or anything else wrong? I have tested by printing values on same xhtml page of #{dataTableWidgetVar.permissionStatus} to make sure that even I am getting the values or not, and they are present.
try