previous
|
index
|
next
IDs and Bindings
id
attribute allows you to:
Access JSF components from other JSF tags. Example:
<h:inputText
id
=
"name"
.../
>
...
<h:message
for
=
"name"
/>
Any error message associated with the input field will be displayed
Obtain component references in Java code (
UIComponent
; recall the component tree for JSPs)
Better to use
binding
attribute
Access HTML elements with scripts
previous
|
index
|
next