I have the following case:
<cc:interface> <cc:attribute name="someValue" /> </cc:interface> <cc:composite> <x:someComponent> <span>#{cc.attrs.someValue}</span> </x:someComponent> </cc:composite>
Thus, inside my composite component, I call some other composite component and try to pass the parameter set to the master component to the internal composite component.
This fails because inside the x:someComponent instead of the implicit cc object, it refers to this x:someComponent .
The workaround is to create a temporary field for x:someComponent , so this can be achieved as:
<x:someComponent passthroughField="#{cc.attrs.someValue}"> <span>#{cc.attrs.passthroughField}</span> </x:someComponent>
However, it is very ugly and uncomfortable.
Any other solutions to this problem?
source share