Need some help to open a modal panel when I click the menuItem. Please refer to the code below. If the run this code, the modelPanel opens and just closes off in a sec. Am I doing something, please let me know. I am using richfaces 3.3.3 Final version
<h:outputLink value="#" id="link"> (Over here I also tried a4j:commandLink but it did not work, I also tried with reRender but still it did not work)
<rich:componentControl for="testModal" operation="show" event="onclick" attachTo="link"/>
Please let me know
you need to call a JS Function Richfaces.showModalPanel('testModal'). The best way to do this could be either to have a onclick="Richfaces.showModalPanel('testModal');return false" or within an Ajax-Component at the oncomplete-Method. Since your link does a Page Submit the Modal Panel disappears.