You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Vladimir Figurov <vf...@asia-soft.kz> on 2004/06/03 13:18:57 UTC
2 or more identical portlets on one page
2 or more identical portlets on one page - how to do independent their
condition?
Only through session.setAttribute()? Or in the object portlete it is
possible to remember his current condition?
portlet.setAttribute("currPage",""+currPage, rundata); - not working :-(
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: 2 or more identical portlets on one page
Posted by Vladimir Figurov <vf...@asia-soft.kz>.
Thanks :)
PortletSessionState.setAttribute(portlet, rundata, "currPage",""+currPage);
...
...
PortletSessionState.getAttribute(portlet, rundata, "currPage");
==========
it's working very well !!! it's cool !
David Sean Taylor wrote:
>
> On Jun 3, 2004, at 4:18 AM, Vladimir Figurov wrote:
>
>> 2 or more identical portlets on one page - how to do independent
>> their condition?
>> Only through session.setAttribute()? Or in the object portlete it is
>> possible to remember his current condition?
>> portlet.setAttribute("currPage",""+currPage, rundata); - not working
>> :-(
>>
> Recommend looking at o.a.j.util.PortletSessionState for managing
> session state on a per portlet instance basis
>
> I originally misunderstood your question, and thought you were asking
> about portlet instances.
> Here is my original response, which I was about to erase, then thought
> it might be useful to someone anyway:
>
> Jetspeed-1 has the concept of a Portlet Instance (or entity).
>
> // from a portlet
> PortletInstance instance = this.getPortletInstance(rundata);
> instance.getAttribute(name);
>
> The portlet's getAttribute actually gets the instance, so amounts to
> the same as above
>
> Finally,
> Take a look at PortletSessionState.getAttributeWithFallback which
> attempts to find an attribute in the following:
>
> - request param
> - session attribute (from session per instance)
> - instance attribute (psml 'instance')
> - config param (registry)
>
>
> --
> David Sean Taylor
> Bluesunrise Software
> david@bluesunrise.com
> [office] +01 707 773-4646
> [mobile] +01 707 529 9194
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: 2 or more identical portlets on one page
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Jun 3, 2004, at 4:18 AM, Vladimir Figurov wrote:
> 2 or more identical portlets on one page - how to do independent their
> condition?
> Only through session.setAttribute()? Or in the object portlete it is
> possible to remember his current condition?
> portlet.setAttribute("currPage",""+currPage, rundata); - not working
> :-(
>
Recommend looking at o.a.j.util.PortletSessionState for managing
session state on a per portlet instance basis
I originally misunderstood your question, and thought you were asking
about portlet instances.
Here is my original response, which I was about to erase, then thought
it might be useful to someone anyway:
Jetspeed-1 has the concept of a Portlet Instance (or entity).
// from a portlet
PortletInstance instance = this.getPortletInstance(rundata);
instance.getAttribute(name);
The portlet's getAttribute actually gets the instance, so amounts to
the same as above
Finally,
Take a look at PortletSessionState.getAttributeWithFallback which
attempts to find an attribute in the following:
- request param
- session attribute (from session per instance)
- instance attribute (psml 'instance')
- config param (registry)
--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org