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.
我已经呈现了如下所述的情况。ui:fragment render="#{ navigationBean.currentUri == '/login/selectEnv.jsf' || navigationBean.currentUri == '/home/home.jsf'}"
但是 || 条件不起作用。是否可以检查渲染属性中的两个条件。对此有什么替代方法吗?
您可以使用“或”关键字来使用或操作。
ui:fragment rendered="#{ navigationBean.currentUri == '/login/selectEnv.jsf' or navigationBean.currentUri == '/home/home.jsf'}"
我的模板中有一行需要帮助修复。
如果用户将开始<div>标签或结束标签</div>或任何其他与结构相关的 HTML 标签发布到内容中,则会导致页面上的模板混乱。
<div>
</div>
我htmlentities在标题和其他形式上使用。不幸的是,我不能在这里这样做,因为内容字段有一个丰富的编辑器,我需要保持文本样式标签完整(
htmlentities