Why isn't possible to open an rich:modal through an dropDownenu/menuItem?
Everytime i try it, my modal opens, but i got a refresh on my page.
How could I open my modal without refreshing my page? How could I say to rich:menuItem for doesn't call any url?
Here comes a sample of a modal calling through dropDowMenu:
<rich:menuItem> <a4j:commandLink> <h:outputText value="Holiday" /> <rich:componentControl for="holidayModal" operation="show" event="onclick"/> </a4j:commandLink> </rich:menuItem>
use
<rich:menuItem submitMode="none" onclick="...show()" value="Holiday"/>