6.1.3.聽 < a4j:form > available since 3.0.0 您所在的位置:网站首页 夜魔侠超胆侠是一部剧吗 6.1.3.聽 < a4j:form > available since 3.0.0

6.1.3.聽 < a4j:form > available since 3.0.0

#6.1.3.聽 < a4j:form > available since 3.0.0| 来源: 网络整理| 查看: 265

6.1.3.聽 < a4j:form > available since 3.0.0 expand all 聽6.1.3.1. Description 聽6.1.3.2. Details of Usage 聽6.1.3.3. Reference Data 聽6.1.3.4. Relevant Resources Links6.1.3.1.聽Description

The component enhances functionality of the standard JSF component with possibility of default Ajax submission and fixes the problem with generation inside the form.

6.1.3.2.聽Details of Usage

Along with a4j:htmlCommandLink , component fixes the problem of component that cannot be re-rendered without re-rendering the whole form it belongs to. For the further details see the Ajax Form Usage page at RichFaces Livedemo.

The component adds extra functionality to non-Ajax action/command components: submission is performed via Ajax when "ajaxSubmit" attribute set to "true".

If the component works in an Ajax mode, the standard Ajax attributes such as "reRender" , "limitToList" , "requestDelay" , etc. can be used.

Example:

...                             ...

Here is a managed bean:

... public class UserBean {     private String name="";     public String nameItJohn() {         setName("John");         return null;     }     public String getName() {         return this.name;     }     public void setName(String name) {         this.name = name;     } } ...

In the example above the ajaxSubmit="true", so all standard action components on this form become ajaxable. The "reRender" attribute contains an Id of component for re-rendering after an Ajax response.

Tip:

If you have or inside a form, they work as .

Note:

You should not use component with ajaxSubmit="true" if it contains other Ajax command components. Also, due to the security reason, file upload form element cannot be convertible to the be ajaxable.

6.1.3.3.聽Reference Data

Table of attributes.

Table聽6.3.聽Component Identification Parameters

NameValuecomponent-typeorg.ajax4jsf.Formcomponent-familyjavax.faces.Formcomponent-classorg.ajax4jsf.component.html.AjaxFormrenderer-typeorg.ajax4jsf.FormRenderer6.1.3.4.聽Relevant Resources Links

Visit Ajax Form page at RichFaces Livedemo for examples of component usage and their sources.

For additional information about attributes of this component read 'Ajax Attribute section.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有