> 
> If support for a portlet environment is a goal for
> SAF2, remember that there
> is more to it than just papering over the differences
> between the portlet
> and servlet APIs.  You also have to deal at the
> functional level with the
> differences in the request processing lifecycle of
> the underlying container.
> 
> In particular, consider the scenario where there are
> six portlets on the
> same page.  One (and only one) of them will be the
> destination of an
> incoming GET or POST request (the "processAction()"
> part of the portlet
> lifecycle), followed by all six of them doing the
> "render()" portion of the
> lifecycle -- potentially simultaneously on multiple
> threads.  Also, request
> attributes from the portlet that performed the
> processAction() are *not*
> carried forward to the render() call on that same
> portlet.
> 
> JSF dealt with this by formally dividing the request
> processing lifecycle in
> two, along the same lines.  (In a web application, it
> just calls the them
> serially for the one-and-only request.)  That, plus
> the abstraction of
> ExternalContext, made supporting JSF in portlets
> pretty straightforward.  It
> would seem that now (when API design is being
> discussed) would be a good
> time to decide if portlet support matters, and (if it
> does) to take the
> lifecycle differences into consideration in the
> design.
> 
> Don
> 
> 
> Craig

I think Portlet support is critical, especially since it's in there and working 
now :-) I haven't looked at the portlet implementation, but what I remember 
from the discussions was to allow you to map different action configurations 
for different lifecycle calls of one portlet, so you might even have different 
action classes doing the minimize vs. render. 

The dispatcher in this case is actually implemented as a Portlet which is 
plugged into the portlet container and is told which actions to use for 
different phases. 

Of course, as I said, I haven't used it, so I could be wrong :-)
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=29317&messageID=57317#57317


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

Reply via email to