开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜