Use of the component label

0

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?

    
asked by anonymous 02.10.2018 / 19:35

0 answers