<f:view> has to enclose all of your JSF tags if you are using a JSP viewhandler, so STYLE 1) is the most flexible as you can add tags before and after html tags, inside the head tag, etc. Doesn't really matter other than that. If you only use JSF tags in your body, STYLE 3 is fine too.
On 3/15/06, Lindholm, Greg <[EMAIL PROTECTED]> wrote: > I've seen at least 3 different location for <f:view> as shown below. > Is there any concensus on this? > Any insite or reasoning for a choice? > > > STYLE 1) JSF In Action > ---------------------- > <f:view> > <html> > ... > </html> > </f:view> > > > STYLE 2) Core JSF > ----------------- > <html> > <f:view> > <head> > ... > </head> > <body> > ... > </body> > </f:view> > </html> > > STYLE 3) Mastering JSF > ---------------------- > <html> > <head> > ... > </head> > <body> > <f:view> > ... > </f:view> > </body> > </html> > > > Greg >

