fluid-work IRC Logs-2011-03-31
[10:50:48 CDT(-0500)] <heidi_> hey Justin_o i updated http://wiki.fluidproject.org/display/fluid/FSS+1.4+-+1.5+Roadmap
[10:50:56 CDT(-0500)] <heidi_> with status info
[10:57:52 CDT(-0500)] <Justin_o> heidi_: thanks
[10:57:55 CDT(-0500)] <Justin_o> good idea
[11:12:22 CDT(-0500)] <smriti> Hi All, I missed the stand up this am due to an appointment. My updates are I'm continuing work on the templates and theme for the new snow site today. I will be working late in teh evening and night to catch up on some missed time..
[11:13:41 CDT(-0500)] <jhung> thanks smriti!
[11:31:07 CDT(-0500)] <mlam> yura: do you have minute to talk a bit of IoC?
[11:31:33 CDT(-0500)] <yura> mlam: syre
[11:31:48 CDT(-0500)] <mlam> Ok, so I'm trying out the autoInit feature for creating a component
[11:32:20 CDT(-0500)] <mlam> I'm making a test to ensure that an uploader is properly instantiated as a subcomponent
[11:32:39 CDT(-0500)] <mlam> I'm creating a dummy parent component
[11:32:43 CDT(-0500)] <yura> right
[11:33:02 CDT(-0500)] <mlam> i'll send you a pastebin link
[11:33:31 CDT(-0500)] <yura> sure
[11:34:08 CDT(-0500)] <mlam> http://pastebin.com/LrN2bAK1
[11:34:43 CDT(-0500)] <mlam> When I'm trying to instantiate my parent component, IoC keeps complaining that the container is not jquery-able, yet it clearly is from line 12
[11:35:54 CDT(-0500)] <mlam> is the syntax incorrect for the container in the defaults?
[11:37:02 CDT(-0500)] <yura> right
[11:37:38 CDT(-0500)] <yura> i dont think autoinit matters here
[11:37:48 CDT(-0500)] <yura> since you are not creating the parent through ioc
[11:38:02 CDT(-0500)] <yura> so your container wont get resovled correctly
[11:38:16 CDT(-0500)] <yura> so i think to make it work you need to remove autoinit
[11:38:27 CDT(-0500)] <yura> and make a creator function
[11:38:35 CDT(-0500)] <mlam> a creator function for the parent?
[11:38:38 CDT(-0500)] <yura> but keep uploader as a subcomponent in defaults
[11:38:59 CDT(-0500)] <yura> this way when you call the creator function directly if will actually exectute it
[11:39:08 CDT(-0500)] <yura> yes the parent needs a creator function
[11:39:42 CDT(-0500)] <mlam> I thought the autoInit feature automatically creates a component for you?
[11:41:14 CDT(-0500)] <yura> yes if it's resolved through IoC , i think
[11:43:53 CDT(-0500)] <mlam> ok, cool thanks yura
[11:44:02 CDT(-0500)] <yura> mlam: let me know if that works
[11:44:13 CDT(-0500)] <mlam> ok, i will
[11:53:39 CDT(-0500)] <mlam> yura, it works
[11:53:49 CDT(-0500)] <yura> awesome
[11:54:06 CDT(-0500)] <mlam> thanks!
[11:55:33 CDT(-0500)] <colinclark_> yura: Sorry, I'm jumping in late... but isn't the point of what mlam is trying to do is to not have a creator function?
[11:56:27 CDT(-0500)] <yura> colinclark_: i agree and i think after the defaults are announced there will be a function with the same name as the component but i dont think you can use it outside of IoC
[11:56:39 CDT(-0500)] <yura> at least that's proven to be the case at the moment
[11:56:46 CDT(-0500)] <colinclark_> ok
[11:57:03 CDT(-0500)] <colinclark_> I think I'm confused
[11:57:09 CDT(-0500)] <colinclark_> lemme look at the pastebin again
[11:57:27 CDT(-0500)] <colinclark_> mlam: You're trying to make a test that instantiates an Uploader via IoC, right?
[11:57:36 CDT(-0500)] <mlam> yes
[11:57:46 CDT(-0500)] <mlam> and instantiates it as a subcomponent
[11:58:01 CDT(-0500)] <colinclark_> and yura, you're saying that you can't directly invoke an auto-inited component at the moment?
[11:58:10 CDT(-0500)] <colinclark_> in other words, you can't do what mlam is trying to do?
[11:58:13 CDT(-0500)] <yura> colinclark_: i m afraid so
[11:58:20 CDT(-0500)] <colinclark_> Is that a bug?
[11:59:09 CDT(-0500)] <colinclark_> (I understand what you're saying now... just curious if you think it's a bug in the framework or by design)
[11:59:09 CDT(-0500)] <yura> colinclark_: might be
[11:59:11 CDT(-0500)] <colinclark_> ok
[12:00:10 CDT(-0500)] <colinclark_> thanks yura, that explanation helped a lot
[12:00:30 CDT(-0500)] <colinclark_> And, for the record, mlam, I would have tried to do exactly what you are trying to do
[12:00:41 CDT(-0500)] <mlam> Ok, cool
[12:01:38 CDT(-0500)] <yura> colinclark_: i tried doing the same thing today earlier
[12:02:27 CDT(-0500)] <colinclark_>
[12:06:12 CDT(-0500)] <mlam> colinclark_: yura: In my scenario here, the parent component and the uploader can't share the same container, right?
[12:06:26 CDT(-0500)] <colinclark_> mlam: Does the parent component even need a container?
[12:06:29 CDT(-0500)] <colinclark_> What would it even be?
[12:07:16 CDT(-0500)] <colinclark_> You could probably just make your parent a Little Component
[12:07:30 CDT(-0500)] <colinclark_> Since it doesn't do anything, it probably doesn't need to be a View
[12:07:31 CDT(-0500)] <mlam> I see
[12:07:42 CDT(-0500)] <colinclark_> unless I'm missing something