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 behavior in question can be easily demonstrated by placing two instances of the
default ToDo gadget onto a dashboard page. Enter one or more ToDo items on each of the
two gadgets. Then click 'Save' on one of the two gadgets. Observe that the newly
entered items on the other ToDo gadget are now lost.
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 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