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
  • 33,303
  • 119
  • 337
  • 498

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,082,665
  • 372
  • 3,610
  • 3,555