How to write a hardcoded string value inside EL expression #{ } in JSF?

前端 未结 1 1728
一生所求
一生所求 2021-01-21 20:02

I am trying to do the following:

rendered=\"#{billBean.company.equals(\"something\")}\"

But the problem is I cannot write \"something\"

相关标签:
1条回答
  • 2021-01-21 20:47

    Use single quote (') to refer to a plain String inside EL:

    rendered="#{billBean.company.equals('something')}"
    
    0 讨论(0)
提交回复
热议问题