facelets

facelets

 英

  • 網絡非模板標簽指南

例句

The last parameter, facelets. DEVELOPMENT, is not required, but allows you to use the error-handling facility of Facelets.

最后一個參數facelets.DEVELOPMENT不是必需但是允許使用Facelets錯誤處理工具

If you used Facelets only to define and use templates, you might be a bit disappointed.

如果Facelets定義使用模板那么可能有點失敗

Having a tag library is nice, but for it to be useful, you have to tell Facelets that it exists.

一個標記但是有用必須存在告訴Facelets

Facelets seems to really scratch an itch for the JSF development community.

Facelets好像確實符合JSF開發社區需求

The steps to install Facelets are easy to follow.

安裝Facelets步驟容易

You can use a Facelets TagHandler to inject the logic to decide whether components in the body of a tag are added to the component tree.

可以使用FaceletsTagHandler注入邏輯決定是否標記組件添加組件

In fact, Tapestry was well ahead of its time when it first came out, and Facelets does draw on some of its ideas.

實際上Tapestry出現時候大大領先時代Facelets確實借鑒一些想法

In that it leaves room for some Facelets love and a field composition component to get rid of duplicate code.

類似Facelets一個字段復合組件空間可以避免重復代碼

Remember that the endgame of a Facelets template is to create a JSF component tree.

切記Facelets模板最后階段創建JSF組件

Even with some shortcomings, I strongly recommend that you download Facelets and start using it as quickly as possible.

雖然有些缺點強烈推薦下載Facelets盡快開始使用

Tags in Facelets because everything is treated as a component in a component tree.

標記因為所有東西當成組件組件

You can use JSF components directly within the Facelets templating language without any additional development.

Facelets模板語言可以直接使用JSF組件不用任何額外開發

Facelets knows about the JSF component tree, and its sole purpose in life is to build that component tree.

Facelets知道JSF組件唯一目的就是構建這個組件

Another required parameter to use tag libraries with Facelets is the facelets. LIBRARIES parameter.

使用帶有Facelets標記需要另一個參數facelets.LIBRARIES參數

For Facelets templates to take effect, you need to tell JSF about the Facelets view handler.

Facelets模板生效需要Facelets視圖處理器告訴JSF

These elements perform that task and also effectively replace the normal Facelets entry in faces-config. xml.

這些元素執行這個任務有效地替換faces-config.xml常規Facelets條目

This template page uses the insert and the include tags from the Facelets library, associated with the ui namespace.

模板頁面使用Faceletsinsertinclude標記ui名稱空間相關聯

If your JSF application is a JSF 2 (or a Facelets), place the tag library declaration in the XHTML page, as shown in Listing 2.

如果JSF應用程序JSF2(Facelets),標記聲明XHTML頁面清單2所示

I mentioned earlier that I changed this application from one that used strictly servlets and JSPs to MyFaces and Facelets.

前面已經說過應用程序進行改造嚴格使用servletJSP更改使用MyFacesFacelets

You might also want to download the example code for this article and install Facelets (and Tomahawk) before going further.

進一步深入學習之前可能下載本文示例代碼安裝FaceletsTomahawk)。

For starters, I show you a pain-free way to do Internationalization using a Facelets expression language (EL) function.

首先介紹一種使用Facelets表達語言EL函數進行國際化簡便方法

The SetValueBindingHandler just defines a variable and puts the variable in the Facelets scope so your logic tags can reuse the variable.

SetValueBindingHandler定義一個變量變量放置Facelets作用域這樣邏輯標記可以重用變量

Replacing JSP with an alternative viewing technology based on Facelets.

使用基于Facelets視圖技術代替JSP

Facelets solves a pet peeve of mine about internationalization: writing a lot of special code for something I may never need.

Facelets解決國際化帶來煩惱編寫大量可能永遠代碼

See a complete listing of Facelets parameters.

請參閱Facelets參數完整清單

If you use a new JSF component library, you have to have a Facelets tag library file that exposes that library.

如果使用JSF組件必須公開這個Facelets標記

Facelets is a much more comprehensive solution: a templating language that is geared toward the JSF component model.

Facelets更加全面解決方案JSF組件模型定制模板語言

Register the facelets-taglib descriptor file.

注冊facelets-taglib描述符文件

In the remaining two articles in this series, I will explore Facelets, JSF 2's composite components, and built-in support for Ajax.

系列隨后文章探討Facelets、JSF2復合組件以及Ajax內置支持

JSF 2. 0 simplifies page and component authoring through Facelets, Templating, and Composite Components.

JSF2.0借助Facelet模板復合組件簡化頁面組件編寫

Listing 3 shows another web. xml entry needed for Facelets.

清單3顯示Facelets需要另一個條目

Element that is declared before the tag element above: you ll need it later to use this tag library from another Facelets page.

元素稍后需要通過其他Facelets頁面使用這個標記

Facelets obviates the need to write custom tags to use JSF components.

Facelets減少編寫定制標記才能使用JSF需求

Now it's time to explore how Facelets is used and why it makes things easier in JSF application development.

現在開始探索如何使用Facelets以及使JSF應用程序開發變得容易原因

Facelets (or similar) support is a goal for JSF 2. 0, and the primary Facelets developer is on the JSF Expert Group.

JSF2.0目標獲得Facelets類似支持主要Facelets開發人員屬于JSF專家

Extract facelets-1. 1. 11. zip to a directory.

facelets-1.1.11.zip壓縮目錄

To overcome this, you can use the following expression in your Facelets page to prepend the namespace to your javascript code

克服一點可以Facelets應用下面表達式javascript代碼預先設定命名空間

The steps to create and use a Facelets template are as follows

創建使用Facelets模板步驟如下

For debugging, you need to read the Facelets manual, turn on its JDK 1. 4-style logging, and set up its

調試需要閱讀Facelets手冊打開JDK1.4樣式日志根據開發情況設置

There are four steps to creating a tag that retrieves a value binding in Facelets

創建Facelets檢索綁定標簽包含步驟