Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试执行以下操作:
rendered="#{billBean.company.equals("something")}"
但问题是我不能"something"在里面写#{}。它会导致以下 XML 解析错误:
"something"
#{}
元素类型“h:commandLink”必须后跟属性规范“>”或“/>”。
我怎样才能做到这一点?
使用单引号 (') 来指代StringEL 中的纯文本:
String
rendered="#{billBean.company.equals('something')}"