-
1. Re: Setting gadget userprefs affects other gadgets on the page
kien_nguyen Sep 10, 2010 3:12 AM (in response to jkranes)That behaviour is incorrect, user pref belongs to one gadget that is owner. So setting preference will not effect to other gadgets. You can review prefs from some default gadgets of GateIn such as Rss Reader, Todo, etc
-
2. Re: Setting gadget userprefs affects other gadgets on the page
jkranes Sep 10, 2010 8:58 AM (in response to kien_nguyen)I tested the default GateIn Rss Reader gadget and I get the same behavior.
Looking at the HTTP traffic between the browser and the portal server, it seems that every time preferences are updated, the browser makes a GET call to:
/portal/private/classic/home/Gadgets?portal:componentId=e66af489-b4e9-4e85-bbe5-fc7fd5933262&portal:type=action&uicomponent=bba61489-a4af-460b-939d-cf17608d9a75&op=SaveUserPref&ajaxRequest=true&userPref={%22counter%22:22}
(where /private/classic/home/Gadgets is the URL of the portal page that contains my gadgets)
the response to this request contains an HTML <div> with content for the entire dashboard portlet, including all the gadgets. This content is then used to replace all existing content in the dashboard portlet, i.e. all the gadgets are replaced with new content from the server.
This seems very wrong to me.
Is it possible this is a bug or could it be something in my configuration causing GateIn to behave this way? I am using the standard downloaded configuration without any changes. -
3. Re: Setting gadget userprefs affects other gadgets on the page
jkranes Sep 10, 2010 12:49 PM (in response to jkranes)I have logged this as a bug: https://jira.jboss.org/browse/GTNPORTAL-1471
-
4. Re: Setting gadget userprefs affects other gadgets on the page
kien_nguyen Sep 12, 2010 10:42 PM (in response to jkranes)I commented on GTNPORTAL-1471