即使属性表单类不是从对话框类继承。但操作一个属性表单类对象类似与操作一个对话框对象。
Even though CPropertySheet is not derived from CDialog, managing a CPropertySheet object is similar to managing a CDialog object.
我实现了一个表单类(清单10)和一个表单操作类(清单11),以便于添加user页面流。
I implemented one form class (Listing 10) and one form action class (Listing 11) to facilitate the Add User page flow.
表单类包含在浏览器界面中显示的数据,并存储NCAR 将在表单中填充的数据,如 addUser.jsp 所示(清单12)。
The form class contains the data to be displayed in the browser interface and stores the data NCAR administrators fill in the form as shown in addUser.jsp (Listing 12).
本系列所给出的表单自动保存特性适用于认证的和匿名的这两类用户。
The form auto-saving feature presented in this series works with authenticated and anonymous users.
基本布局类定义了不同的表单应用程序使用的全局方法和声明。
The base layout class defines the global methods and the declarations that different form applications use.
为了保护这个表单,我们需要使用一个工具类来创建策略文档并签名。
With the form taken care of, we need a utility class to create and sign policy documents.
该编辑器的目标是开发人员,将提供基础的(类html的)任务表单辅助创建功能。
This editor targets developers and will provide basic assistance for creating (HTML-like) task forms.
在每个ActionFor m类中,扩展BP3Form并实现这些抽象方法(表单数据通过它们传递到会话或从会话传回)。
In every ActionForm, extend BP3Form and implement the abstract methods in which the form data is transported to and from the session.
可以使用ActionErrors类的add(Stringproperty,ActionErrorerror) 方法为一个表单属性关联一些错误。
You can use add(String property, ActionError error) of the ActionErrors class to associate a form property with error(s).
有了JSFUnitAPI,测试类方法可以提交表单数据,并且验证管理的bean是否被正确更新。
With JSFUnit API, the test class methods can submit data on a form and verify that managed beans are properly updated.
下一步是创建一个示例表单数据提供程序类来实现此IJsonFormDataProvider接口。
The next step is to create a sample form data provider class that implements the IJsonFormDataProvider interface.
这避免了在操作类中进行复杂编码(如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.
如果在编辑模式下显示,则表单具有类edit,因此将显示该元素。
If the is displayed in the edit mode, the form has the class edit and the element, therefore, is displayed.
如果你想要增强的数据验证类和表单处理,只需将clear . swc添加到项目的构建路径中即可。
If you want enhanced data validation classes and forms processing, add clear.swc to the project build path.
但是HttpPostedFile类的描述声明“默认情况下,所有的请求,包括表单域和上传的文件大于256KB的都缓冲到磁盘,而不是在服务器内存中。”
But the HttpPostedFile class description states that "By default, all requests, including form fields and uploaded files, larger than 256 KB are buffered to disk, rather than held in server memory."
在这个页面上添加一个 $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.
可以在表单上创建新的提交按钮并把它链接到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.
最后一点值得注意的是,清单6中的表单是submit按钮,注意它的类是submit。
The last thing to notice about the form in Listing 6 is the submit button. Notice that its class is submit.
在表单的partial类定义顶部,添加以下代码。
At the top of the partial class definition for the form, add the following code.
创建输出VXML表单元素的通用类。
注意,实际的表单保存在类声明之后的Stringform变量中。
Notice that the actual form is stored in the String form variable after the class declaration.
我用这个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.
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.
一个简单的action类,从表单页面转到显示页面。
A simple Action class to go from the form page to the display page.
在我使用alpha版时,我还不得不直接使用会员类手工为这个表单编写代码。
Since I'm using the alpha bits, though, I'll have to code this particular form by hand using the Membership class directly.
否则,实例化extaction类,并以表单post数据为属性赋值。
Otherwise, instantiate the ExtAction class and assign the properties to the values in the form post data.
表单操作类包含表单操作的行为。
我已修改了JSP文件,并创建了两个新类:一个类用来包含表单数据,一个类用来调用业务包。
I have modified the JSP file and created two new classes: one to contain form data and one to call the business package.
实际上有两种错误消息类型:在捆绑html表单的时候根据类型生成的,和提交后表单元素绑定的类生成的。
There are actually two types of validation error messages - those generated before the HTML form fields are bound to a class and those generated after the form fields are bound to the class.
除了公布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.
应用推荐