I've got a simple commandbutton which fires an action method in a backing bean. This method returns a string. In some cases null, in some cases an explicit navigation.
<p:commandButton value="Button" action="#{obj.submit}" onstart="PF('busy').show();" oncomplete="PF('busy').hide()">
In case navigation is triggered, I want to show a popup. But how can I check if the method returns an empty string / null ?