The components of primefaces have the label
attribute. But by default when we are going to create a component like autoComplete
we first use outputLabel
and make the association through for
. As in the example:
<p:outputLabel value="Min Length (3):" for="acMinLength" />
<p:autoComplete id="acMinLength" minQueryLength="3" value="#{autoCompleteView.txt2}" completeMethod="#{autoCompleteView.completeText}" effect="fade" />
Does this association of for
replace label
or does it have some utility that the association does not cover?