Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

...

[09:16:40 CDT(-0500)] <EricDalquist> the ajax in a 1.0 portlet approach results in a POST then 302 redirect to a servlet

[09:17:19 CDT(-0500)] <EricDalquist> the POST is done to an action URL so that the portlet can handle the request, it sets up the data to return and sticks it in the session then redirects to a servlet

[09:17:28 CDT(-0500)] <EricDalquist> and the servlet actually writes the data out from the session

[09:17:40 CDT(-0500)] <Arvids> yes, i'm familiar with that workflow

[09:17:42 CDT(-0500)] <EricDalquist> where as the resource approach is just a single request

[09:18:03 CDT(-0500)] <EricDalquist> the portal passes it on to the portlet for handling and simply returns whatever the portlet returns

[09:18:13 CDT(-0500)] <Arvids> ok

[09:18:40 CDT(-0500)] <EricDalquist> when athena was doing testing the removal of that redirect actually made a pretty significant change in performance of the portlet

[09:18:56 CDT(-0500)] <Arvids> sounds good

[09:19:21 CDT(-0500)] * athena looks up

[09:19:27 CDT(-0500)] <athena> hey Arvids (smile)

[09:19:32 CDT(-0500)] <Arvids> hey

[09:19:47 CDT(-0500)] <EricDalquist> just talking about resource requests for ajax versus the old post/redirect approach from portlet 1.0

[09:19:49 CDT(-0500)] <athena> and yes, definite performance boost from JSR-286 and eliminating 302 redirects

[09:19:51 CDT(-0500)] <athena> was kinda surprised

[09:19:53 CDT(-0500)] <Arvids> i believe it's very early morning for you, athena (smile)

[09:19:59 CDT(-0500)] <athena> 7:19am (tongue)

[09:20:07 CDT(-0500)] <athena> usually try and start at 7:30, up a bit early today

[09:20:10 CDT(-0500)] <athena> lots to do!

[09:20:14 CDT(-0500)] <athena> i'm sure it's late where you are

[09:20:30 CDT(-0500)] <Arvids> work time has finished 20 minutes ago (smile)

[09:20:59 CDT(-0500)] <Arvids> but I wanted to try my hand into developing that translator portlet

[09:21:35 CDT(-0500)] <Arvids> I'd like to see it as very dynamic so that user can choose a message to translate and immediately translate it

[09:21:43 CDT(-0500)] <athena> that'd be really fantastic

[09:21:50 CDT(-0500)] <Arvids> layout of portlet might be someething like this: https://imo.im/translate?lang_code=lv

[09:22:05 CDT(-0500)] <athena> that makes sense

[09:22:50 CDT(-0500)] <Arvids> hmm... i'll have to send a wireframe on dev list tomorrow

[09:23:07 CDT(-0500)] <EricDalquist> sounds great

[09:23:38 CDT(-0500)] <Arvids> and one more thing - i see no really big advantage of using flows in this portlet... is it okay if i'll use good old controllers?

[09:23:39 CDT(-0500)] <athena> awesome (smile)

[09:23:53 CDT(-0500)] <athena> yeah, i just use vanilla spring portletmvc for a lot of stuff

[09:24:12 CDT(-0500)] <athena> i think flows only make sense when you have something that's a multi-step form type process

[09:24:22 CDT(-0500)] <athena> for simpler stuff it just gets awkward

[09:24:27 CDT(-0500)] <Arvids> ok, it's just that i saw almost everything done using flows

[09:24:42 CDT(-0500)] * Arvids agrees

[09:24:45 CDT(-0500)] <athena> most of the stuff in uportal itself is so we can reuse subflows, etc.

[09:24:55 CDT(-0500)] <athena> but a lot of our portlets outside of uportal aren't

[09:24:58 CDT(-0500)] <Arvids> yeah, but that's mostly in administrative part

[09:25:04 CDT(-0500)] <athena> and we have some non-flow portlets in uportal too

[09:25:12 CDT(-0500)] <EricDalquist> I'm assuming this portlet would be part of the uPortal webapp

[09:25:18 CDT(-0500)] <Arvids> of course

[09:25:19 CDT(-0500)] <EricDalquist> but I'm fine with it being plain old spring mvc

[09:25:38 CDT(-0500)] <EricDalquist> since I don't believe the UI would be re-usable in other portlets

[09:25:41 CDT(-0500)] <athena> i guess the advantage of flows would be if it had a reason to reuse any of the existing webflows - other than that, doesn't seem like it'd help much

[09:25:43 CDT(-0500)] <athena> yeah

[09:25:56 CDT(-0500)] <EricDalquist> and if it is, it isn't terribly hard to rework a spring mvc portlet into a webflow portlet

[09:29:40 CDT(-0500)] <athena> quite true

[09:30:29 CDT(-0500)] <Arvids> I believe i won't make that portlet perfect, but we need a starting point

[09:30:46 CDT(-0500)] <EricDalquist> yup (smile)

[09:30:47 CDT(-0500)] <Arvids> without something to "touch" it looks like user list is very unersponsive

[09:31:18 CDT(-0500)] <Arvids> we have something like prototype and then see what people suggest to change

[09:31:27 CDT(-0500)] <Arvids> need to have

[09:32:20 CDT(-0500)] <EricDalquist> agreed

[09:32:36 CDT(-0500)] <Arvids> btw, a week ago i talked to Sakai i18n lead developer

[09:32:46 CDT(-0500)] <Arvids> he pointed me to this wiki page: https://confluence.sakaiproject.org/display/I18N/Home

[09:32:55 CDT(-0500)] <Arvids> i found it very valueable

[09:33:04 CDT(-0500)] <athena> oh terrific

[09:35:50 CDT(-0500)] <athena> brb