So, in your use case, the original user sign-up form is still up in the browser window when the user goes to their email, clicks the link (launching a new window) -- updating the user record and then the user returns to the form that is open, makes a change and submits? That would cause a opt lock failure.

When a user signs up, do you redirect to a page saying something like "Hey, just sent you an email to make sure you are a real person. etc"? Or are you just returning the form again? Redirecting to another page would help since then the user would have to go edit their profile to bring up the form, which is impossible since they can't login until they are verified.

-D


On Jun 4, 2008, at 1:27 PM, Anil Sharma wrote:


I am building a web application using tapestry/spring/hibernate based on
appfuse.

During signup process I send an email with a link to verify the email
address and take user automatically to next step to fill another form in the
browser.

When user clicks on the link in email, there is an database update with
email verified flag marked as true and version incremented.

When user click mail link and afterwards submits the next form with his changes, there is optimistic locking failure thrown since version has been
updated by his clicking mail link in separate browser window.

I want to handle this exception as to merge users changes as well as mark
email verified flag as true.

I don't want to inform user about it since I know already clicking on mail
link updated the version field and hence the conflict with optimistic
locking failure

How to go about it??
Edit/Delete Message Reply With Quote Multi-Quote This Message Quick reply to
this message

--
View this message in context: 
http://www.nabble.com/Optimistic-Locking-Failure-Handling-tp17655867s2369p17655867.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to