开发者

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

开发者 https://www.devze.com 2023-03-24 06:32 出处:网络
We can access the Composite Component a开发者_如何学JAVAttribute values (defiled in the interface section), in the implimentation like #{cc.attrs.attributeName}

We can access the Composite Component a开发者_如何学JAVAttribute 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");
// ...
0

精彩评论

暂无评论...
验证码 换一张
取 消