Program below results in java compilation errors:


application hydra

section bla

define page root() {
}

define main() {
body()
}

define body (){
“blablabla”
}

entity Project {
name :: String (id)
}

define page bla(p: Project) {
main()
define body() {
for(p : Project) {
case(p.name) {
"" {“dumdidum”}
“bla” {“bladibla”}
default {“danniet”}
}
}
}
}

Submitted by Rob Vermaas on 11 June 2010 at 09:12

On 8 March 2012 at 14:23 Elmer van Chastelet commented:

The problem is that the assignment to the case value variable (%templatename%casevalXX) is done in the initializeLocalVars() method, where p is not available, because it’s only available in the for-loop.

Log in to post comments