Hi all,
I have a requirement to implement nested components, it like this:
<t:comA>
   <t:comB/>
   <t:comB/>
   <t:comB/>
</t:comA>

I have created components, but I can't access embedded components in comA:
public class comA {
  @Inject
  private ComponentResources resources;

  void setupRender() {
    ComponentModel model = resources.getComponentModel();
    List<String> embeddedIds = model.getEmbeddedIds();
    // The problem is that embeddedIds.size() is 0!
  }
}

So, Is this a wrong way? I'm so confused.
Any idea? thanks!
-- 
Best Regards
Li Guoqiang

Reply via email to