User preferences
----------------

                 Key: SHINDIG-602
                 URL: https://issues.apache.org/jira/browse/SHINDIG-602
             Project: Shindig
          Issue Type: Bug
         Environment: all
            Reporter: Boris


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.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to