On Fri, 25 Jul 2003, Luta, Raphael (VUN) wrote:

> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>
> > 3. A special JSR-168 Velocity Portlet is used which runs the
> > Velocity code.
> > One of the parameters for the portlet is the Velocity macro
> > to run.  The
> > portlet populates the context, then applies the Velocity,
> > then returns the
> > markup to the container and on up to the Portal.
> >
>
> That's the more likely way to port current JS 1 Velocity based
> portlets to a JSR compliant one: have a JSR VelocityPortlet
> wrapper (or a JSR Jetspeed1Portlet wrapper for that matter)
> that generates the markup the way JS 1 would and return it
> to JS 2.

Yeah, this works quite well. I've ported some portals that began life
under jetspeed to another popular portal framework (begins with "u")
this way.

> > Another thing I noticed in the spec.  It never says the
> > markup returned by
> > the portlet is what is finally to be delivered to the client.
> >  So, I could
> > see portlets designed to return some form of XML which the
> > Container or
> > Portal then applies a final transformation on before delivering to the
> > client.  I think this would be very analogous to calling a
> > SOAP service or
> > servlet and then applying XSLT to generate HTML.  Seems a bit
> > round-a-bout,
> > I think the whole idea behind the portlet spec is to have the portlets
> > generate what will be displayed on the client.
> >
>
> I would say the general idea is to send by default "user markup" but
> you could easily support the above model by defining container
> specific modes that can be supported by portlets...

It'd be nice to see a portlet deliver content using XForms which is then
rendered to the user markup of choice: at least, probably nicer than
inventing yet another XML abstraction. The guy who sits next to me made
some progress with this approach before "real work" intervened: I'll
encourage him to dust it off.

-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/
Work #90: As many pseudo-intellectual sycophants as necessary to make one
inarticulate scotsman think he's a genius in command of The Profound.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to