How to use && in EL boolean expressions in Facelets?

前端 未结 2 1298
终归单人心
终归单人心 2021-01-30 12:18

I am having a little trouble figuring out how to do and\'s on EL expressions in Facelets. So basically I have:



        
2条回答
  •  说谎
    说谎 (楼主)
    2021-01-30 12:47

    In addition to the answer of BalusC, use the following Java RegExp to replace && with and:

    Search:  (#\{[^\}]*)(&&)([^\}]*\})
    Replace: $1and$3
    

    You have run this regular expression replacement multiple times to find all occurences in case you are using >2 literals in your EL expressions. Mind to replace the leading # by $ if your EL expression syntax differs.

提交回复
热议问题