How can I prevent the Spark view engine from rendering the debugging hint when a null ref exception is thrown in !{ }
? It always renders "${ expression.that.throws.nre }". The documentation states that it should render an empty string... it never mentions the behavior I'm experiencing. Using settings.SetDebug(false)
doesn't change this behavior, nor does setting the project to "Release".
views:
38answers:
1
+1
A:
$!{...}
usually does the trick.
${...}
renders ${...}
if null ref exception was faced.
Are you sure you wrote $!{}
and not ${}
or !{}
?
Arnis L.
2010-01-26 20:26:16
Ha, wow. I somehow mentally filtered out the preceding '$' every time I scanned through that page. Thanks for pointing that out :). In that case, what does !{} do?
Charles
2010-01-26 21:01:05
No ideas what `!{}` does. If it does anything at all. :)
Arnis L.
2010-01-27 06:57:57