该编辑器的目标是开发人员,将提供基础的(类html的)任务表单辅助创建功能。
This editor targets developers and will provide basic assistance for creating (HTML-like) task forms.
本系列所给出的表单自动保存特性适用于认证的和匿名的这两类用户。
The form auto-saving feature presented in this series works with authenticated and anonymous users.
在表单的partial类定义顶部,添加以下代码。
At the top of the partial class definition for the form, add the following code.
创建输出VXML表单元素的通用类。
在这个页面上添加一个 $form变量,它将被替换为InputPage类中表单字段的HTML输出。
Put a $form variable on the page, which will be substituted with the HTML output from the form field on the InputPage class.
下一步是创建一个示例表单数据提供程序类来实现此IJsonFormDataProvider接口。
The next step is to create a sample form data provider class that implements the IJsonFormDataProvider interface.
Struts系统会在Formbean类中为每个表单属性生成一对getter方法和setter方法。
The Struts system will generate a pair of getter and setter methods for each form property in the form bean class.
有了JSFUnitAPI,测试类方法可以提交表单数据,并且验证管理的bean是否被正确更新。
With JSFUnit API, the test class methods can submit data on a form and verify that managed beans are properly updated.
可以使用ActionErrors类的add(Stringproperty,ActionErrorerror) 方法为一个表单属性关联一些错误。
You can use add(String property, ActionError error) of the ActionErrors class to associate a form property with error(s).
可以在表单上创建新的提交按钮并把它链接到page类中的一个方法,使用的声明见清单2。
You can create a new submit button on a form and link the button to a method on your Page class using the declaration shown in Listing 2.
注意,实际的表单保存在类声明之后的Stringform变量中。
Notice that the actual form is stored in the String form variable after the class declaration.
这避免了在操作类中进行复杂编码(如struts1示例所示),将表单bean转换为相关域模型对象。
This allows avoidance of complex coding in the action class (as shown in the Struts 1 example) for converting the form bean in to the related domain model object.
我用这个Firebug扩展来查看现有注册表单字段的CSS (Cascading StyleSheet)样式,以确保我的定制字段具有相同的css样式类。
I used the Firebug extension to view the Cascading style Sheet (CSS) styles of the existing registration form fields to make sure my custom fields had the same CSS style class.
基本布局类定义了不同的表单应用程序使用的全局方法和声明。
The base layout class defines the global methods and the declarations that different form applications use.
一个简单的action类,从表单页面转到显示页面。
A simple Action class to go from the form page to the display page.
组件类现在负责定义和管理表单控制器模型。
The component class is now responsible for defining and managing the form control model.
PDF表单是不同于LotusForms的一类电子表单,它可以是没有任何交互字段的静态二进制文件,也可以是嵌入动态xml的XML Forms Architecture (XFA)表单。
The PDF form is a type of e-form that is different from Lotus Forms. It can be a static binary file with no interactive fields or a dynamic XML-embedded XML Forms Architecture (XFA) form.
表单操作类包含表单操作的行为。
我已修改了JSP文件,并创建了两个新类:一个类用来包含表单数据,一个类用来调用业务包。
I have modified the JSP file and created two new classes: one to contain form data and one to call the business package.
在考虑操作类、bean、表单或支持类的实现细节之前,您应当先考虑应用程序配置文件的实现。
Before considering the implementation details of the action classes, beans, forms, or the supporting classes, you should first think about the implementation of the application configuration files.
TradeRequest类记录用户在填写一个创建交易的表单时的输入信息,并且还提供一个验证方法。
The class TradeRequest collects the information entered by the user when filling in a create trade from and also contains a validation method.
除了公布HTML表单字段的名称外,这个类还允许访问原始文件名、文件大小(单位为字节)和文件的MIME类型。
In addition to exposing the name of the HTML form field, this class also gives you access to the original file name, the size in bytes, and the file's MIME type.
除了公布HTML表单字段的名称外,这个类还允许访问原始文件名、文件大小(单位为字节)和文件的MIME类型。
In addition to exposing the name of the HTML form field, this class also gives you access to the original file name, the size in bytes, and the file's MIME type.
应用推荐