<h:form prependId="false">
<p:dialog modal="true">
<p:commandLink ajax="true" value="ok" actionListener="Bean.listenerMethod"/>
</p:dialog>
</h:form>
I had some other controls too inside the form. When the link is clicked that listener was not fired. What might be the problem? please help!