This is a snippit of my code in the form:
<p:commandButton styleClass="btn" action="#{testController.create}" value="create" ajax="false" />
Everything works fine but my problem is when i refresh the page (hitting f5), it invokes the create method again, is there any way to not invoke create method when refreshing the page? I need my button to have ajax="false"