which way is better (difference?) [ August 19, 2008: Message edited by: nimo frey ]
posted 8 years ago
Application#createComponent() is JSF implementation dependent. It might for example either return just HtmlOutputText or another component which extends HtmlOutputText. You for one can also have extended HtmlOutputText and if you want to use it in the createComponent() instead, then you can use Application#addComponent() for it.
If you don't need it all, then just instantiating it plain is sufficient and it is performancewise also a bit faster.