fluid-work IRC Logs-2009-10-20

[00:11:35 EDT(-0400)] * Bosmon3 (n=amb26fre@78-105-207-102.zone3.bethere.co.uk) has joined #fluid-work
[01:58:03 EDT(-0400)] <Lee_bee> Good night everyone!
[01:58:13 EDT(-0400)] * Lee_bee (n=UXExpert@96.49.146.59) has left #fluid-work
[05:44:36 EDT(-0400)] * athena7_ (n=athena@adsl-75-58-127-15.dsl.wlfrct.sbcglobal.net) has joined #fluid-work
[05:53:02 EDT(-0400)] * boyan (n=astea@62.44.101.70) has joined #fluid-work
[08:15:09 EDT(-0400)] * Justin_o (n=Justin@142.150.154.171) has joined #fluid-work
[08:24:38 EDT(-0400)] * laurel (n=Laurel@142.150.154.178) has joined #fluid-work
[08:32:38 EDT(-0400)] * joan (n=joan@62.97.110.250) has joined #fluid-work
[09:00:14 EDT(-0400)] * Bosmon2 (n=amb26fre@78-105-207-102.zone3.bethere.co.uk) has joined #fluid-work
[09:00:54 EDT(-0400)] * boyan (n=astea@62.44.101.70) has left #fluid-work
[09:04:05 EDT(-0400)] <Bosmon2> J GM VJCTOLJOUS!
[09:07:23 EDT(-0400)] <joan> hi
[09:14:35 EDT(-0400)] * yura1 (n=yura@142.150.82.121) has joined #fluid-work
[09:20:05 EDT(-0400)] * EricDalquist (n=EricDalq@76.210.73.13) has joined #fluid-work
[09:35:29 EDT(-0400)] * jessm (n=Jess@c-71-232-1-65.hsd1.ma.comcast.net) has joined #fluid-work
[09:38:49 EDT(-0400)] * michelled (n=team@142.150.154.193) has joined #fluid-work
[09:51:17 EDT(-0400)] * colinclark (n=colin@142.150.154.101) has joined #fluid-work
[09:59:46 EDT(-0400)] * clown (n=clown@142.150.154.101) has joined #fluid-work
[10:11:33 EDT(-0400)] * anastasiac (n=team@142.150.154.189) has joined #fluid-work
[10:14:09 EDT(-0400)] <joan> hi michelled. today i will try to create the component itself with its parameters, public functions and events. Rigth now i have commited (scratchpad the basic component functionality).
[10:15:28 EDT(-0400)] * athena (n=athena@adsl-75-58-127-15.dsl.wlfrct.sbcglobal.net) has joined #fluid-work
[10:46:49 EDT(-0400)] <Justin_o> joan: sorry, michelle is in a meeting at the moment
[10:49:32 EDT(-0400)] <joan> np.
[10:49:37 EDT(-0400)] <michelled> joan: sounds good - I saw that you committed but didn't have a chance to take a look at your code yet
[10:51:14 EDT(-0400)] <joan> hi michelled: i'm try to declare my component but i don't understand the js code. There is still something magic and hidden to me.
[10:52:20 EDT(-0400)] <joan> michelled: don't know how to create my component events and defaults and how to fire those events and apply the defined defaults (selectors...)
[10:52:55 EDT(-0400)] <joan> i read the wiki page to create a component but i miss something.
[10:53:16 EDT(-0400)] <michelled> the fluid.defaults function is your friend (smile)
[10:53:39 EDT(-0400)] <michelled> that's what you use to declare your options and their default values
[10:54:23 EDT(-0400)] <colinclark> joan: The nice thing about Infusion is that you only have declare your events-just name them-and the framework takes care of creating them for you. They'll be available to you at your component's .events property.
[10:55:28 EDT(-0400)] <joan> i know but how it works. the rendering of the component depends on the ajax data beeing retrieved from jira server (right now from local data folder). I wish to fire onDataProcessed and onRendered events.
[10:57:02 EDT(-0400)] <joan> in my early stage code i do control the render and i have a css class for 3 special divs (container plus 2 sections [summary and items]).
[11:07:41 EDT(-0400)] <colinclark> joan: Awesome!
[11:14:05 EDT(-0400)] <Justin_o> michelled, colinclark, yura1: We still need to do the code review/tour for engage, before we can start in on testing and packaging up a release. How about we use the time in our dev planning meeting today to do this
[11:15:14 EDT(-0400)] <yura1> Justin_o: that sounds like a good idea
[11:24:06 EDT(-0400)] * clown (n=clown@142.150.154.101) has left #fluid-work
[11:25:30 EDT(-0400)] <Justin_o> joan: hello, i'm just catching up on your conversation with michelled and colinclark. Did you have any more questions that you wanted to ask about the events or anything else?
[11:48:47 EDT(-0400)] <joan> justin: i know fluid.defaults is my friend but how the component knows what to render?
[11:49:39 EDT(-0400)] <Justin_o> joan: are you using the Renderer?
[11:50:13 EDT(-0400)] * mackrauss (n=Armin@142.150.154.101) has joined #fluid-work
[11:51:07 EDT(-0400)] <joan> justin: not rigth now. Should I?
[11:51:22 EDT(-0400)] <mackrauss> Hey jessm, Michelle said you might need some help with Mobile FFS for a Website and with a Wikipage about a11y
[11:51:32 EDT(-0400)] <mackrauss> How can I help you with that?
[11:51:41 EDT(-0400)] <jessm> mackrauss: can i ping you in a few – just in a mtg.
[11:51:53 EDT(-0400)] <laurel> joan: fyi - I don't know if you noticed that the developer's meeting today is being cancelled in favour of using the time for a code review
[11:52:24 EDT(-0400)] <mackrauss> jessm absolutely. I am on Skype also
[11:52:24 EDT(-0400)] <laurel> I missed that note in the channel, so just wanted to make sure you noticed it too.
[11:53:07 EDT(-0400)] <joan> laurel: taday i had trouble with firefox and missing parts of the meeting
[11:53:25 EDT(-0400)] <laurel> joan: anything I can update you on?
[11:53:32 EDT(-0400)] <joan> laurel: so today i a test day?
[11:54:06 EDT(-0400)] <laurel> Engage 0.1 just about to be released...but not quite ready for testing. Code review will happen about 1pm our time (not sure how long) and then we start testing
[11:54:25 EDT(-0400)] * UXExperts (n=UXExpert@96.49.146.59) has joined #fluid-work
[11:54:43 EDT(-0400)] * UXExperts (n=UXExpert@96.49.146.59) has left #fluid-work
[11:54:55 EDT(-0400)] <joan> laurel: 19:00 local time.
[11:54:58 EDT(-0400)] * Lee_Bee (n=UXExpert@96.49.146.59) has joined #fluid-work
[11:55:08 EDT(-0400)] <laurel> pretty late - so maybe testing tomorrow!
[11:55:43 EDT(-0400)] <joan> laurel: so i continue coding...
[11:55:57 EDT(-0400)] <laurel> yes - or eat dinner (wink)
[11:56:05 EDT(-0400)] <joan> (smile))
[11:56:40 EDT(-0400)] <laurel> i'm sure Justin_o will give us some good instructions so you can try testing tomorrow before we get in.
[12:09:14 EDT(-0400)] <colinclark> Hey Lee_Bee, did you see the latest build of Engage 0.1? It's way faster and now shows a polite spinner while it's loading data. (smile)
[12:09:32 EDT(-0400)] <Lee_Bee> I haven't seen it yet. (smile)
[12:09:40 EDT(-0400)] <Lee_Bee> Trying to find the link
[12:10:25 EDT(-0400)] <Lee_Bee> OOOooooo
[12:10:27 EDT(-0400)] <Lee_Bee> Pretty!
[12:11:12 EDT(-0400)] <colinclark> It's at least a step forward. (smile)
[12:11:31 EDT(-0400)] <yura1> colinclark: can I bug you for a moment?
[12:11:42 EDT(-0400)] <colinclark> yura1: I'm in a call, so I'll probably be pretty distracted
[12:11:50 EDT(-0400)] <colinclark> But it's worth a shot. (wink)
[12:11:53 EDT(-0400)] <yura1> (smile)
[12:16:50 EDT(-0400)] <yura1> I was looking into the maven problem that I had on my machine and i think any linux machine. When I run maven clean install in kettle, it also executes the ant build and that's where it was failing. When building a war webapp directory is created and it should be created in kettle/build/mini/src/webapp and kettle/build/source/src/webapp that correspond to the webapp "/". For some reason it wants create this webapp directory in the roor "/" on my machine in
[12:16:56 EDT(-0400)] <yura1> colinclark: ^
[12:17:37 EDT(-0400)] <colinclark> yura1: Hmm
[12:18:04 EDT(-0400)] <colinclark> That's one for michelled when she gets out of this meeting
[12:50:54 EDT(-0400)] * alisonbenjamin (n=alisonbe@142.150.154.101) has joined #fluid-work
[12:59:46 EDT(-0400)] <colinclark> yura1: Just looking over your question again, I don't think Maven should be running Ant. It's the other way around.
[13:00:05 EDT(-0400)] <colinclark> yura1: Any chance you're running "maven" instead of "mvn"?
[13:01:06 EDT(-0400)] <yura1> colinclark: I used mvn
[13:01:10 EDT(-0400)] <colinclark> ok
[13:01:24 EDT(-0400)] <colinclark> Ant shouldn't be executed as part of running "mvn clean install"
[13:01:31 EDT(-0400)] <colinclark> If it is, that'd be an interesting problem.
[13:01:34 EDT(-0400)] <athena> for the record, i'd be a little bit cautious about using ant-runs-maven configurations unless you have to
[13:01:46 EDT(-0400)] <colinclark> athena: (smile)
[13:02:00 EDT(-0400)] <colinclark> So far, we've been copying uPortal in that regard (wink)
[13:02:10 EDT(-0400)] <athena> yeah, i was afraid of that (tongue)
[13:02:19 EDT(-0400)] <athena> we're planning to try and do less of that, at least
[13:02:27 EDT(-0400)] <colinclark> Ant takes care of all the mechanics of the build--minifying, etc. Maven just builds the war.
[13:02:40 EDT(-0400)] <colinclark> I've been meaning to see if the state of JavaScript support in Maven has gotten better.
[13:03:04 EDT(-0400)] <athena> i've re-written some of our custom ant macros as maven plugins, though i think we may still have to use some ant to run those plugins
[13:03:15 EDT(-0400)] <colinclark> But at this point, we have the issue of needing to do a number of additional steps before building... minifying, rewriting URLs, etc.
[13:03:24 EDT(-0400)] <athena> not sure what support you're looking for - we do use the yui plugin to do minification and aggregation
[13:03:37 EDT(-0400)] <colinclark> athena: As a Maven plugin?
[13:03:47 EDT(-0400)] <athena> one problem with the ant-drives-maven scenario is that you can wind up losing support for things like profiles
[13:03:51 EDT(-0400)] <athena> unless you build that in explicitly
[13:03:53 EDT(-0400)] <colinclark> yeah
[13:04:40 EDT(-0400)] <athena> yeah - take a look at https://www.ja-sig.org/svn/uPortal/trunk/uportal-war/pom.xml
[13:04:58 EDT(-0400)] <athena> and search for "yuicompressor-maven-plugin" about halfway down
[13:05:09 EDT(-0400)] <athena> that's a pretty simple configuration, but it's also possible to use it to build aggregations of files
[13:05:31 EDT(-0400)] <athena> and of course maven does offer things like filtering, etc.
[13:06:00 EDT(-0400)] <athena> i don't know a ton about your build, and i'm not suggesting you can really replace it all w/ maven, but we've at least found the plugin useful in the portal and some of our portlets
[13:08:15 EDT(-0400)] <colinclark> athena: Cool
[13:08:31 EDT(-0400)] <colinclark> I'm sure we could replace it with Maven, and Bosmon was at one point keen to do so.
[13:08:46 EDT(-0400)] <athena> i've come to have an affection for maven
[13:08:46 EDT(-0400)] <colinclark> I've often found Maven inscrutable when problems occur.
[13:08:49 EDT(-0400)] <athena> yeah
[13:08:52 EDT(-0400)] <colinclark> But when it works, it's very delightful
[13:08:56 EDT(-0400)] <athena> you can do cool and complex things with it
[13:09:09 EDT(-0400)] <athena> but the documentation kind of sucks, it's hard to debug, and some of the plugins have issues (smile)
[13:09:19 EDT(-0400)] <colinclark> (smile)
[13:09:22 EDT(-0400)] <colinclark> Agreed
[13:09:29 EDT(-0400)] <athena> anyway, if you ever get around to that and want to talk about the plugin or filtering or whatever, let me know
[13:09:55 EDT(-0400)] * Bosmon2 (n=amb26fre@78-105-207-102.zone3.bethere.co.uk) has joined #fluid-work
[13:09:59 EDT(-0400)] <colinclark> athena: Thanks. As always, you're awesome
[13:10:01 EDT(-0400)] <athena> there are some tricks to getting filtering working for non-resource files, since they aren't called during process-resources
[13:10:12 EDT(-0400)] <athena> aw thanks (smile)
[13:24:53 EDT(-0400)] * mackrauss (n=Armin@142.150.154.101) has joined #fluid-work
[13:27:07 EDT(-0400)] <laurel> anyone know how to allow viewing of locally hosted web pages in IE8 - I remember that there is a security setting that is by default turned off, but can't remember what it is.
[13:27:55 EDT(-0400)] <joan> colin, michelled: i'm one with fluid.defaults and events. I have commited the first alpha version of "bug parade" component in scratchpad.
[13:28:04 EDT(-0400)] <colinclark> lol
[13:28:05 EDT(-0400)] <colinclark> joan: (smile)
[13:28:35 EDT(-0400)] <michelled> that's great (smile)
[13:28:46 EDT(-0400)] <jessm> wow, fantastic!
[13:29:26 EDT(-0400)] <joan> colin: but i think that i need help on how to use the selectors. i kept going with $() for selector. maybe tomorrow we can talk a little bit of that.
[13:29:54 EDT(-0400)] <fj4000> laurel: is the js giving you a problem, or something else?
[13:30:43 EDT(-0400)] <laurel> actually of course, as soon as I posted it, the problem resolved...ha
[13:30:50 EDT(-0400)] <joan> colin, michelle: i need to call to jira with ajax (remember security issue). So can kettle help me to that call and provide me with the desire xml data?
[13:30:53 EDT(-0400)] <fj4000> (tongue)
[13:31:29 EDT(-0400)] <joan> colin, michelle: as a kind of data proxy?
[13:32:23 EDT(-0400)] <joan> jessm: right now the data is stored locally. I need to replace the AJAX calls.
[13:39:10 EDT(-0400)] * elicochran (n=elicochr@dhcp-169-229-212-41.LIPS.Berkeley.EDU) has joined #fluid-work
[13:39:20 EDT(-0400)] <colinclark> joan: Yes, Kettle can help you with that.
[13:40:16 EDT(-0400)] <colinclark> If you want to get started without Kettle, you can change the security settings in Firefox for now.
[13:40:31 EDT(-0400)] <colinclark> Or, if you want to get started with Kettle, we can walk you through it.
[13:40:40 EDT(-0400)] <colinclark> It's really easy to get set up.
[13:41:30 EDT(-0400)] <colinclark> Check it out. Load it into Eclipse (not Aptana).
[13:41:39 EDT(-0400)] <colinclark> Set your M2_REPO variable.
[13:41:47 EDT(-0400)] <colinclark> Then run "mvn clean install"
[13:42:05 EDT(-0400)] <colinclark> Then click on the JettyRunner.java and choose "Run as Java Application"
[13:42:48 EDT(-0400)] <EricDalquist> for the fluid list reorderer ... what is the appropriate way to callback to the server when a change happens
[13:43:06 EDT(-0400)] <EricDalquist> on http://wiki.fluidproject.org/display/fluid/Advanced+Reorderer+API#AdvancedReordererAPI-optionsdescription I see a note about afterMoveCallbackUrl in the afterMove event
[13:43:09 EDT(-0400)] <EricDalquist> but no further docs
[13:43:18 EDT(-0400)] <colinclark> afterMoveCallbackUrl is deprecated.
[13:43:22 EDT(-0400)] <athena> speaking of that, it looks like the move event we're using in the uportal reorder was deprecated
[13:43:23 EDT(-0400)] <colinclark> Reorderer offers an afterMove event.
[13:43:37 EDT(-0400)] <EricDalquist> ah ok
[13:43:42 EDT(-0400)] <EricDalquist> so afterMove is where I want to do it
[13:43:43 EDT(-0400)] <colinclark> Register a listener for it, and do whatever you need to do--usually make an Ajax call back to the server
[13:43:48 EDT(-0400)] <colinclark> EricDalquist: Yep.
[13:43:51 EDT(-0400)] <EricDalquist> great
[13:44:12 EDT(-0400)] <EricDalquist> so far it is pretty easy to use (smile) getting it working for table row ordering
[13:44:27 EDT(-0400)] <colinclark> cool (smile)
[13:45:29 EDT(-0400)] <joan> collin: tomorrow, i'll try kettle and the listener.
[13:55:34 EDT(-0400)] <Justin_o> yura1: i think we can work on adding comments to the engage files as needed, as well as removing the .DS_store file and unused css
[13:56:33 EDT(-0400)] <yura1> Justin_o: right and i guess the misspelling as well ?
[13:56:54 EDT(-0400)] <Justin_o> yes... that one to
[14:06:07 EDT(-0400)] <EricDalquist> another reorderer question ... the requestedPosition data
[14:06:19 EDT(-0400)] <EricDalquist> where are the constants defined for the position value?
[14:06:40 EDT(-0400)] <EricDalquist> the docs say it will have a value of BEFORE, AFTER, INSIDE, or REPLACE
[14:06:46 EDT(-0400)] <EricDalquist> I'm seeing the number 3
[14:08:33 EDT(-0400)] <Justin_o> yura1: i think there was only one comment that i needed to add for browse, and that is done now...
[14:08:43 EDT(-0400)] <Justin_o> did you need help with commenting the description component
[14:12:12 EDT(-0400)] * mackrauss (n=Armin@142.150.154.101) has joined #fluid-work
[14:51:42 EDT(-0400)] <jessm> jamon: ping
[15:01:12 EDT(-0400)] * mackrauss (n=Armin@142.150.154.101) has joined #fluid-work
[15:09:47 EDT(-0400)] <jamon> what's up jessm?
[15:11:05 EDT(-0400)] <jessm> jamon: just wanted to check in – how are things?
[15:11:33 EDT(-0400)] <jamon> good thanks
[15:11:49 EDT(-0400)] <jamon> i'd imagine you're busy with engage release?
[15:26:15 EDT(-0400)] * Lee_Bee (n=UXExpert@d142-058-198-208.surrey.sfu.ca) has joined #fluid-work
[15:33:07 EDT(-0400)] * colinclark (n=colin@142.150.154.101) has joined #fluid-work
[15:44:08 EDT(-0400)] <michelled> EricDalquist: not sure if you found it - the positions are defined in GeometricManager and are available in 'fluid.position'
[15:44:13 EDT(-0400)] <michelled> 3 === REPLACE
[15:45:31 EDT(-0400)] <athena> michelled: do you have any thoughts on possibilities w/ the layout reorderer for moving channels into tabs?
[15:46:36 EDT(-0400)] <athena> i sort of have a feeling that we could find a way to mark tabs as additional columns or something, then set events to remove the channel from the DOM when it's moved to a tab
[15:46:37 EDT(-0400)] <athena> b
[15:46:48 EDT(-0400)] <athena> but i don't to break the keyboard navigation
[15:49:45 EDT(-0400)] <michelled> athena: I'm not sure I understand what you want to do - pick up a channel and drop it on a tab that is not visible?
[15:50:21 EDT(-0400)] <athena> right, so we have "tabs" across the top of the uportal layout
[15:50:25 EDT(-0400)] <athena> that are essentially other pages
[15:50:51 EDT(-0400)] <athena> we've had an open requirement for a long time to be able to drag a portlet to a tab, at which point it would be moved from your current page to that other one
[15:51:13 EDT(-0400)] <athena> that's no problem in the backend - i could easily whip up code to move it to the desired tab node in the stored layout
[15:51:50 EDT(-0400)] <athena> the problem is more how to set those tabs as elements where you can drop a portlet with the fluid layout reorderer
[15:52:16 EDT(-0400)] * Justin_o (n=Justin@142.150.154.171) has joined #fluid-work
[15:52:50 EDT(-0400)] <michelled> interesting. the keyboard interaction that we have now might be natural for this
[15:53:08 EDT(-0400)] <michelled> I meant 'might not'
[15:53:11 EDT(-0400)] <michelled> (sad)
[15:53:35 EDT(-0400)] <michelled> I think this is one I want to take back to the designers.
[15:54:13 EDT(-0400)] <athena> sure
[15:54:17 EDT(-0400)] <athena> i think i could probably make it work
[15:54:34 EDT(-0400)] <athena> but i'd rather not hack it, because that seems undesirable (smile)
[15:55:13 EDT(-0400)] <athena> i suspect what we really might want conceptually is the concept of some sort of box that's not a "column"
[15:55:39 EDT(-0400)] <athena> though i suppose the tabs do still have ordering, so it's not so drastically different
[15:56:09 EDT(-0400)] <colinclark> athena: Interesting problem!
[15:56:25 EDT(-0400)] <colinclark> Cut/paste might be a bit better idiom for this with the keyborad
[15:56:32 EDT(-0400)] <athena> interesting
[15:56:34 EDT(-0400)] <colinclark> I wonder if we could do it easily without having to change the Reorderer?
[15:56:36 EDT(-0400)] <laurel> colinclark: I know we are focused on the engage release (I'm eagerly awaiting the opportunity to test) - but an update on builder includes problem. jacob and I tried an example with includes on his environment, mine and then on the virtual server...all of which worked using the "same" technique as used on the builder. talk about bewildering.
[15:56:38 EDT(-0400)] <colinclark> Seems quite possible.
[15:56:43 EDT(-0400)] <athena> i could see that being a reasonable metaphor
[15:57:13 EDT(-0400)] <athena> if you think of something let me know - i'd love to get that one resolved and stop moving it from release to release (smile)
[15:57:17 EDT(-0400)] <colinclark> I'm thinking Erin would probably be the best person to ask for more in-depth interaction designs.
[15:57:29 EDT(-0400)] <colinclark> But she's away, so maybe we could try the cut/paste approach in the meantime.
[15:57:35 EDT(-0400)] <colinclark> So, let me see
[15:57:47 EDT(-0400)] <colinclark> I think it's doable as-is
[15:58:03 EDT(-0400)] <colinclark> Stick keyboard handlers on the portlets and on the tabs
[15:58:04 EDT(-0400)] <athena> that'd be great!
[15:58:21 EDT(-0400)] <athena> could we manage to simultaneously have drag-and-drop behavior for the mouse, and cut and paste for keyboard?
[15:58:27 EDT(-0400)] <colinclark> yes
[15:58:29 EDT(-0400)] <colinclark> I think so
[15:58:35 EDT(-0400)] <athena> that would be extremely cool (smile)
[15:58:36 EDT(-0400)] <colinclark> I mean, I don't know for sure
[15:58:47 EDT(-0400)] <colinclark> But using magic, it should definitely be possible.
[15:58:51 EDT(-0400)] <michelled> lol
[15:58:54 EDT(-0400)] <athena> magic!
[15:59:02 EDT(-0400)] <athena> we've sort of just told people for now you have to delete the portlet and add it to the new tab
[15:59:12 EDT(-0400)] <athena> which isn't terrible because at least adding portlets is easier now
[15:59:36 EDT(-0400)] <athena> but as we get more portlets that have instance-specific configuration, it'll be sad to have to reconfigure your portlet just because you wanted to move it to a different spot in the layout
[16:06:39 EDT(-0400)] * laurel (n=Laurel@142.150.154.178) has joined #fluid-work
[16:07:41 EDT(-0400)] <EricDalquist> is there a way to 'refresh' a reorderer? Like after the page has loaded I added a new row to my table and I want that row to be able to participate in reordering
[16:12:22 EDT(-0400)] <athena> there is indeed a refresh method called refresh() (smile)
[16:12:31 EDT(-0400)] <EricDalquist> great
[16:16:08 EDT(-0400)] * mackrauss (n=Armin@142.150.154.101) has joined #fluid-work
[16:30:36 EDT(-0400)] * yura1 (n=yura@user155-73.wireless.utoronto.ca) has joined #fluid-work
[16:41:07 EDT(-0400)] <EricDalquist> hrm, so I'm trying to create an event / listener in my custom component
[16:41:11 EDT(-0400)] <EricDalquist> but no luck
[16:41:45 EDT(-0400)] <athena> oh, what's not working?
[16:41:47 EDT(-0400)] <athena> or just in general
[16:41:57 EDT(-0400)] <EricDalquist> well let me make sure I have this right
[16:42:07 EDT(-0400)] <EricDalquist> in my defaults I have
[16:42:11 EDT(-0400)] <EricDalquist> events: {
[16:42:11 EDT(-0400)] <EricDalquist> addCity: null,
[16:42:11 EDT(-0400)] <EricDalquist> }
[16:42:22 EDT(-0400)] <EricDalquist> then the code does:
[16:42:23 EDT(-0400)] <EricDalquist> that.events.addCity.fire();
[16:43:12 EDT(-0400)] <EricDalquist> and in the config I have
[16:43:12 EDT(-0400)] <EricDalquist> listeners : {
[16:43:13 EDT(-0400)] <EricDalquist> addCity : weatherPortlet.Pluto_8_n26_cityAdded,
[16:43:13 EDT(-0400)] <EricDalquist> }
[16:43:29 EDT(-0400)] <athena> do you mean to have that trailing comma?
[16:43:49 EDT(-0400)] <EricDalquist> I just haven't cleaned them up
[16:43:56 EDT(-0400)] <EricDalquist> thought they don't seem to cause problems elsewhere
[16:44:01 EDT(-0400)] <athena> oh really?
[16:44:10 EDT(-0400)] <athena> i would have expected errors from that
[16:44:17 EDT(-0400)] <EricDalquist> oh
[16:44:20 EDT(-0400)] <EricDalquist> duh
[16:44:22 EDT(-0400)] <EricDalquist> I figured it out
[16:44:42 EDT(-0400)] <EricDalquist> I was defining the function weatherPortlet.Pluto_8_n26_cityAdded after creating the listeners hash
[16:44:54 EDT(-0400)] <athena> ah
[16:45:11 EDT(-0400)] <athena> (smile)
[16:45:26 EDT(-0400)] <athena> so you can actually do things like pass objects through events
[16:45:34 EDT(-0400)] <athena> like if your code wanted to know what city was added
[16:45:41 EDT(-0400)] <EricDalquist> yeah I figured
[16:45:46 EDT(-0400)] <EricDalquist> in the component I would do
[16:45:51 EDT(-0400)] <EricDalquist> fire(city) ?
[16:47:34 EDT(-0400)] <EricDalquist> oi ... so I just found another fun issue
[16:48:00 EDT(-0400)] <athena> yes
[16:48:11 EDT(-0400)] <EricDalquist> my CityEditor fluid component for the weather portlet needs a reference to the table reorderer to call refresh() after adding a city row
[16:48:40 EDT(-0400)] <EricDalquist> but the table reorderer needs a reference to the CityEditor to handle onRefresh and afterMove
[16:48:51 EDT(-0400)] <EricDalquist> chicken ... meet egg
[16:49:02 EDT(-0400)] <athena> depending on what you're doing, you may be able to wire the events together for both from the main setup code that uses the components
[16:49:43 EDT(-0400)] <EricDalquist> ?
[16:49:54 EDT(-0400)] <athena> well
[16:50:23 EDT(-0400)] <athena> i think you should be able to inject in methods to each that user the other components from your main script
[16:51:46 EDT(-0400)] <athena> like when you set up the city editor, you give it logic to execute on the pager when a certain event is fired, and vice versa
[16:52:22 EDT(-0400)] <EricDalquist> hrm ok, I think I got it
[16:52:29 EDT(-0400)] <athena> ok (smile)
[16:52:47 EDT(-0400)] <EricDalquist> http://uportal.pastebin.com/m1ff6ab68
[16:52:48 EDT(-0400)] <athena> i think it'll be ok - you'll just need some code to coordinate the two that's not inside either component
[16:52:52 EDT(-0400)] <EricDalquist> not sure if that is the best
[16:52:54 EDT(-0400)] <EricDalquist> but it works
[16:53:14 EDT(-0400)] <athena> makes sense to me
[16:54:37 EDT(-0400)] <athena> i'd probably personally declare weatherPortlet.Pluto_8_n26_cityReorderer at the top of the code just to make it a little more readable
[16:54:59 EDT(-0400)] <EricDalquist> I can't
[16:55:05 EDT(-0400)] <athena> why not?
[16:55:09 EDT(-0400)] <EricDalquist> it has to be declared after Pluto_8_n26_cityEditor
[16:55:18 EDT(-0400)] <EricDalquist> since reordererOpts references Pluto_8_n26_cityEditor
[16:55:18 EDT(-0400)] <athena> sorry, i meant just like
[16:55:20 EDT(-0400)] <athena> var weatherPortlet.Pluto_8_n26_cityReorderer;
[16:55:24 EDT(-0400)] <EricDalquist> ah ok
[16:55:26 EDT(-0400)] <athena> not actually assigning it
[16:55:42 EDT(-0400)] <EricDalquist> ok
[16:55:46 EDT(-0400)] <athena> i think it just makes it a little clearer that you're expecting the refresh method to be calling an object that's defined outside the method
[16:55:54 EDT(-0400)] <EricDalquist> yeah
[16:56:32 EDT(-0400)] <athena> i think you probably don't have to include the portlet namespace in the function names?
[16:56:50 EDT(-0400)] <athena> they shouldn't be visible outside that closure, right?
[16:57:02 EDT(-0400)] <EricDalquist> weatherPortlet is
[16:57:09 EDT(-0400)] <EricDalquist> and it has to be for this to work
[16:57:18 EDT(-0400)] <EricDalquist> if I just use locally scoped things it fails
[16:57:39 EDT(-0400)] <EricDalquist> since a closure clones the variables visible to it when the closure is created (I believe)
[16:58:10 EDT(-0400)] <athena> oh, i didn't realize those were actually getting set on weatherportlet
[16:58:30 EDT(-0400)] <EricDalquist> yeah, thats the only way I can figure out how to get the references in the right places
[16:58:35 EDT(-0400)] <athena> hm
[16:58:50 EDT(-0400)] <athena> i'm pretty sure i've just used local variables before
[16:59:07 EDT(-0400)] <EricDalquist> did you assign the local variable after the closure was declared or before it?
[16:59:14 EDT(-0400)] <athena> after
[16:59:20 EDT(-0400)] <EricDalquist> hrm
[16:59:20 EDT(-0400)] <EricDalquist> ok
[16:59:22 EDT(-0400)] <EricDalquist> let me try
[17:00:59 EDT(-0400)] <EricDalquist> oh
[17:01:00 EDT(-0400)] <EricDalquist> yeah
[17:01:02 EDT(-0400)] <EricDalquist> your right
[17:01:19 EDT(-0400)] <EricDalquist> I was just missing the "var cityReorderer;" before my closure
[17:01:25 EDT(-0400)] <athena> cool (smile)
[17:01:56 EDT(-0400)] <athena> not that it really makes a big technical difference, but it'll probably make it a little more straightforward
[17:02:31 EDT(-0400)] * anastasiac (n=team@142.150.154.189) has left #fluid-work
[17:02:47 EDT(-0400)] <EricDalquist> yeah
[17:07:30 EDT(-0400)] <athena> now we just need to do this for the bookmarks portlet (smile)
[17:07:38 EDT(-0400)] <EricDalquist> yeah
[17:07:51 EDT(-0400)] <EricDalquist> that thing needs a reorderable tree UI
[17:08:00 EDT(-0400)] <EricDalquist> which still scares me (tongue)
[17:09:02 EDT(-0400)] <athena> hehe
[17:09:04 EDT(-0400)] <athena> that'd be nice
[17:10:12 EDT(-0400)] <EricDalquist> well I'm out for the night
[17:10:13 EDT(-0400)] <EricDalquist> later
[17:11:04 EDT(-0400)] <athena> me too
[17:22:52 EDT(-0400)] * Justin_o (n=Justin@142.150.154.171) has joined #fluid-work
[17:22:57 EDT(-0400)] * Justin_o (n=Justin@142.150.154.171) has left #fluid-work
[17:50:52 EDT(-0400)] * elicochran (n=elicochr@dwin-wlan-55.AirBears.Berkeley.EDU) has joined #fluid-work
[18:18:50 EDT(-0400)] * Bosmon2 (n=amb26fre@78-105-207-102.zone3.bethere.co.uk) has joined #fluid-work
[18:51:16 EDT(-0400)] * mackrauss (n=Armin@CPE001b114b4426-CM001ac35c768c.cpe.net.cable.rogers.com) has joined #fluid-work
[19:46:43 EDT(-0400)] * Lee_Bee (n=UXExpert@96.49.146.59) has joined #fluid-work
[21:48:36 EDT(-0400)] * fj4000 (n=Main@CPE0018f85ab63e-CM001692f5798c.cpe.net.cable.rogers.com) has joined #fluid-work
[21:52:04 EDT(-0400)] * Lee_Bee (n=UXExpert@96.49.146.59) has joined #fluid-work
[22:12:16 EDT(-0400)] * Lee_Bee (n=UXExpert@96.49.146.59) has left #fluid-work