We can access the Composite Component attribute values (defiled in the interface section), in the implimentation like #{cc.attrs.attributeName}
How can we access this value in the backing component?
We can access the Composite Component attribute values (defiled in the interface section), in the implimentation like #{cc.attrs.attributeName}
How can we access this value in the backing component?
It's just available inside any of the methods by the inherited getAttributes()
method which returns a Map<String, Object>
with the attribute name as map key and attribute value as map value.
Bar bar = (Bar) getAttributes().get("bar");
// ...
UIComponent
? That's not a backing bean... Just call the inherited getAttributes()
method. See also our composite component wiki page: stackoverflow.com/tags/composite-component/info –
Packsaddle © 2022 - 2024 — McMap. All rights reserved.