CommandLink |
||||
Developer’s Guide Home
Installation and Configuration Common Concepts Components Index Border Layout Panel Calendar Chart Command Button Command Link Composite Filter Confirmation Data Table Date Chooser Day Table Drop Down Field Dynamic Image Folding Panel For Each Graphic Text Hint Label Input Text Input Textarea Layered Pane Level Indicator Popup Layer Popup Menu Select Boolean Checkbox Select Many Checkbox Select One Radio Spinner Suggestion Field Tabbed Pane Tab Set Tree Table Two List Selection Window Focus Load Bundle Scroll Position Ajax Framework Validation Framework Tag Reference API Reference |
Key Features
General InformationThe <o:commandLink> component is API-compatible with the standard <h:commandLink> component and if no extended options are specified it behaves in the same way as its standard analog. You can turn on the Ajax mode and configure the link to reload the specified set of components instead of reloading the whole page by specifying its render attribute. This attribute is specified as a space-separated list of component Ids in the same way as the render attribute of the Ajax component. Specifying this attribute will also make action and/or actionListener specified for the link to be executed during the Ajax request as well. If the Ajax mode is turned on for the link it doesn't submit data for form's components for processing on the server by default, so if you'd like to include some particular components into the Ajax request, for their data to be available during action execution or be saved through bindings, you can specify the execute attribute. Like the action attribute, this attribute is specified as a space-delimited list of component Ids in the same way as for the Ajax component. Here's a simple example: <h:inputText id="firstName" value="#{MyBean.firstName}"/> <h:inputText id="lastName" value="#{MyBean.lastName}"/> <o:commandLink value="Execute" execute="firstName lastName" action="#{MyBean.processName}" render="fullName"/> <h:outputText id="fullName" value="#{MyBean.fullName}"/> When in the Ajax mode, CommandLink provides the Ajax request lifecycle notifications through its onajaxstart, onajaxend, and onerror events. Known Issues
|
|||
© 2010 TeamDev Ltd. | ![]() |