Please i want to know what is the difference between <hutputText> and <hutputLabel>, to me they accomplish the same and i don't really know when to use which
hutputText is for just that, text output, but keep in mind this will output text for html by default so it escapes characters as needed
hutputLabel is intented to act as a label, for example, with an h:inputText control -- example <hutputLabel for="myinputid">Label Text:</hutputLabel> <h:inputText id="myinputid" value="#{mybean.property}" />
Originally posted by Yasir Bajwa: hutputText is for just that, text output, but keep in mind this will output text for html by default so it escapes characters as needed
hutputLabel is intented to act as a label, for example, with an h:inputText control -- example <hutputLabel for="myinputid">Label Text:</hutputLabel> <h:inputText id="myinputid" value="#{mybean.property}" />
thanks for your answer I have been using both of them without knowing the reason mainly because they produce identical output to me but since i now know the difference I would know when to use and when not to use
Leonardo Shikida
Greenhorn
Joined: Jan 02, 2003
Posts: 28
posted
0
outputlabel is also used automatically for validation errors