Java Reference
In-Depth Information
TABLE 6-4. Implicit Objects
Binding a Component Instance to a Bean Property
A component instance can be bound to a bean property using a value expression with the
binding attribute of the component's tag. You usually bind a component instance rather
than its value to a bean property if the bean must dynamically change the component's
attributes.
Here are two tags from the bookcashier.xhtml page that bind components to bean
properties:
Click here to view code image
<h:selectBooleanCheckbox id="fanClub"
rendered="false"
binding="#{cashier.specialOffer}" />
<h:outputLabel for="fanClub"
rendered="false"
binding="#{cashier.specialOfferText}"
value="#{bundle.DukeFanClub}"/>
Search WWH ::




Custom Search