You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Endre Stølsvik <En...@Stolsvik.com> on 2004/02/04 18:00:46 UTC

Re: how to use setRenderParameter

On Wed, 21 Jan 2004, Stefan Hepper wrote:

| No, render parameters are a new concept that separates portlets from 
| servlets. Portlets get the render params for all subsequent request 
| until the next action occurs or the page is left (than its left to the 
| portal implemention to keep the params accross pages). Otherwise the 
| back button and bookmarkability will not work.

Does the spec require the back button and bookmarkability to work? I was
assuming that as long as the portlet got the render parameters every time
(on every rendering), it was fine.
  See, I thought about keeping the render parameters for each portlet in
some session object for the current user - and then just supply them to
the portlet on each rendering - of course adhering to the contract of
clearing them on action, and setting "new ones" on RenderURL.

| 
| Please see also the corresponding sections in the Portlet Specification.

Where..?

Endre.


Re: how to use setRenderParameter

Posted by Stefan Hepper <st...@hursley.ibm.com>.
Actually the current spec says:

"If a portlet receives a render request that is the result of a client 
request targeted to
another portlet in the portal page, the parameters must be the same 
parameters as of the
previous render request." (p.43)

which should be:
"If a portlet receives a render request that is the result of a client 
request targeted to
another portlet in the portal page, the parameters SHOULD be the same 
parameters as of the
previous render request of this client."

We'll add this as clearification.

This means that you should provide the portlet with its render params, 
but the portlet must always take into account that for some reasons it 
will not get the render params in the next request. Which is fine if the 
render params are used to encode navigational state and not session 
state. Bookmarkability and the enablement of the back button is only a 
side effect of this, but not a requirement by the spec. So storing them 
in the session and not providing support for the back button is also a 
vaild implementation.

Stefan




Endre Stølsvik wrote:

> On Wed, 21 Jan 2004, Stefan Hepper wrote:
> 
> | No, render parameters are a new concept that separates portlets from 
> | servlets. Portlets get the render params for all subsequent request 
> | until the next action occurs or the page is left (than its left to the 
> | portal implemention to keep the params accross pages). Otherwise the 
> | back button and bookmarkability will not work.
> 
> Does the spec require the back button and bookmarkability to work? I was
> assuming that as long as the portlet got the render parameters every time
> (on every rendering), it was fine.
>   See, I thought about keeping the render parameters for each portlet in
> some session object for the current user - and then just supply them to
> the portlet on each rendering - of course adhering to the contract of
> clearing them on action, and setting "new ones" on RenderURL.
> 
> | 
> | Please see also the corresponding sections in the Portlet Specification.
> 
> Where..?
> 
> Endre.
> 
>