Calling of actionListener on commandButton on refresh
Hi,
I am using one command button. On click , it is adding one record in tabel. It is creating some problem for me. It is working properly means it is adding proper data. But it went wrong, after adding a new row in table, if i do a refresh on that page it calls the actionListener method again. I can handle the duplicate data in the method. But i dont know why he is calling the actionListener on refresh of page ,
My command button is
<h:commandButton value="Add In Table" actionListener="#{User.addInTable}" />
I want to use onClick tag. But it just call Java Script function. i want ot call the addInTable() written in User Bean.
Thanks in Advance

