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检索绑定标签包含步骤