翻訳と辞書
Words near each other
・ Fachhochschule Düsseldorf
・ Fachhochschule Flensburg
・ Fachhochschule für Technik und Wirtschaft
・ Fachhochschule Lübeck
・ Fachhochschule Münster
・ Fachhochschule Potsdam
・ Fachhochschule Westküste
・ Fachi
・ Fachinal (Misiones)
・ Fachinal Airport
・ Fachinformationszentrum Karlsruhe
・ Fachkrankenhaus Coswig
・ Fachrudin Aryanto
・ Faceless men
・ Faceless One
Facelets
・ Facelift (album)
・ Facelift (automotive)
・ Facelift (disambiguation)
・ Facelift (product)
・ Facelift (TV series)
・ Facelift Deer
・ Facelina
・ Facelina annulicornis
・ Facelina auriculata
・ Facelina bilineata
・ Facelina bostoniensis
・ Facelina coenda
・ Facelina dubia
・ Facelina fusca


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Facelets : ウィキペディア英語版
Facelets

In computing, Facelets is an open source Web template system under the Apache license and the default view handler technology (aka view declaration language) for JavaServer Faces (JSF). The language requires valid input XML documents to work. Facelets supports all of the JSF UI components and focuses completely on building the JSF component tree, reflecting the view for a JSF application.
Although both JSP and JSF technologies have been improved to work better together, Facelets eliminates the issues noted in Hans Bergsten's article "Improving JSF by Dumping JSP"
Facelets draws on some of the ideas from Apache Tapestry,〔http://web.archive.org/web/20070706220453/https://facelets.dev.java.net/〕〔http://web.archive.org/web/20130113100928/http://www.jsfcentral.com/articles/facelets_1.html〕 and is similar enough to draw comparison. The project is conceptually similar to Tapestry's, which treats blocks of HTML elements as framework components backed by Java classes. Facelets also has some similarities to the Apache Tiles framework with respect to support templating as well as composition.
Facelets was originally created by Jacob Hookom in 2005〔http://web.archive.org/web/20130113100928/http://www.jsfcentral.com/articles/facelets_1.html〕 as a separate, alternative view declaration language for JSF 1.1 and JSF 1.2 which both used JSP as the default view declaration language. Starting from JSF 2.0, Facelets has been promoted by the JSF expert group to be the default view declaration language. JSP has been deprecated as a legacy fall back.〔JavaServer Faces 2.0, The Complete Reference by Ed Burns and Chris Schal, page 55: 'The expert group decided to move forward with Facelets as the basis for new features while letting JSP remain as a backward compatibility layer'.〕〔JSF 2.0 (JSR 314, http://jcp.org/en/jsr/detail?id=314) specification, maintenance release 2, section 10.1: 'Facelets is a replacement for JSP that was designed from the outset with JSF in mind. New features introduced in version 2 and later are only exposed to page authors using Facelets. JSP is retained for backwards compatibility.'〕
==Element conversion==

In Facelets, templates tags from a tag library can be entered in two forms: directly as a qualified xml element or indirectly via the jsfc attribute on an arbitrary non-qualified element. In the latter case the Facelet compiler will ignore the actual element and will process the element as-if it was the one given by the jsfc attribute.
The following example shows the direct usage of qualified tags:

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">










Using the jsfc attribute, the same code can also be expressed as the example given below:

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">










The above code can be viewed in a browser, and edited with conventional WYSIWYG design tools. This is not possible when directly using the qualified tags. Nevertheless, directly using qualified tags is the most popular way of using Facelets in practice 〔http://stackoverflow.com/questions/tagged/jsf〕 and is the style most used in books and examples.〔JavaServer Faces 2.0, The Complete Reference by Ed Burns and Chris Schalk〕〔Core JavaServer Faces (3rd Edition) by David Geary and Cay S. Horstmann〕

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Facelets」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.