I am trying to implement an ajax form with remoteForm in grails. I want to do email verification on server side so I want the emailForm div to be viewed after submit but some input values will change. However my problem is that the form needs some variables that are in pageScope
and I loose them after the submit. How can I prevent this?
<div id="emailForm">
<g:formRemote name="sendEmailsForm" url="[controller:'con', action:'emails']" method="POST" update="emailForm">
</g:formRemote>
</div>
emails.gsp
<g:render template="widgets/shareByEmailNew" model="${pageScope.variables}" model="${pageScope.variables}"/>