In jsf 2.0 the <f:view>..</f:view>
(assuming f corresponds to faces tags) is said to be useful but I can see no actual use of it, if it can be omitted.
P.S.: I actually found not comments on this matter in specs.
f:view declares the beginning of a JSF page.
JavaServer Faces (JSF) 2.0, is an MVC web framework which focus on simplifies building user interfaces (comes with 100+ ready UI tags) for Java web application and make reusable UI component easy to implement. Unlike JSF 1. x, almost everything is declared in faces-config.
You can set the contentType (in some cases useful for Safari browsers), locale (I18N, L10N) and encoding with it:
<f:view locale="#{sample.locale}" encoding="UTF-8" contentType="text/html">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With