This is not a portlet problem; it is really just a generic data
update/refresh problem.
I don't think that you actually care why the page needs to be refreshed.
All your receiving portlet needs to find out is whether it is displaying
stale data.
The portlet that makes the change also does not care who reads it
(portlet, webapp, batch job, etc.), it only needs to set a timestamp
somewhere so that anyone who wants to know the date of last update can
get that information.
Could you not set a timestamp in the service that holds the data.
The user page could query the service on a periodic bases and get a
timestamp of the last change time and compare it with its latest update
and then just ask to have the portlet refresh its view using the update
information?
This might involve some Javascript but I would be surprised if there is
not lots of examples of this floating around.
Ron
On 14/04/2011 3:08 AM, Woonsan Ko wrote:
Hi Sachin,
As far as I know, there's no special support for your use case in Portlet 2.0.
Portlet 2.0 specifies portlet event but it's usually limited to one page of one
user. Portlet events are not shared between pages or users.
Woonsan
--- On Wed, 4/13/11, sachin_nabble<[email protected]> wrote:
From: sachin_nabble<[email protected]>
Subject: Sending notification and reloding portlet from another portlet
To: [email protected]
Date: Wednesday, April 13, 2011, 11:05 AM
Hi all,
I am new to portlet technology and currently working on a
Portal project
which has 3 type of users as-admin,guest and normal user.
Now i need to add
one page to portal which will show the activities(add
message,chage message)
done by the one user to all other users at runtime. How can
i send this
CHANGE notification to other users from portlet and reload
their page ?
Thanks& Regards
Sachin .
--
View this message in context:
http://old.nabble.com/Sending-notification-and-reloding-portlet-from-another-portlet-tp31386037p31386037.html
Sent from the Jetspeed - User mailing list archive at
Nabble.com.
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]