-
1. Re: Dynamically add component definition
norman Mar 27, 2009 4:28 PM (in response to vk101)In theory, it would be possible to add Component definition instances programmatically. I mean, all seam is doing is translating the XML to component definitions. It's not something we encourage as a public API, and there might be some hot deploy issues. But, I don't see any reason it wouldn't work.
-
2. Re: Dynamically add component definition
vk101 Mar 27, 2009 6:53 PM (in response to vk101)Are you suggesting its currently possible to do within Seam, or that it's a worthwhile feature request?
If it's currently possible, I'm not sure how to do it - I noticed that Component currently only has one public constructor not labelled 'for testing' in the source code, and that it's called from the Init class. However, I can't tell from that constructor how I'd set all the properties as I described in the above post.
-
3. Re: Dynamically add component definition
norman Mar 27, 2009 7:18 PM (in response to vk101)I'm suggesting it's feasible enough that it might be worth digging through the code to figure out and give it a try. If you aren't comfortable enough with Seam to do that, then you should assume it's not possible.