Usage of h:outputlabel vs label

In JSF 1.1 (unfortunately I'm semi-stuck using legacy infrastructure) what is the advantage (or indeed purpose) of using <h:outputlabel> when I could just use a standard <label> tag in a form?

I get the feeling it might be related to the dynamic field ID/names produced by jsf, but I'm not certain.

Upvotes: 0

Views: 144

Answers (1)

user207421
user207421

Reputation: 311001

The difference is that many of the attributes of <h:outputLabel/> can use EL expressions.

Upvotes: 2

Related Questions