0

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 ?

Mahmoud Saleh
  • 32,503
  • 116
  • 326
  • 490

1 Answers1

3

Use the rendered attribute.

<h:panelGroup layout="block" rendered="#{param.loginError != null}">
    Wrong username/password.
</h:panelGroup>

See also:

Community
  • 1
  • 1
BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513