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 ?
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 ?
Use the rendered
attribute.
<h:panelGroup layout="block" rendered="#{param.loginError != null}">
Wrong username/password.
</h:panelGroup>