uPortal IRC Logs-2009-07-30
[06:49:28 EDT(-0400)] * athena (n=athena@host05.harborsideip2.h.subnet.rcn.com) has joined ##uportal
[08:51:35 EDT(-0400)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[09:10:03 EDT(-0400)] * jessm (n=Jess@c-71-232-1-65.hsd1.ma.comcast.net) has joined ##uportal
[09:19:21 EDT(-0400)] * tsnfoo (n=tsnfoo@wso-mbp15-2.test.denison.edu) has joined ##uportal
[09:24:15 EDT(-0400)] * fj4000 (n=Main@CPE0018f85ab63e-CM001692f5798c.cpe.net.cable.rogers.com) has joined ##uportal
[09:26:39 EDT(-0400)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[10:01:30 EDT(-0400)] * warmfuzz (i=80876350@gateway/web/freenode/x-etmfcmcwvvukxtfp) has joined ##uportal
[10:04:09 EDT(-0400)] <warmfuzz> Greetings uPortal devs: We are using uPortal 3.1.1 and would like to make the add content pop-up stay open while adding multiple portlets to a tab rather then forcing the user to click the "Add Content" for each new portlet to add.
[10:04:50 EDT(-0400)] <warmfuzz> it appers that the add content is managed by the ajax-preferences-jquery.js file.
[10:04:59 EDT(-0400)] <athena> yes, that's correct
[10:05:16 EDT(-0400)] <athena> there isn't a way to do that out of the box right now, though you could potentially modify the javascript and backing servlet to do that
[10:05:31 EDT(-0400)] <athena> one reason we hadn't offered that is that in theory, there can be subscribe-time parameters for new portlets
[10:05:46 EDT(-0400)] <athena> for those portlets a small form gets printed out within that popup window allowing the user to configure the portlet
[10:05:59 EDT(-0400)] <athena> i don't think much uses that functionality, so it may not be a concern for you
[10:06:13 EDT(-0400)] <warmfuzz> I see. Thats what I'm investigating, but if it is a large undertaking to get the functionality, we may back out of this for now.
[10:06:36 EDT(-0400)] <EricDalquist> does the UI currently reload the portal page after you add content?
[10:07:24 EDT(-0400)] <warmfuzz> Is the same "backing servlet" used to add all portlets to a tab?
[10:07:36 EDT(-0400)] <warmfuzz> yes. EricDalquist.
[10:08:10 EDT(-0400)] <EricDalquist> so the other issue would be if you want the first new portlet to show up on the page before adding the second
[10:08:11 EDT(-0400)] <warmfuzz> we want to be able to add multiple portlets before the refresh or have them added in an ajax like fashion underneath the add content pop-up.
[10:08:16 EDT(-0400)] <EricDalquist> ah
[10:08:22 EDT(-0400)] <EricDalquist> the first option would be much easier
[10:08:34 EDT(-0400)] <EricDalquist> there is no support in the framework to render a single portlet via ajax right now
[10:10:03 EDT(-0400)] <warmfuzz> could an approce be to have the same current behavior, but just have the "add content" pop up again on the page load? that way we don't have to modify the backing servlet or most of the jquery code.
[10:10:39 EDT(-0400)] <warmfuzz> we would need the backing servlet to pass something out to the page so that "Add content" would know to pop-up.
[10:11:42 EDT(-0400)] <EricDalquist> warmfuzz: that could work
[10:12:14 EDT(-0400)] <warmfuzz> do you know the name of the backing servlet or are there more than one that add content?
[10:12:16 EDT(-0400)] <EricDalquist> you could add something to the user's session and have a dlm parameter processor add a XSL flag to show the add content UI if it is there
[10:13:21 EDT(-0400)] <warmfuzz> sounds good. Is that the approach used to add other dynamic information to the final rendering of the page?
[10:14:03 EDT(-0400)] <EricDalquist> yes
[10:14:56 EDT(-0400)] <warmfuzz> are there any docs on the wiki for how to do this or can you point me to a file or two?
[10:15:31 EDT(-0400)] <EricDalquist> org.jasig.portal.layout.dlm.providers.ThemeParamInjector is an example IParameterProcessor
[10:15:55 EDT(-0400)] <EricDalquist> uportal-impl/src/main/resources/properties/contexts/layoutContext.xml
[10:16:03 EDT(-0400)] <EricDalquist> that is where the processors are configured
[10:16:24 EDT(-0400)] <warmfuzz> Thanks EricDalquist and athena. I'll give that a try and let you know if we get something working that way.
[10:16:35 EDT(-0400)] <EricDalquist> athena: what is the name of the callback servlet the add content UI uses?
[10:17:04 EDT(-0400)] <athena> UpdatePreferencesServlet.java, i think?
[10:17:06 EDT(-0400)] <athena> or something like that
[10:17:20 EDT(-0400)] <athena> i think it's in org.jasig.portal.layout.dlm.remoting
[10:17:21 EDT(-0400)] <athena> or something similar
[10:17:40 EDT(-0400)] <warmfuzz> org.jasig.portal.layout.dlm.remoting.UpdatePreferencesServlet.java
[10:17:41 EDT(-0400)] <warmfuzz> ?
[10:17:46 EDT(-0400)] <athena> yeah, that sounds right
[10:21:25 EDT(-0400)] <athena> oh wow, it's pouring out
[10:21:45 EDT(-0400)] <EricDalquist> yeah same here in Madison
[10:22:18 EDT(-0400)] * athena did not realize it was supposed to rain today
[10:22:52 EDT(-0400)] <athena> then again, i probably checked the weather for ct, not here
[10:26:15 EDT(-0400)] * lennard1 (n=sparhk@ip68-98-56-21.ph.ph.cox.net) has joined ##uportal
[10:30:05 EDT(-0400)] <EricDalquist> anyone here remember how to make the minimized attribute persistent?
[10:57:26 EDT(-0400)] * holdorph (n=holdorph@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[11:11:10 EDT(-0400)] <warmfuzz> ok. I managed to set a ThemeStylesheetUserPreferences parameter of showAddContent = true when a channel is added. Something similar is do for setting the active skin in UpdatePreferencesServlet.java. Do you know where/how these parameters make their way into the universality.xsl stylesheet to be used for the final html transform?
[11:48:14 EDT(-0400)] * lennard1 (n=sparhk@ip68-98-56-21.ph.ph.cox.net) has left ##uportal
[11:50:01 EDT(-0400)] <EricDalquist> warmfuzz: they should automatically be available as XSL parameters
[11:50:43 EDT(-0400)] <EricDalquist> hrm ... so I'm trying to get things setup so minimized state is persisted for portlets
[11:50:59 EDT(-0400)] <EricDalquist> it appears that this isn't supported for channels from DLM fragments
[12:16:56 EDT(-0400)] * lennard1 (n=sparhk@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[12:20:13 EDT(-0400)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[12:25:37 EDT(-0400)] * michelled_ (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[12:32:52 EDT(-0400)] <EricDalquist> UHG
[12:33:18 EDT(-0400)] <EricDalquist> so without DB changes I'm not sure we can store user theme level channel attributes for DLM integrated channels
[12:34:13 EDT(-0400)] <EricDalquist> UP_SS_USER_ATTS keys off of: userid, profileid, structureid, structuretype, nodeid
[12:34:20 EDT(-0400)] <EricDalquist> which are all integers
[12:34:31 EDT(-0400)] <EricDalquist> problem is nodeid needs to hold string data to reference a dlm node
[12:34:34 EDT(-0400)] <EricDalquist> UHG
[13:26:01 EDT(-0400)] * apetro (n=apetro@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[13:27:24 EDT(-0400)] * apetro (n=apetro@wsip-72-215-204-133.ph.ph.cox.net) has joined ##uportal
[14:43:48 EDT(-0400)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined ##uportal
[15:04:29 EDT(-0400)] <EricDalquist> there are many times I wish I had a month to just work on uPortal code with nothing else going on
[15:28:32 EDT(-0400)] <EricDalquist> athena: have you ever run into an issue with column widths not persisting correctly on tabs from DLM fragments?
[15:28:40 EDT(-0400)] <EricDalquist> using the UI in 3.x
[15:28:50 EDT(-0400)] <athena> hm, not that i remember
[15:28:57 EDT(-0400)] <EricDalquist> hrm
[15:28:57 EDT(-0400)] <athena> and i second the wish about uportal code
[15:29:04 EDT(-0400)] <EricDalquist> guess I need to test this on the quickstart
[15:29:17 EDT(-0400)] <EricDalquist> I'm trying to get the minimized parameter stored correctly
[15:29:25 EDT(-0400)] <EricDalquist> and it isn't working
[15:29:34 EDT(-0400)] <EricDalquist> and I'm seeing the same behavior with the width attribute
[15:29:41 EDT(-0400)] <athena> just because i don't remember having seen it doesn't mean it doesn't happen, of course
[15:29:42 EDT(-0400)] <athena> weird
[15:29:53 EDT(-0400)] <EricDalquist> where the code looks like it creates PLF placeholder nodes for the attributes
[15:30:03 EDT(-0400)] <EricDalquist> and stores the attributes referencing those placeholder nodes
[15:30:11 EDT(-0400)] <EricDalquist> but the user's PLF never gets stored to the DB
[15:30:19 EDT(-0400)] <EricDalquist> which is a problem since then we have orphaned attributes
[15:30:20 EDT(-0400)] <athena> interesting
[15:30:23 EDT(-0400)] <athena> yeah
[15:30:42 EDT(-0400)] <EricDalquist> well I'll go try a quickstart and see if this is a local thing or a general uPortal bug
[15:30:55 EDT(-0400)] <EricDalquist> the DLM/layout code just seems so much more complex than I feel it needs to be
[15:30:59 EDT(-0400)] <athena> yeah definitely let me know what you find
[15:31:04 EDT(-0400)] <athena> and yes, i don't think i understand half of it
[15:31:12 EDT(-0400)] <athena> and we've really lost a lot of knowledge about it
[15:31:32 EDT(-0400)] <EricDalquist> yup
[15:31:57 EDT(-0400)] <athena> would be awesome to re-think pulled fragments someday
[15:45:20 EDT(-0400)] <EricDalquist> heh ... so I think I know why we may not see this in the quickstart
[15:45:26 EDT(-0400)] <EricDalquist> all the users have PLFs already
[15:45:45 EDT(-0400)] <EricDalquist> not positive but that's one big difference
[15:46:13 EDT(-0400)] <athena> ah, that's a good point
[15:49:13 EDT(-0400)] <EricDalquist> well I have to run ... I'll dig more tomorrow
[16:59:43 EDT(-0400)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has left ##uportal
[19:34:27 EDT(-0400)] * tsnfoo (n=tsnfoo@cpe-173-88-27-191.columbus.res.rr.com) has joined ##uportal
[20:19:14 EDT(-0400)] * lennard1 (n=sparhk@wsip-72-215-204-133.ph.ph.cox.net) has left ##uportal
[21:08:05 EDT(-0400)] * lennard1 (n=sparhk@ip68-98-56-21.ph.ph.cox.net) has joined ##uportal
[21:27:28 EDT(-0400)] * athena (n=athena@host05.harborsideip2.h.subnet.rcn.com) has joined ##uportal