This content has been marked as final.
Show 2 replies
-
1. Inherit property from parent bean
lfryc May 9, 2011 7:11 AM (in response to topfan)Hello,
when you want do the same injection of property as in case of parentBean managed bean, you will need to configure also childBean as managed bean and then inject property myProperty into it.
In other words, you need to do the same for childBean as for parentBean.
Another way is to use annotation configuration instead of faces-config.xml (JSF 2.0 feature). Then you should be able to configure @ManagedProperty without duplication of declarations.
-
2. Inherit property from parent bean
topfan May 9, 2011 7:35 AM (in response to lfryc)thank you very much, Lukáš :-)