Re: creating child compound component

"Goldsack, Patrick" <[email protected]> Fri, 16 Mar 2007 13:01:27 -0000
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>

There are a number of issues here:

1) As a Compound IS a Prim, you can use the sfCreateNewChild method for
compounds as well. It takes a ComopnentDescription hierarchy which
deploys to whatever it defines, runs it through the lifecycle, and adds
it to the parent as a child.

2) sfAddChild is used to add an already deployed component as a child
(and is used by sfCreateNewChild).

3) If you just want to create the component tree, but not run any of the
other lifecycle methods, use the sfDeployComponentDescritpion method on
Compound to do this. This is also used by the sfCreateNewChild to build
the tree before it runs the lifecycle methods. If
sfDeployComponentDescritpion  is given a parent, it uses sfAddChild to
add the created component tree to the parent after creation.

Patrick

-----Original Message-----
From: smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Kalbagilmath, Vishwanath (STSD)
Sent: 16 March 2007 10:56
To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Smartfrog-developer] creating child compound component

hi,

Is it possible to create a new child component of type Compound under
another Compound component, I could see a method sfCreateNewChild()
which creates child of type Prim, however I did not find one for
Compound component. Is the purpose of sfAddChild(), to convert the child
Prim component to Compound?

I understand that, when a child SF component (either Prim or Compound)
is created, it undergoes its entire lifecycle. Can the entire lifecycle
process be bypassed?

Thanks in adv,
++ViK



------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Smartfrog-developer mailing list
Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-developer

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV