source: trunk/grails-app/controllers/dbnp/query/SimpleQueryController.groovy @ 505

Last change on this file since 505 was 505, checked in by vinlud, 11 years ago

Set correct view

  • Property svn:keywords set to Date Author Rev
File size: 615 bytes
Line 
1/**
2 * SimpleQueryController Controler
3 *
4 * Description of my controller
5 *
6 * @author  vincent@ludden.nl
7 * @since       20100526
8 * @package     dbnp.query
9 *
10 * Revision information:
11 * $Rev: 505 $
12 * $Author: vinlud $
13 * $Date: 2010-06-01 09:30:53 +0000 (di, 01 jun 2010) $
14 */
15package dbnp.query
16
17class SimpleQueryController {
18        /**
19         * index closure
20         */
21    def index = {
22      redirect( action:'pages')
23    }
24
25    def pagesFlow = {
26
27        onStart {
28            println "Starting webflow simpleQuery"
29            flow.page = 0
30                        flow.pages = [
31                [title: 'Query'],
32                                [title: 'Results']
33                        ]
34            }
35
36                query {
37                        render(view: "/simpleQuery/mainPage")
38                }
39    }
40}
Note: See TracBrowser for help on using the repository browser.