0

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.

Tiny
  • 27,221
  • 105
  • 339
  • 599

1 Answers1

2

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

user207421
  • 305,947
  • 44
  • 307
  • 483
  • 1
    That depends on the view technology though. In JSP you indeed can't use EL in template text, but in Facelets you can. However, with something legacy as JSF 1.1 I wouldn't expect to see Facelets :) – BalusC Jan 14 '15 at 10:46