bowler-framework / Bowler

RESTful Web Framework based on Scala, built on top of Scalatra & Scalate
http://bowlerframework.org
BSD 3-Clause "New" or "Revised" License
119 stars 13 forks source link

ValidationErrors not returned if there is no previous GET URL #17

Closed wfaler closed 12 years ago

wfaler commented 12 years ago

From the mailing list: My scenario is of someone following an "expired" link from another website, email, bookmark... But this can be any invalid request that comes from somewhere else so there is no previous GET URL. What I would like to do is to use the validationErrors in the view of the current request. Or to be able to set the view that will display the validationErrors

wfaler commented 12 years ago

Fixed. Can now map POST path -> error path in BowlerConfigurator.errorRenderMap, this takes precedence over last GET path if it exists.