I want to render different primefaces components based on thr string value. How to check if the string is empty in 'rendered' attribute?
You should use the empty
EL operator:
<p:someComponent rendered="#{not empty suchBean.veryStringWow}"/>
<p:differentComponent rendered="#{empty suchBean.veryStringWow}"/>
If the bean String property is empty or null, the "different component" is rendered.