uPortal IRC Logs-2011-07-25

[10:37:23 CDT(-0500)] <athena> EricDalquist: i think we sort of need the ability to force portlets from maximized mode into detached when using the native client
[10:37:30 CDT(-0500)] <athena> happen to know of any clean ways to do that?
[10:37:42 CDT(-0500)] <athena> maybe something we could do with a URL handler?
[10:38:02 CDT(-0500)] <EricDalquist> can you give me a walk through of the steps to get to that point?
[10:38:25 CDT(-0500)] <athena> so right now we have a single theme that serves up both the native and browser-based mobile views
[10:38:27 CDT(-0500)] <EricDalquist> like "user is viewing daskboard, clicks on URL X generated by Y, ends up in detached mode"
[10:38:48 CDT(-0500)] <athena> the detached links all come from the JSON layout document, rather than from the mobile theme
[10:38:52 CDT(-0500)] <athena> so that mostly works
[10:39:06 CDT(-0500)] <athena> when that approach breaks down is when we have links from one portlet to another - particularly in the search portlet
[10:39:26 CDT(-0500)] <athena> so the search portlet forms a link to the directory portlet, which is by default set to maximized mode
[10:39:50 CDT(-0500)] <athena> i mean i guess we could have the portlet know whether you're in the native client or not and send back a detached link instead
[10:40:11 CDT(-0500)] <athena> but not sure that's the right thing to do - i think from the native client, we want all portlets to always be detached rather than maximized
[10:40:30 CDT(-0500)] <EricDalquist> why not have the search portlet check its current window state
[10:40:34 CDT(-0500)] <EricDalquist> and use that in the urls it generates
[10:40:48 CDT(-0500)] <EricDalquist> though for the more general solution
[10:40:49 CDT(-0500)] <EricDalquist> you're right
[10:41:01 CDT(-0500)] <EricDalquist> forcing detached does seem more reasonable
[10:41:20 CDT(-0500)] <athena> yeah - just seems like a use case that'll come up again
[10:41:44 CDT(-0500)] <athena> not urgent - i think we'll just let this issue be a documented item in this umobilerelease candidate
[10:41:51 CDT(-0500)] <athena> but if you have ideas i'd love to hear them
[10:41:55 CDT(-0500)] <EricDalquist> the "right" way to do this is to dig into the pluto SPI and figure out how uPortal can handle PortletRequest.isWindowStateAllowed
[10:42:08 CDT(-0500)] <EricDalquist> and actually enforce those rules during URL generation
[10:42:24 CDT(-0500)] <EricDalquist> since portlet are supposed to be checking that API to see if the state they want to generate a URL for is actually valid
[10:42:50 CDT(-0500)] <athena> ah, interesting
[10:42:54 CDT(-0500)] <EricDalquist> a hack would be to simply add logic in the url generation code to force the window state to detached if in the native view
[10:42:58 CDT(-0500)] <athena> yeah
[10:43:05 CDT(-0500)] <athena> ok, sounds good
[10:43:26 CDT(-0500)] <EricDalquist> I'd really like to get to the point eventually where that first option is reasonable
[10:43:45 CDT(-0500)] <EricDalquist> if we do that would be easily provide a PortletURLGenerationListener impl that portlets could drop in and use when rendering in the native view
[10:43:57 CDT(-0500)] <EricDalquist> that would switch the windowstate to detached on every URL generated
[10:44:19 CDT(-0500)] <athena> (smile)
[10:44:26 CDT(-0500)] <athena> sounds good to me
[10:46:46 CDT(-0500)] <athena> ok, for publishing this umobile quickstart i assume i can just create a new "umobile" folder on that webdav server?
[10:47:06 CDT(-0500)] <EricDalquist> yup
[10:47:11 CDT(-0500)] <athena> excellent
[10:47:18 CDT(-0500)] <EricDalquist> that downloads mount is a direct mapping to http://downloads.jasig.org/
[10:47:40 CDT(-0500)] <EricDalquist> so a new top level dir in the downloads webdav folder will be a new top level folder here: http://downloads.jasig.org/
[10:48:19 CDT(-0500)] <athena> works (smile)
[10:48:44 CDT(-0500)] <EricDalquist> also I should have "maven sites via webdav" documented this week
[10:49:02 CDT(-0500)] <EricDalquist> so it should be easy to get a project setup to generate a site on demand
[10:49:08 CDT(-0500)] <EricDalquist> but not do site generation during the release
[10:49:51 CDT(-0500)] <athena> sounds great
[10:50:06 CDT(-0500)] <athena> i think i may upload a test quickstart this morning just so someone else can try it out and make sure it works
[10:50:29 CDT(-0500)] <EricDalquist> great
[10:51:31 CDT(-0500)] <EricDalquist> have you had a chance to take a look at: https://wiki.jasig.org/display/UPM40/Eclipse
[10:51:42 CDT(-0500)] <athena> no! need to do that
[10:51:50 CDT(-0500)] <athena> was excited to see your email (smile)
[10:52:05 CDT(-0500)] <athena> totally awesome
[10:52:25 CDT(-0500)] <EricDalquist> yeah though recordmydesktop seems to have increased the speed by like 25%
[10:52:31 CDT(-0500)] <athena> lol
[10:52:32 CDT(-0500)] <EricDalquist> so the videos go a little fast (tongue)
[10:52:32 CDT(-0500)] <athena> nice
[10:53:47 CDT(-0500)] <athena> hehe