Hi All, Is there a way to abort a render in the middle of a form rewind? I am using the 'For' component from T-deli and when the following situation occurs, I want the render to abort and an error message to be displayed:
User-A loads a page with a form list of books. User-B loads the same list. User-A buys a book, effectively removing it from the inventory. After User-A checks the book out, but before User-B refreshes his screen he tries to reserve the book (modifying the record) but the record no longer exists. Now the 'For' component prevents a stale link exception from occurring, but when the Form is rendering itself again, it tries to render the now-null record and retrieve it's primary key. I can catch the exception, but I want tapestry to abort the render and reload the page from scratch while setting an error message: "Another user has removed the record you were working with" Is there any way to achieve this? Filip PS I tried to throw a pageRedirectException() but tapestry just displays the exception instead of re-directing the page. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
