myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eitan Gur" <>
Subject Browser refresh button problem
Date Thu, 16 Feb 2006 07:57:18 GMT


The notorious browser refrsh button is giving me a hard time.

I have an <h:dataTable> element with several fields in it, amongst them a "delete" button:

<h:commandButton value="Delete" immediate="true" action="#{userlistbean.doDelete}" onclick="if(!confirm('Are
you sure you want to delete that user?')) return false"></h:commandButton>


If I delete any record (except of the last one), press refresh and approve the browser's POSTDATA
confitmation, the next record is being deleted as well.


I tried moving the state saving to the client as was proposed here before:





                        State saving method: "client" or "server" (= default)

                See JSF Specification 2.5.2




but it didn't help.


Does anyone have an idea of how to solve this?



View raw message