• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

facelets and XHTML

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why we need to use xhtml in facelets and what are the benifits of using xhtml pages in facelets.
 
Saloon Keeper
Posts: 24325
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HTML doesn't have a rigorous set of encoding rules the way XML does. For example, in HTML, it is perfectly legal and quite common to code a <p> tag by itself with no corresponding closure.

XHTML is a form of HTML that is constrained to follow the forms of XML, and thus can be easily parsed by an XML parser, A <p> by itself would be invalid - you'd have to code <p></p> or <p/>.

Because XHTML can be processed by an XML parser, the Facelets framework can use an off-the-shelf XML processor to do its work instead of having to puzzle out the ambiguous structures that are common to HTML.

I think that in context to your specific question, the advantage of the xhtml pages is that they can be assembled into display panes using the Facelets tiling facility.
 
vinutha
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim,

Thanks for your explaination...........
reply
    Bookmark Topic Watch Topic
  • New Topic