1Webapp.runHandler(3kaya)     Kaya module reference    Webapp.runHandler(3kaya)
2
3
4

NAME

6       Webapp::runHandler - Run the current state handler
7

SYNOPSIS

9       b runHandler( b() defn, String prefix="" )
10

ARGUMENTS

12       defn The default function to run if none was specified.
13
14       prefix  An  optional prefix to allow multiple runHandler calls to coex‐
15       ist.
16

DESCRIPTION

18       This runs the function called by the previous page of the  application,
19       or runs the provided default function if none was called. All functions
20       called in this way must have the same return type. The default function
21       takes  no  parameters,  and all other functions take a single parameter
22       representing the application state.
23
24       The optional prefix allows handlers to have different namespaces, which
25       allows multiple handler functions to safely coexist at various parts of
26       the web application. Note that it is not possible  for  a  single  form
27       submission or link to call more than one handler (though they will call
28       the default function).
29

AUTHORS

31       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
32       (kaya@kayalang.org). For further information see http://kayalang.org/
33

LICENSE

35       The  Kaya  standard  library  is free software; you can redistribute it
36       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
37       License  (version  2.1  or  any later version) as published by the Free
38       Software Foundation.
39
41       HTMLDocument.addLocalControlInput (3kaya)
42
43
44
45Kaya                             December 2010        Webapp.runHandler(3kaya)
Impressum