Refresh unique id when changing between cases
Posted by rhyno0315 on
URL: https://discuss.orbeon.com/Refresh-unique-id-when-changing-between-cases-tp3306904.html
Hi!
In our application we have used Struts2 actions with Orbeon XForms. In initial case (request) to form is linked hidden parameter (eg uniqueId) from Struts2, and when submitting the form (basically it means switching from request to response case) it stays the same, that is ok.
It is allowed to switch from response form to request and when we do that this parameter stays the same, but we want it to be generated again, because cannot allow to submit the form with the same parameter twice.
Basically I think it is better to refresh the whole page and let the Struts2 generate this parameter again. Or maybe there are some ways to refresh this parameter with Orbeon support?
Thanks in advance,
Michael