-1

Oracle source defines h:outputLabel as used to attach a label to an input field. But the next example uses nested h:outputText in it. What is the purpose of using both?

Edit : Answer found here

lutfucan
  • 151
  • 3
  • 12
  • That question was about h:outputLabel and its for attribute. This one is about h:outputText and its relationship with h:outputLabel. – lutfucan Mar 14 '17 at 06:50
  • Why do you think there is a relation between `h:outputText` and `h:outputLabel`? I'd hope it is clear what an `h:outputText` is and since the duplicate describes the other, you effectively have the 'difference' as requested in your title. And you refer to some oracle text but don't post a link to it. How should we guess then... – Kukeltje Mar 14 '17 at 08:59
  • In duplicates, pay attention to the answer, not the question. – BalusC Mar 14 '17 at 09:24

1 Answers1

0

The difference lies in the HTML code they generate.

h:outputText is for generic text required anywhere in an HTML page.

h:outputLabel is required to generate the ...

This link about outputLabel will make the difference between the two clear.

Community
  • 1
  • 1
dev8080
  • 3,950
  • 1
  • 12
  • 18