N
N
Natalia Tsarkevich2014-02-07 22:43:19
Java
Natalia Tsarkevich, 2014-02-07 22:43:19

How should I write source code in jsf?

how to write condition code in jsf? ("if so-and-so, then so-and-so")
Standard spelling as in jsp is not accepted.
PS In general, it is necessary to enter a value in a hidden field, but (and I already asked such a question) the option does not work stubbornly

<h:inputHidden value="#{informationController.token}" />

in the presence of appropriate getters and setters of the object

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Lopatin, 2014-02-08
@lorus

Use the standard rendered attribute .

T
Taupwnz, 2014-02-08
@Taupwnz

In general, the ternary operator works in jsf:
For example,
And the rendered attribute is responsible for the very presence of the corresponding HTML tag ( <input type="hidden".../>in our case.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question