使用表单内部的定制函数
我们将介绍一种使用表单报告疾病爆发的情形。
You'll explore a scenario in which a form is used to report disease outbreaks.
为了方便讲解,我们创建一个简单的休假申请表单,供本文使用。
For your convenience, we created a simple leave application form to use in this article.
您也可以使用相同的数据格式创建不同的表单。
You can also create different forms using the same data format.
数据采集人员使用该表单,它是主应用程序的一部分。
Data collectors use this form, which is part of the primary application.
我们首先将使用不同的控件构建输入表单。
We will first build the input form using different controls.
一列使用一个外键链接到表单上(表中的一行)。
One column links to the form (the row in the table) using a foreign key.
您可能想知道我们为什么使用隐藏的组件触发表单恢复。
You might wonder why we're using a hidden component to trigger the form restore.
可以使用许多不同的视图技术来显示表单。
You can use many different view technologies to display your forms.
嵌入了定制函数后,可以在表单内部使用它。
After you embed the custom function, you can use of it inside the form.
表单有一种可以直接使用或回显的呈现方法。
The form has a render method that can be used or echoed directly.
在表单中,可以使用客户机格式中的所有输入元素。
Within the form you can use all the input elements available to the client format.
对于审批人,使用较小的流程加载提交的表单。
For approvers, a similar procedure is used to load the submitted form.
图2展示了与扩展一起使用的XFDL表单。
Figure 2 displays the XFDL form that is used with your extension.
要使用小部件,需要提供一个HTML表单。
该表单使用J2EE安全填写。
使用DHTML可以访问甚至修改表单字段的信息。
Using DHTML, you can access the information in a form field, or even change it.
第一个方法要求表单使用POST方法。
如果需要保存和载入表单,可以使用这个新按钮(如图4所示)。
If you save and load the form, you'll see the new button (see Figure 4).
为了代码易于理解,这里使用一个很简单的表单。
The form is kept simple so that the code can be understood very easily.
一些电话不支持使用POST方法发送表单数据。
Some phones do not support the POST method of sending form data.
这两个模块都使用同样的表单bean。
在这种情况下,Bob必须使用较大的表单。
灵活和易于使用的表单生成功能和Postback处理
Flexible and easy to use form generation and postback handling
这里没有表单,而是使用一个Lift片段。
选择您想要使用的操作,填充表单,并单击Go。
Select the operation that you want to use, fill in the form, and click Go.
使用bind和calculate创建两个表单。
用户名和密码使用 “input” 和 “secret”表单控件。
The username and password use the "input" and "secret" form controls.
如果请求是表单post形式的,该类将被使用。
在XForms中保存表单数据供日后使用也很容易。
Saving a form's data for use later is also easy with XForms.
应用推荐