How can I not update a page when closing a Richfaces modalPanel?

Asked

Viewed 87 times

0

I need that when closing a Richfaces modalPanel the page on which the modal was called is not rendered.

The action to close the modalPanel is 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, while rendering the page is returning to the first tab.

How to do?

1 answer

0

To not render every page just apply the 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>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.