1/28/2024 0 Comments Icefaces 4.3See Using the Standard Converters for more information on how to use this attribute. Identifies a converter that will be used to convert the component's local data. Table 10-4 Input Tag Attributes Attribute For more information on resource relocation, see Resource Relocation Using h:outputScript and h:outputStylesheet Tags. The head and body tags are useful mainly for resource relocation. The following is an example of an XHTML page using h:head and h:body tags: īoth of the preceding example code segments render the same HTML elements. The following is an example of an XHTML page using the usual head and body markup tags: The h:body tag represents the body element of an HTML page. ![]() The h:head tag represents the head element of an HTML page. The HTML head ( h:head) and body ( h:body) tags add HTML page structure to JavaServer Faces web pages. If you click the Update Quantities hyperlink, the values in the quantity fields will be updated in the shopping cart. If you click the Continue Shopping hyperlink, none of the changes entered into the quantity input fields will be processed. The immediate attribute of the Continue Shopping hyperlink is set to true, while the immediate attribute of the Update Quantities hyperlink is set to false: The quantity field for each book does not set the immediate attribute, so the value is false (the default). The bookshowcart.xhtml page of the Duke's Bookstore case study has examples of components using the immediate attribute to control which component's data is updated when certain buttons are clicked. ![]() The reason is that any events, conversion, and validation associated with the field occur after request parameter values are applied. If the button's immediate attribute is set to true but the field's immediate attribute is set to false, the event associated with the button is processed without updating the field's local value to the model layer. The event associated with the button as well as the events, validation, and conversion associated with the field are all handled when request parameter values are applied. If the immediate attributes of both the button and the field are set to true, the new value entered in the field will be available for any processing associated with the event that is generated when the button is clicked. Suppose that you have a page with a button and a field for entering the quantity of a book in a shopping cart. You need to carefully consider how the combination of an input component's immediate value and a command component's immediate value determines what happens when the command component is activated. Input components and command components (those that implement the ActionSource interface, such as buttons and links) can set the immediate attribute to true to force events, validations, and conversions to be processed when request parameter values are applied. For each of the components discussed in the following sections, Writing Bean Properties explains how to write a bean property bound to that particular component or its value.įor reference information about the tags and their attributes, see the JavaServer Faces Facelets Tag Library documentation. The next section explains the important attributes that are common to most component tags. ![]() The components are discussed in more detail in Chapter 12, "Developing with JavaServer Faces Technology." The tags correspond to components in the package. Groups a set of components under one parentĪllows a user to change the value of a Boolean choiceĭisplays a set of check boxes from which the user can select multiple valuesĪllows a user to select multiple items from a set of items all displayed at onceĪllows a user to select multiple items from a set of itemsĪllows a user to select one item from a set of items all displayed at onceĪllows a user to select one item from a set of items Links to another page or location on a page without generating an action event Represents an input form (inner tags of the form receive the data that will be submitted with the form)Īllows a page author to include a hidden variable in a pageĪllows a user to input a string without the actual string appearing in the fieldĪ field that displays a row of characters instead of the actual string enteredĪllows a user to enter a multiline stringĭisplays a nested component as a label for a specified input field Links to another page or location on a page Represents a column of data in a data componentĪn HTML element for which the type value can be "submit", "reset", or "image"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |