[
https://jira.jboss.org/browse/GTNPORTAL-1471?page=com.atlassian.jira.plug...
]
Jon Kranes commented on GTNPORTAL-1471:
---------------------------------------
Ken, thanks for the clarification that only the dashboard portlet contents are replaced.
Still, I would argue the behavior is unnecessary and undesirable. There is no reason
apparent to me for a call to the gadget's Prefs.set() function to force re-rendering
of the gadget making the call, let alone force re-rendering of all other gadgets that just
happen to be contained within the same Dashboard Portlet.
Also, I did try a quick test of iGoogle using the Google ToDo list gadget. As far as I
can tell from monitoring the network traffic between my browser and Google, the gadget
appears to be making SetPrefs calls to
http://www.google.com/ig/setp?[etc.] and the http
response is a 204 No Content. There is no forced re-rendering of any gadgets on the page
as far as I can tell.
Setting gadget user preferences triggers update of portal page
content
----------------------------------------------------------------------
Key: GTNPORTAL-1471
URL:
https://jira.jboss.org/browse/GTNPORTAL-1471
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.1.0-GA
Reporter: Jon Kranes
The underlying problem appears to be that invoking the gadgets.Prefs.set function
triggers an ajax request to the server (via the ajaxGet method in PortalHttpRequest.js).
The response content returned by the server then causes the portal page content to be
replaced with content in the response. Any gadgets on the page are completely
re-initialized and any transient state they previously had (such as items entered in the
ToDo list above) is lost.
The replacement of the page's content is both unnecessary and undesirable, as
demonstrated by the example above. Users will naturally assume that gadgets function
independent of one another, so having one gadget suddenly lose its data due to an action
taken in another gadget seems contrary to the intent of the gadget paradigm.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira