________________________________
From: Lublinsky, Boris
Sent: Sunday, September 07, 2008 8:19 PM
To: '[email protected]'
Subject: Dafault values for user preferences.
For some reason, when using
var prefs = new gadgets.Prefs();
the values are populated only if they are present in the URL. If I am
not trying to overwrite default values, the prefs is an empty object.
When I look at the javascript implementation, I can see that it uses
only URL variables to populate.
When I started digging into java implementation, I can see that
createGadgetFromSpec method in the Gadget server class invokes
UserPrefSubstituter, which is correctly populating Substitutions class
with the parameters from URL, but I do not see where this variables are
used. The gadget spec does not reflect these variables.
What an I missing?
Boris Lublinsky
Lead Architect, R&D
NAVTEQ
425 W Randolph Street
Chicago, IL 60606
(T) 312.780.3050
The information contained in this communication may be CONFIDENTIAL and is
intended only for the use of the recipient(s) named above. If you are not the
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication, or any of its contents, is
strictly prohibited. If you have received this communication in error, please
notify the sender and delete/destroy the original message and any copy of it
from your computer or paper files.