JSF EL expressions to check empty string in propery file?

后端 未结 2 1710
一个人的身影
一个人的身影 2021-01-26 11:53

I have to check if my property file is empty for certain label based on that I have to render the element but even when the label is empty i still get the element displaying key

2条回答
  •  滥情空心
    2021-01-26 12:14

    JSF implementation displays by defaults missing resources as ???resource???, So you can use the fn:contains JSTL function in your rendered attribute like this:

     
          
          
     
    

提交回复
热议问题