官术网_书友最值得收藏!

Introduction

Forms are a key feature of any application that makes use of Visualforce. They provide a mechanism to capture data entered by the user and send this to the page controller for processing, for example, to create, edit, or delete sObject records, or to send the user to a specific page.

Users enter data through input components. Visualforce provides a specific standard component, <apex:inputField />, for entering sObject field data. This component renders the appropriate device for entering data based on the field type, such as a JavaScript date picker for a field of type Date. Input components are bound to sObject fields or controller properties via the merge syntax. Controller properties that are public and have a public getter and setter may be bound to input components without writing any further code.

Processing of the submitted form is carried out via Action methods. These may be provided automatically by the platform in the case of standard controllers, or coded using Apex in the case of extension or custom controllers. Action methods can rely on all sObject fields and controller properties bound to input components containing the latest user input when they execute.

主站蜘蛛池模板: 木兰县| 萝北县| 湘西| 临泉县| 泰和县| 华安县| 清丰县| 四子王旗| 扎赉特旗| 崇阳县| 汪清县| 安泽县| 彭山县| 衡阳县| 从化市| 周宁县| 汽车| 昌乐县| 二手房| 洪洞县| 永年县| 灵台县| 泰兴市| 古蔺县| 五台县| 济宁市| 乌审旗| 澎湖县| 巴彦县| 互助| 曲周县| 宕昌县| 临安市| 南通市| 新乐市| 榆树市| 白城市| 鲜城| 华池县| 岑溪市| 安溪县|