开发者

Short circuit operator for JSF(P) EL

开发者 https://www.devze.com 2023-02-23 03:39 出处:网络
Are there short circuit operators for Expression Language used in JSF, JSP? I mean&&,|| Java analog,when if it\'s obvious that further evaluation of boolean has no sens开发者_如何转开发e, tha

Are there short circuit operators for Expression Language used in JSF, JSP?

I mean &&,|| Java analog,when if it's obvious that further evaluation of boolean has no sens开发者_如何转开发e, that evaluation is stopped.

I observed usage of and, or operators and looks like they're not short circuit.


It are definitely short circuit operators.

#{bean.left or bean.right}

The right hand won't be evaluated when the left hand evaluates true.

#{bean.left and bean.right}

The right hand won't be evaluated when the left hand evaluates false.

0

精彩评论

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