Name the library Tomahawk, as shown in Figure 4.
将库命名为 Tomahawk,如图 4 所示。
Find the Tomahawk library's drawer on the palette.
在配置板上找到tomahawk库的drawer。
Give the new definition a name (for example, tomahawk).
给新定义起一个名字(例如,tomahawk)。
Now open the library definition editor for the Tomahawk library.
现在为tomahawk库打开库定义编辑器。
Now you will configure visualizations for some of the Tomahawk controls.
现在您就可以为您的Tomahawk控件去配置可视化了。
Find the Data control to create combo box and select Tomahawk Data Table.
找到Datacontroltocreate组合框并选择Tomahawk DataTable。
From the Tomahawk palette drawer, drag a dataTable tag onto the page.
从Tomahawk配置板drawer中,拖拉datatable标签到页面中。
In the Palette view, ensure that the Tomahawk drawer is expanded and open.
在Palette视图中,确保Tomahawkdrawer展开并打开了。
Go back to the library definition editor for Tomahawk and find the column tag.
转回至tomahawk的库定义编辑器,并找到column标签。
Now only your Tomahawk template will appear in the list, as shown in Figure 10.
现在列表之中将会只显示Tomahawk模板了,如图10所示。
Listing 20. Additional entries to the web.xml file for use with Facelets and tomahawk.
清单20.web . xml文件的其他条目,用于Facelets和tomahawk。
The application USES a few of the Tomahawk validators and a custom validator class.
应用程序使用了一些Tomahawk验证器及一个定制validator类。
I looked around uneasily, half expecting to see Ginette coming after me with a tomahawk.
我忐忑不安地四下里望望,半心半意地预备看到吉乃特举着战斧朝我追来。
If there isn't already one on the page, drop a Tomahawk command button from the palette.
如果页面中什么都没有,您就从配置板中拖拉一个Tomahawk命令按钮。
Next, create a library definition for the Tomahawk library and examine its elements.
接下来,为tomahawk库创建一个库定义,并检查它的元素。
You will use this mechanism to update the Tomahawk tag library in your test project.
您将会使用这种机理,来升级测试项目中的Tomahawk标签库。
You should see the tomahawk URI listed as a library that has newer configuration available.
您会看到tomahawkURI作为可用的新配置列出来。
Finally, it renders a Tomahawk calendar component if it is a date (see "About Tomahawk").
最后,如果是日期(参见“关于Tomahawk”),则呈现Tomahawk日历组件。
In the following example, you make it easier to add new columns to a Tomahawk data table.
在接下来的例子中,向Tomahawk数据表添加新列,会变得更加容易。
Open the Tomahawk library definition and go to the Drop Properties section for the column tag.
打开tomahawk库定义并转至column标签的DropProperties部分。
The third column of this table contains a Tomahawk Output Text control, just like your template.
该表的第三列包括有一个Tomahawk OutputText控件,就像您的模板一样。
Some components in the Tomahawk library also require a filter to handle resource requests at runtime.
tomahawk库中的一些组件同样需要一个过滤器,以处理运行时的资源请求。
Let's step through the application a little further before exploring more of the Tomahawk components.
在探索更多Tomahawk组件之前,我们更深入地研究一下应用程序。
Finally, you will add individual Tomahawk controls to a web page and then bind them to our sample data.
最后,您要向网络页面添加私人的Tomahawk控件,然后将它们与我们的范例数据相绑定。
The Tomahawk message component must be associated to another component for which it reports the error.
Tomahawkmessage组件必须与另一个组件相关联,以便报告错误。
Then you will create data templates based on some sample data and generate Tomahawk controls bound to that data.
然后您要基于一些范例数据来创建数据模板,并生成与数据相绑定的Tomahawk控件。
Answering Yes to the resource update dialog causes the project configuration steps for Tomahawk to be run again.
在资源更新对话框中回答Yes,以继续对Tomahawk的项目配置工作。
MyFaces provides all of the classes required by the spec, as well as some additional JSF components called Tomahawk.
MyFaces提供了规范所要求的全部类,以及被称为 Tomahawk的其他JSF组件。
You might also want to download the example code for this article and install Facelets (and Tomahawk) before going further.
在进一步深入学习之前,您也可能想下载本文的示例代码,并安装Facelets(和Tomahawk)。
The use of Apache MyFaces Tomahawk validators and components were demonstrated along with the visual output to the browser.
本文演示了ApacheMyFacesTomahawk验证器和组件的用法以及浏览器的可视化输出。
应用推荐