.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "Webapp.runHandler" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" Webapp::runHandler \- Run the current state handler .SH "SYNOPSIS" .B b runHandler( \fIb() defn, String prefix=""\fP .B ")" .SH "ARGUMENTS" .PP .B "defn" The default function to run if none was specified. .PP .B "prefix" An optional prefix to allow multiple \fBrunHandler \fP calls to coexist. .SH "DESCRIPTION" .PP This runs the function called by the previous page of the application, or runs the provided default function if none was called. All functions called in this way must have the same return type. The default function takes no parameters, and all other functions take a single parameter representing the application state. .PP The optional prefix allows handlers to have different namespaces, which allows multiple handler functions to safely coexist at various parts of the web application. Note that it is not possible for a single form submission or link to call more than one handler (though they will call the default function). .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. .SH "RELATED" .PD 0 .PP .B "HTMLDocument.addLocalControlInput"(3kaya) .PD 0.4v