How can I not refresh the page when closing a modalFanelPanel?

0

I need to close a modalPanel from RichFaces to the page where the modal call was not rendered.

The action to close modalPanel looks like this:

<h:commandLink onclick="Richfaces.hideModalPanel('modalRegistroItemAnalise');">
    <h:graphicImage value="/img/delete2.jpg" width="15"></h:graphicImage>
</h:commandLink>

When I am clicking the close button when returning to the page it is being rendered and I am using tabs, rendering the page is returning to the first tab.

How to do it?

    
asked by anonymous 16.09.2015 / 13:38

1 answer

0

In order not to render every page, you just have to return false in the sentence.

<h:commandLink onclick="Richfaces.hideModalPanel('modalRegistroItemAnalise'); return false;">
      <h:graphicImage value="/img/delete2.jpg" width="15"></h:graphicImage>
</h:commandLink>
    
12.02.2016 / 18:50