securityContext not available in derived property
securityContext not available in derived property;
questionCollapsed :: Bool := securityContext.principal in questionCollapsedForleads to Java compilation error:
Submitted by Eelco Visser on 7 April 2010 at 12:16
Compiling 51 source files to /Users/eelcovisser/workspace/department/.servletapp/bin/WEB-INF/classes
/Users/eelcovisser/workspace/department/.servletapp/src-generated/department/domain/Answer.java:1048: cannot find symbol
symbol : variable securityContext
location: class department.domain.Answer
return !org.webdsl.tools.Utils.equal(_questionCollapsedFor, null) && _questionCollapsedFor.contains(securityContext.setupForPropertyEvents(hibSession, out).getPrincipal());
Issue Log
This should be fixed with revision 3820.
Currently session variables are “brought into scope” where they’re needed, which means this has to be checked by the compiler everywhere a session variable might be used. Creating a SessionVar(…) constructor would allow the use of a simple rule like:
expression-to-java: SessionVar(x) -> |[ env.get(x) ]|
Log in to post comments