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
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]