Actual behavior:

  1. Write the following code “define viewUser(u : User)”
  2. Try to call it with “navigate(viewUser(u)){output(u.name)} }”
  3. Building results in:

    [java] [ Main | info ] stage 3: typechecking
    [java] * Gamestile.app:21/29: error: Page with name ‘viewUser’ does not exist, this call expects a page with signature viewUser(User).
    [java] viewUser(u)
    [java] : [user/system] = [2,19s/0,00s]

Expected behavior:

WebDSL should notify me that I forgot the ‘page’ keyword, instead of sending me on a wild goose chase to find out why it’s not working.

Submitted on 26 February 2010 at 13:19

On 22 March 2010 at 19:57 Danny Groenewegen commented:

Related to this issue, the following example doesn’t report anything, but results in a broken app:

define page root() {
  navigate root2() { "123" }
}
define root2(){"dsfdgdsf"}

Log in to post comments