Use html tag to replace JSF components, when possible

0

I'm starting the studies with JSF (JavaServer Faces) and writing an xhtml file, I had the following dilemma:

Why not use HTML tag replacing some JSF compiler, when possible? Example: use: <label for="nome">Nome</label> instead of <h:outputLabel value="Nome" for="nome"/>

This practice improves application performance, does the server have fewer components to process, or does it make no difference, since all tags will be processed by the server?

    
asked by anonymous 20.06.2016 / 19:48

1 answer

0

You can use HTML and JSF tags on the same page. The advantage of using the JSF components is that you can access them through the JSF component tree. With HTML tags you can not.

References:

Mixing JSF Tag and HTML

JSF / Facelets: why is not it good idea to mix JSF / Facelets with HTML tags?

    
20.06.2016 / 20:37