如果 URL 中存在参数,如何渲染组件
我有一个包含一些文本的 div 如果 url 中存在参数,我想显示它,
就像 JSTL 中那样,
<c:if ${param.loginError!=null}>
<div>
Wrong username/password
</div>
</c:if>
如何在 JSF 中做到这一点?
i have a div that contains some text
and i want to display it if a parameter is presented in the url
as in JSTL
<c:if ${param.loginError!=null}>
<div>
Wrong username/password
</div>
</c:if>
how to do that in JSF ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
rendered
属性。另请参阅:
Use the
rendered
attribute.See also: