开发者

How can I make !{ } in SparkViewEngine not render anything?

开发者 https://www.devze.com 2022-12-18 16:46 出处:网络
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 t

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.开发者_Python百科 Using settings.SetDebug(false) doesn't change this behavior, nor does setting the project to "Release".


$!{...} usually does the trick.

${...} renders ${...} if null ref exception was faced.

Are you sure you wrote $!{} and not ${} or !{}?

0

精彩评论

暂无评论...
验证码 换一张
取 消