Start by creating a simple template that will create a Tomahawk Output Text control for a Java object. 开始时,您要创建一个简单的模板,该模板为一个Java项目创建了一个Tomahawk输出文本控件。
Next, create a library definition for the Tomahawk library and examine its elements. 接下来,为Tomahawk库创建一个库定义,并检查它的元素。
You will see that for the Tomahawk dataTable it has been set to the standard JSF var attribute. 您将会看到对于TomahawkdataTable,它被设置成了标准JSFvar属性。
I showed you how to update the field composition component to work with dates ( Tomahawk calendar), Booleans ( check boxes), and all manner of Java types that should be displayed as text. 我还为您演示了如何更新字段复合组件来处理日期(Tomahawk日历)、Boolean(复选框)和各种应显示为文本的Java类型。
So in your example here, set the library version to1.1.8 to represent which Tomahawk JAR file you used. 所以在本例中,将库版本号更改为1.1.8,以代表您使用的TomahawkJAR文件。
You will use this mechanism to update the Tomahawk tag library in your test project. 您将会使用这种机理,来升级测试项目中的Tomahawk标签库。
If there isn't already one on the page, drop a Tomahawk command button from the palette. 如果页面中什么都没有,您就从配置板中拖拉一个Tomahawk命令按钮。
The third column of this table contains a Tomahawk Output Text control, just like your template. 该表的第三列包括有一个TomahawkOutputText控件,就像您的模板一样。
Give the new definition a name ( for example, tomahawk). 给新定义起一个名字(例如,tomahawk)。
And you examined a few of the many capabilities of Facelets, such as templating and error handling, and how to configure a Tomahawk-based JSF application to use Facelets. 还研究了一些Facelets功能,例如模板化和错误处理,以及如何配置基于Tomahawk的JSF应用程序,以便使用Facelets。
Let's step through the application a little further before exploring more of the Tomahawk components. 在探索更多Tomahawk组件之前,我们更深入地研究一下应用程序。
To complete this example, I installed Tomahawk support into the application. 为完成此示例,我在应用程序中安装了Tomahawk支持。
In the following example, you make it easier to add new columns to a Tomahawk data table. 在接下来的例子中,向Tomahawk数据表添加新列,会变得更加容易。
Go back to the library definition editor for Tomahawk and find the column tag. 转回至Tomahawk的库定义编辑器,并找到column标签。
Find the Tomahawk library's drawer on the palette. 在配置板上找到Tomahawk库的drawer。
In the Palette view, ensure that the Tomahawk drawer is expanded and open. 在Palette视图中,确保Tomahawkdrawer展开并打开了。
Click OK to allow the tool to add Tomahawk into the test project ( notice that the button tag was also added into the page). 点击OK以允许工具添加Tomahawk到测试项目中(注意按钮标签也会添加至页面)。
Some components in the Tomahawk library also require a filter to handle resource requests at runtime. Tomahawk库中的一些组件同样需要一个过滤器,以处理运行时的资源请求。
You have seen that by default Rational Application Developer will add the JAR file for a third-party library ( for example, tomahawk. jar) into a Web project automatically. 现在您已经知道,默认条件下,RationalApplicationDeveloper将会自动向第三方库添加JAR文件到Web项目中(例如,tomahawk.jar)。
For example, you could create an iterative template to generate the Tomahawk dataTable and column tags when a list of data is dropped. 例如,在拖拉数据列表时,您可以创建一个迭代模板以生成TomahawkdataTable和column标签。
Then you will create data templates based on some sample data and generate Tomahawk controls bound to that data. 然后您要基于一些范例数据来创建数据模板,并生成与数据相绑定的Tomahawk控件。
Now you will configure visualizations for some of the Tomahawk controls. 现在您就可以为您的Tomahawk控件去配置可视化了。
The Tomahawk message component must be associated to another component for which it reports the error. Tomahawkmessage组件必须与另一个组件相关联,以便报告错误。
The application uses a few of the Tomahawk validators and a custom validator class. 应用程序使用了一些Tomahawk验证器及一个定制validator类。
This is the Tomahawk casino. 这是托默霍克赌场。
The tomahawk was important to the American Indian. 战斧对美洲印第安人极为重要。
Come by the Tomahawk tonight. dinner's on me. 今晚带着战斧过来参加我的晚宴。
Speaking as ship and submarine-fired Tomahawk cruise missiles hit Libyan military targets, Mr. 奥巴马讲话时,美国军舰和潜艇发射的战斧式巡航导弹正在打击利比亚军事目标。
You wanna know the problem with the Tomahawk casino? 你想知道汤姆霍赌场的问题吗?
You got out of the tomahawk, into your car. 你开着自己的车离开汤姆霍赌场。