Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access Composite Component attribute values in the backing UIComponent?

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?

like image 493
siva636 Avatar asked Jul 31 '11 10:07

siva636


1 Answers

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");
// ...
like image 110
BalusC Avatar answered Oct 31 '22 21:10

BalusC