3. XML Markup Languages
Contents
>
3. Facelets Concepts
> XML Markup Languages
One of the best things about Facelets is that it allows you to bind pages written in any
XML markup language, such as XHTML, WML, or even XML itself, to JSF UI components, managed
beans, and message bundles. It is very flexible, and renders dynamic XML documents based on
any XML schema or DTD.
This makes Facelets an ideal choice for multi-client Web applications that present the
same content to multiple browser technologies, from Internet browsers to mobile phones to
handheld devices.
"JSFC" Attribute Feature
Like the Apache Tapestry framework, Facelets allows page designers to decorate standard
HTML tags with a special attribute to indicate that certain tags should be treated as
server-side components by the Web application framework.
This approach has the benefit of allowing Dreamweaver to display standard HTML tags in
WYSIWYG mode while allowing page designers to indicate that some tags are actually component
tags to be handled by the server in a special way.
|