@TemplatePath("/templates/createSone.html")
@ToadletPath("createSone.html")
class CreateSonePage @Inject constructor(webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) :
- SoneTemplatePage("createSone.html", webInterface, loaders, templateRenderer, pageTitleKey = "Page.CreateSone.Title") {
+ SoneTemplatePage(webInterface, loaders, templateRenderer, pageTitleKey = "Page.CreateSone.Title") {
private val logger = Logger.getLogger(CreateSonePage::class.java.name)
logger.log(Level.SEVERE, "Could not create Sone for OwnIdentity: $ownIdentity")
}
setCurrentSone(soneRequest.toadletContext, sone)
- throw RedirectException("index.html")
+ redirectTo("index.html")
}
templateContext["errorNoIdentity"] = true
}